调用.bat文件跑ant

来源:互联网 发布:联通免流量软件 编辑:程序博客网 时间:2024/05/17 22:36
@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