On Sat, Jan 10, 2009 at 4:50 PM, Brian Stephenson <
bstephen...@thortech-solutions.com> wrote:
> Let me talk from a conceptual point of view. In case number 2, big question
> is if you need to save the existing older local file if there is a newer
> source file, before trying to get the newer one,
Let me talk from a conceptual point of view. In case number 2, big question
is if you need to save the existing older local file if there is a newer
source file, before trying to get the newer one, in case you want to use the
old one if the download fails. If you put a "DELETE ${destination.file}"
Hi Brian,
Thanks for trying to help, but the key to my problem is that I use
usetimestamp="true" in my get task. It means that the file will be
downloaded for two cases: 1) The file isn't there to begin with and 2)
The file is there but has a time stamp going back further in time than
the remote f
Kent,
There may be a more direct way to do this, but I accomplish a
similar thing this way (I munged my code to match yours):
property="dest.file.present"/>
Then the targets following can have the "if" attribute in the target:
if="dest.file.present">
...
With "available", the designat
In a target I download a remote file if it's newer than the current
local one or if no local copy exists. I do it using the following code
and it works as it's supposed to:
http://a.com/b.jar"; dest="${destination.file}" usetimestamp="true"/>
Now to my problem:
I would like to do somethin