ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject [patch] (was Re: Time-based dependencies)
Date Fri, 14 Jul 2000 00:43:29 GMT

----- Original Message -----
From: "Stefan Bodewig" <>
To: <>
Sent: Thursday, July 13, 2000 00:55
Subject: Re: Time-based dependencies

> >>>>> "SL" == Steve Loughran <> writes:
>  SL> [A more powerful variant GET task is something I've debated doing
>  SL> in my copious free time; full WebDAV method calls using the Slide
>  SL> client side is the ideal goal, but perhaps timestamping would be
>  SL> a useful first step].
> This will be more than welcome. Don't forget to write the same for the
> FTP part and include a corresponding PUT task 8^).

of course -along with user authentication & stuff, it would let me include
the remote drop as
part of the build file.

> Just kidding - something like this is on my veeeery long TODO list and
> it is far away at the end.

it's kind of far away from mine too.

I have, however, stuck in the tweaks needed for GET to only grab files if
they have changed, which I have tapped in in my spare time today. If you set
UseFiletime to true, then the if-modified-since header is set to the time of
the destination file (if it exists) and then on an HTTP URL the result of
the request is checked for returning not-modified before the content is
downloaded. In that case the task returns (and traces out 'not modified' to
the display)

However it's untested. I need to think of a suitable test matrix (and a
server to generate the test results). If someone wants to try it and let me
know, then great -especially if the test server is beyond the firewall.

There are two design issues which need thinking about too. Both are easy to
implement; it just depends on what people want.

1. non HTTP protocols.
 These may include timestamps, so the GET task could choose not to save the
content if it is older. Should it? (Even so, it wont work for FTP and other
protocols that dont include date/time)

2. Touching the file after download. I don't do it -but it would make sense
to steal the code from to do exactly that on a post Java1.1 VM.



View raw message