调用.bat文件跑ant

阅读更多

@echo off
set JAVA_HOME=C:\Java\jdk1.5.0_09
set ANT_HOME=C:\apache-ant-1.8.3
set path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%JAVA_HOME%\bin;%ANT_HOME%\bin;
set ANT_OPTS=-Xmx512m
set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar

echo "Start build..."
call ant.bat -f "test\build.xml" -logger org.apache.tools.ant.listener.TimestampedLogger
echo "End"

Pause

你可能感兴趣的:(ant,BAT)