复制代码代码如下 :
<? xml 버전 = "1.0"encoding = "utf-8"?>
<project name = "hello world"default = "doc"basedir = ".">
<!-속성->
<propertyname = "src.dir"value = "src"> </property>
<propertyname = "report.dir"value = "report"> </property>
<propertyname = "class.dir"value = "class"> </property>
<propertyname = "lib.dir"value = "lib"> </property>
<propertyname = "dist.dir"value = "dist"> </property>
<propertyname = "doc.dir"value = "doc"> </property>
<propertyname = "jar.name"value = "hello.jar"> </property>
<propertyname = "war.name"value = "hello.war"> </property>
<propertyname = "webContent"value = "webContent"> </property>
<propertyname = "war.dir"value = "war"> </property>
<!-path classpath->
<pathid = "Master-ClassPath">
<filesetfile = "$ {lib.dir}/*. jar"/>
<pathElementPath = "$ {class.dir}"> </pateLement>
</path>
<!->->
<targetName = "init">
<deletedir = "$ {lib.dir}"> </delete>
<deletedir = "$ {dist.dir}"> </delete>
<deletedir = "$ {doc.dir}"> </delete>
<deletedir = "$ {war.dir}"> </delete>
<mkdirdir = "$ {src.dir}"> </mkdir>
<mkdirdir = "$ {report.dir}"> </mkdir>
<mkdirdir = "$ {class.dir}"> </mkdir>
<mkdirdir = "$ {lib.dir}"> </mkdir>
<mkdirdir = "$ {dist.dir}"> </mkdir>
<mkdirdir = "$ {doc.dir}"> </mkdir>
<mkdirdir = "$ {war.dir}"> </mkdir>
<echomessage = "初始化完成!"> </echo>
</target>
<!->->
<targetName = "compile"depends = "init"description = "comethesourcefiles">
<javacsrcdir = "$ {src.dir}"destdir = "$ {class.dir}"IncludeAntruntime = "on">
<classPathRefid = "Master-ClassPath"> </classPath>
</javac>
</target>
<!--jar->
<targetName = "pack"의 종속 = "compile"description = "make.jarfile">
<jardestfile = "$ {dist.dir}/$ {jar.name}"basedir = "$ {class.dir}">
</jar>
</target>
<!--전쟁->
<targetName = "war"의 종속 = "pack">
<wardestfile = "$ {war.dir}/$ {war.name}"webxml = "$ {webContent} /web-inf/web.xml">
<filesetdir = "$ {war.dir}"/>
<libdir = "$ {webContent}/web-inf/lib"/>
<classsDir = "$ {class.dir}"> </classes>
</war>
</target>
<!-i api 文档->
<targetName = "doc"의 부양 = "war"description = "CreateApidoc">
<javadocdestdir = "$ {doc.dir}"author = "ture"version = "ture"use = "ture"windowtitle = "helloorldapi">
<packagesEtDir = "$ {src.dir}"defaultexCludes = "yes">
<IncludEname = "example/**"/>
</packageset>
<doctitle> <!
<bottom> <! [cdata [<i> allrightsreserved </i>]]> </bottom>
<tagname = "todo"scope = "all"description = "todo :"/>
</javadoc>
</target>
</project>