ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burgess, Benjamin" <>
Subject RE: Making copy NEVER overwrite
Date Tue, 22 Mar 2005 14:15:20 GMT
" the second time around the original is newer than the backup"

Is this because your copy target the first time around does not have


-----Original Message-----
From: David Resnick [] 
Sent: Tuesday, March 22, 2005 5:40 AM
To: 'Ant Users List'
Subject: Making copy NEVER overwrite

I am making a backup of some files which I then filter back into the
original. Unfortunately, because of the way the targets are set up,  this is
done more than once. I want the copy task to perform the backup only if the
backup files don't exist. Setting overwrite to false doesn't help me because
the second time around the original is newer than the backup.
Can anyone think of a way of preventing the copy target from copying if the
file already exists?
Thanks, David

This message, including any attachments, contains confidential information intended for a
specific individual and purpose, and is protected by law.  If you are not the intended recipient,
please contact sender immediately by reply e-mail and destroy all copies.  You are hereby
notified that any disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited.

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

View raw message