ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kent Larsson" <>
Subject Do something if <get ... usetimestamp="true"/> downloads file
Date Fri, 09 Jan 2009 16:58:37 GMT
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:

<target name="download-ivy" unless="">
  <mkdir dir="${destination.dir}"/>
  <get src="" dest="${destination.file}" usetimestamp="true"/>

Now to my problem:

I would like to do something if the remote file is actually
downloaded. If the remote file is not downloaded I don't want to do
these tasks.

I've looked through the manual and done some Googling without finding
my answer. I'm quite new to Ant so this may still be an easy problem
for someone more experienced.

Any and all help highly appreciated!

Regards, Kent

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message