把屬性的設置都放一個XML文件中
props
<property name=
然後在 build
<!DOCTYPE project [<!ENTITY properties SYSTEM
二
<javac destdir=
<src path=
<src path=
</javac>
三
<project default=
<target name=
<property environment=
<property name=
<propertyfile comment=
<entry key=
<entry key=
<entry key=
</propertyfile>
</project>
四
屬性文件
# 這裡是注釋
build
build文件
<copy file=
<filterchain>
<striplinecomments>
<comment value=
</striplinecomments>
</filterchain>
</copy>
五
<project name=
<property file=
<target name=
<sound>
<success source=
<fail source=
</sound>
</target>
<target name=
<fail />
</target>
<target name=
<target name=
</project>
<project name=
<target name=
<splash imageurl=
<sleep seconds=
<sleep seconds=
<sleep seconds=
<sleep seconds=
<sleep seconds=
<sleep seconds=
</target>
</project>
From:http://tw.wingwit.com/Article/program/Java/ky/201311/28329.html