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: want to copy a file if it exists
Date Fri, 30 Jul 2010 04:32:10 GMT
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: eric.wood@thomsonreuters.com 
>[mailto:eric.wood@thomsonreuters.com] 
>Gesendet: Donnerstag, 29. Juli 2010 23:09
>An: user@ant.apache.org
>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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message