REM Using this instead of ant.bat because ant.bat doesn't return REM a reliable exit status on windows. This script requires that REM ANT_HOME be set in the environment @echo off if "%ANT_HOME%" == "" goto Error goto Run :Error echo ERROR: The ANT_HOME environment variable must be set. exit /B 1 :Run java -classpath %ANT_HOME%\lib\ant-launcher.jar -Dant.home=%ANT_HOME% org.apache.tools.ant.launch.Launcher %*