Thanks again Dominique.

The main reason I did the <get> was so it would be possible to automatically
turn dynamically generated web content ('fried') into static content
('baked'). The simplest way I could think of was :

* http get the page

* rename to something based on the date (e.g. blog_2002-07-11.html)

* ftp to somewhere else

For this the http server date/time wouldn't really be needed, but I can
imagine that might be useful in other archiving situations.

Cheers,
Danny.

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


>-----Original Message-----
>From: Dominique Devienne [mailto:[EMAIL PROTECTED]
>Sent: 11 July 2002 21:17
>To: 'Ant Developers List'
>Subject: RE: http get task
>
>
>Use <tstamp> to format a date as you want it (time of the <get>?), and use
>the generate date property in the 'dest' attribute. If you want the time of
>the file on the HTTP server, we'll have to write a task (hey, you already
>did), or <script> it, playing with URL and/or URLConnection I think. --DD
>
>-----Original Message-----
>From: Danny Ayers [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 11, 2002 2:06 PM
>To: Ant Developers List
>Subject: RE: http get task
>
>Thanks - I didn't see it when I first looked, ah well...
>
>Is there any straightforward way of renaming a file to something based on
>the date? If there is, then my thing is completely redundAnt.
>
>At least I found out how to make tasks ;-)
>
>Cheers,
>Danny.
>
>
>
>
>
>---
>Danny Ayers
><stuff> http://www.isacat.net </stuff>
>
>
>>-----Original Message-----
>>From: Dominique Devienne [mailto:[EMAIL PROTECTED]
>>Sent: 11 July 2002 20:50
>>To: 'Ant Developers List'
>>Subject: RE: http get task
>>
>>
>>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]>
>>
>
>
>--
>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]>
>


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

Reply via email to