ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Redondo Gallardo, Raul Maria" <>
Subject Check if exist a file and then run or not a target
Date Tue, 04 Aug 2009 09:37:52 GMT


I'm trying to do with ANT anything like:


            If exist a file (file.txt)

                        Exec file.bat

            End if


But I don't get it. Is it possible to do this with ANT?


Thank you very much.


Best regards,


Raúl María Redondo Gallardo

 Dpto. transporte y Tráfico



C/ Mar Egeo, 4

Pol. Ind. San Fernando

San Fernando de Henares

28830 - Madrid (ESPAÑA)
Tel:  +34-91-626.92.21

Fax: +34-91.626.88.68


  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message