使用.bat文件运行ant的build.xml 1.新建一个txt文件 2.复制下面命令到txt文件 echo "Start build..." call ant.bat -f "E:uild.xml" echo "End" Pause 3.保存后,将txt的后缀改为.bat,即可