ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Danny Ayers" <danny...@virgilio.it>
Subject ANN: http get task
Date Thu, 11 Jul 2002 16:49:05 GMT
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>


Mime
View raw message