<?xml version="1.0" ?>
<project default="test">
<description>
description element and attribute
<!--description单词勿拼错-->
</description>
<target name="test" description="demo description element and attribute">
<!--and不能用&代替-->
</target>
</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