ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@antbuild.com>
Subject Re: File Timestamp Comparision
Date Tue, 12 Aug 2003 17:04:12 GMT
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" <VPhonsa@suz.com>
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message