Just use <copy>.

<copy file tofile/> will fail if the requested file does not exist.
<copy todir><fileset dir includes="the-requested-file/></copy> wont ...


Jan 

>-----Ursprüngliche Nachricht-----
>Von: [email protected] 
>[mailto:[email protected]] 
>Gesendet: Donnerstag, 29. Juli 2010 23:09
>An: [email protected]
>Betreff: Ant: want to copy a file if it exists
>
>I want to check to see if a file exist and if so then copy it.  What is
>the best way for performing this conditional task?
>
> 
>
>Thanks, eric
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to