ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Dorner <FDor...@zed.com>
Subject RE: Check if exist a file and then run or not a target
Date Tue, 04 Aug 2009 09:54:39 GMT
Maybe you want, although it's not really the same...?

<exec failifexecutionfails="false">
...

The other way would be to use ant-contrib's if. Which I think is ugly.
I'm trying to do with ANT anything like:

            If exist a file (file.txt)
                        Exec file.bat
            End if



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