On Thu, Oct 29, 2009 at 13:00, cvsusr <[email protected]> wrote:
>
> I tried this.. this is printing the *.txt file that exist in the current
> folder
> <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
> <for param="file">
>  <path>
>    <fileset dir="." includes="*.txt"/>
>  </path>
> <sequential>
> <echo> file list::: @{file} </echo>
> </sequential>
> </for>
>
>
> Now i need to check if the file exist then perform the target..  Do i need
> to use condition for this??
>

Well, no, since if there's no file, there will be no iteration at
all... Hence my suggestion. A fileset can be empty.

-- 

Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
[email protected]
40 avenue Raymond Poincaré
75116 Paris

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

Reply via email to