ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <>
Subject Re: File Timestamp Comparision
Date Tue, 12 Aug 2003 17:04:12 GMT

I do not know a generic way.
Some tasks do this "spontaneously" such as copy.

excerpt from doc of copy :
Copies a file or FileSet to a new file or directory. By default, files are
only copied if the source file is newer than the destination file, or when
the destination file does not exist. However, you can explicitly overwrite
files with the overwrite attribute.

sync is a new task of ant 1.6. Maybe it contains features which are of
interest to you.

Otherwise, you can write a custom task or a custom selector to find the
files in a fileset which are newer than the corresponding files of another
fileset. If you write the custom selector, I am interested to commit it (if
it is well written).

----- Original Message -----
From: "Vikas Phonsa" <>
Sent: Tuesday, August 12, 2003 6:50 PM


How can the last modification timestamps of two files be compared using Ant.


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

View raw message