Hi,

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).

Antoine
----- Original Message -----
From: "Vikas Phonsa" <[EMAIL PROTECTED]>
Sent: Tuesday, August 12, 2003 6:50 PM


Hi,

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


Vik




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

Reply via email to