ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Making copy NEVER overwrite
Date Tue, 22 Mar 2005 11:40:55 GMT
set the read-only flag to the files?

Jan

> -----Ursprüngliche Nachricht-----
> Von: David Resnick [mailto:abunetta@gmail.com]
> Gesendet am: Dienstag, 22. März 2005 11:40
> An: 'Ant Users List'
> Betreff: 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
> 
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message