以前のリビジョンの文書です
—-
<javac srcdir="src" destdir="classes"> <compilerarg value="-Xlint:unchecked" /> </javac>
<path id="classpath"> <fileset dir="foo/bar"> <include name="**/*.jar"/> </fileset> <pathelement path="foo2/bar2/xxx.jar"/> </path>
<javac srcdir="dist/src" destdir="dist/classes" classpathref="classpath" includes="**/*.java" />
<apply executable="/bin/chmod" dir="WEB-INF"> <arg value="744" /> <fileset dir="WEB-INF"> <patternset> <include name="*.sh" /> </patternset> </fileset> </apply>
または
<apply executable="/bin/chmod" dir="vcs13/WEB-INF"> <arg value="744" /> <fileset dir="WEB-INF" includes="*.sh" /> </apply>
次のような build.xml ファイルを作成し、ant を実行すると、ant の build.xml 用 DTD ファイルが作成されます。
<code xml>
<?xml version=“1.0”?>
<project name=“project-dtd” default=“ant.dtd” basedir=“.”>
<target name="ant.dtd"> <antstructure output="ant.dtd"/> </target>
</project>
</xml>
</code>
参考 : http://ant.apache.org/faq.html#dtd