ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@gmx.de>
Subject Re: AW: Making copy NEVER overwrite
Date Tue, 22 Mar 2005 22:17:02 GMT
I would use the <present/> selector 
something like
<copy>
  <not>
    <present ..../>
  </not>
</copy>
Cheers,
Antoine
> 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