ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: copy only if destination file does not exist
Date Wed, 16 Apr 2003 22:36:05 GMT
Look up the <present> selector in the doc. This will do it. --DD

-----Original Message-----
From: Craig Dickson [] 
Sent: Wednesday, April 16, 2003 5:32 PM
To: Ant List (E-mail)
Subject: copy only if destination file does not exist

I need to copy a file from one directory to another, but I only want it to
happen if the destination file does not already exist. Currently, Ant will
do the copy, if the destination doesn't exist, or if the destination file is
older than the source file. This is not what I want - the relative dates of
the source and destination files is not relevant for my purpose.

Is there a way to make this happen?


View raw message