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:[EMAIL PROTECTED]
> > 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]