<?xml version="1.0" ?>
<project default="test">
<target name="test"/>
</project>
运行结果:
C:\Users\xiongjiawei\Desktop\ing\ant_demo>ant
Buildfile: C:\Users\xiongjiawei\Desktop\ing\ant_demo\build.xml
test:
BUILD SUCCESSFUL
Total time: 0 seconds
注解:
*project元素,default属性用于指定ANT被调用时未指定目标时执行的默认目标,用target元素来指定目标本身。