ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyriaque Dupoirieux <cyriaque.dupoiri...@pcotech.fr>
Subject condition in a copy
Date Tue, 03 Jul 2001 12:57:56 GMT
Hello,

   I want to copy a file, but this file may not exist.
   <copy file="my.properties" todir="codes"/>
   And if the file doesn't exist, I have the following message :
       [copy] Could not find file my.properties to copy.

   I have the same problem with a directory :
       <copy todir="codes/images" >
           <fileset dir="sources/images"/>
       </copy>
   The error message is :
       D:\build.xml:133: sources\images not found.

   How can I test the existance of files or directories ? (available 
target ?)


Thanks & Regards,

-- 
Cyriaque Dupoirieux
PCO Technologies
Burolines - 2 ter rue Marcel Doret
31700 Blagnac
Tél : 05 34 60 44 13 - Fax : 05 34 60 44 10


Mime
View raw message