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]>