Do you know the official <get> has been supported that for some time? From
the doc online:

<get src="http://jakarta.apache.org/";
     dest="help/index.html" />

Unless I missed something about your version of <get>? --DD

-----Original Message-----
From: Danny Ayers [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 11, 2002 11:49 AM
To: [EMAIL PROTECTED]
Subject: ANN: http get task 

Hi folks,

I've just written a simple http get task, available from the address below.
Not particularly well tested, but it seems to work ok.

The file gotted can be saved using a filename based on the date, so used in
combination with the FTP task will allow the 'baking' of dynamic sites such
as weblogs. e.g.

<?xml version="1.0"?>

<project name="BakerTest" default="bake" basedir=".">

<taskdef name="get" classname="GetTask"/>

<target name="bake">

    <get outputDir="." page="http://www.aaronsw.com/weblog"; />

   <ftp server="ftp.apache.org"
       userid="anonymous"
       password="[EMAIL PROTECTED]">
    <fileset dir="**/*.html"/>
  </ftp>

</target>

</project>

This will upload the page as 2002-07-11.html.

There are one or two other attributes, these and the source can be found at
:

http://www.isacat.net/2002/baker/

Cheers,
Danny.

---
Danny Ayers
<stuff> http://www.isacat.net </stuff>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to