You can do this using exec . From the ant exec documentation:
Please note that .bat files cannot be directly executed at all. Typically, you want to run the cmd command-line executable with the / c switch.
So you will need to do something like:
<exec executable="cmd"> <arg value="/c"/> <arg value="batchfile.cmd"/> </exec>
Please note that in doing so, you created the dependency on running the ant script on Windows.
krock
source share