ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: http get task
Date Thu, 11 Jul 2002 18:50:15 GMT
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:danny666@virgilio.it] 
Sent: Thursday, July 11, 2002 11:49 AM
To: ant-dev@jakarta.apache.org
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="me@myorg.com">
    <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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message