" the second time around the original is newer than the backup"

Is this because your copy target the first time around does not have
preservelastmodified="true"?

Ben

-----Original Message-----
From: David Resnick [mailto:[EMAIL PROTECTED] 
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.
TIAA-CREF
**************************************************************


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

Reply via email to