ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Resnick" <abune...@gmail.com>
Subject RE: Making copy NEVER overwrite
Date Tue, 22 Mar 2005 13:18:31 GMT
Thanks for the suggestion. 

The problem with that is that I would need to set failonerror to off, but I
don't want to do that.

-David

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Tuesday, March 22, 2005 13:41
To: user@ant.apache.org
Subject: AW: Making copy NEVER overwrite

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
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message