Hello again,
Alright, I have found a solution to my previous problem using the
available target...
But, I need know to make a copy of files but to keep a backup
(fic.bak) of each file updated.
How can I do this ?
Cyriaque Dupoirieux wrote:
> 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