<projectname="xwork"default="jar"basedir="."><pathid="cp"><filesetdir="lib"><includename="**/*.jar"/></fileset></path><pathid="editor.classpath"><pathrefid="cp"/><filesetdir="lib/editor"><includename="*.jar"/></fileset></path><pathid="jalopy.classpath"><filesetdir="lib/build/jalopy"><includename="*.jar"/></fileset></path><propertyfile="build.properties"/><propertyname="lib"value="lib"/><propertyname="lib.core"value="${lib}/core"/><propertyname="lib.build"value="${lib}/build"/><propertyname="lib.optional"value="${lib}/optional"/><propertyname="lib.editor"value="${lib}/editor"/><propertyname="src"value="src"/><propertyname="src.java"value="${src}/java"/><propertyname="src.test"value="${src}/test"/><propertyname="src.etc"value="${src}/etc"/><propertyname="src.editor"value="${src}/editor"/><propertyname="build"value="build"/><propertyname="build.test"value="${build}/test"/><propertyname="build.java-test"value="${build}/java-test"/><propertyname="build.java"value="${build}/java"/><propertyname="build.clover"value="${build}/clover"/><propertyname="build.dist"value="${build}/dist"/><propertyname="build.editor"value="${build}/editor"/><propertyname="clover.initstring"value="${build.clover}/coverage.db"/><propertyname="docs"value="docs"/><targetname="clean"><deletedir="${build}"/></target><targetname="java"><mkdirdir="${build.java}"/><javacsrcdir="${src.java}"destdir="${build.java}"classpathref="cp"debug="on"/><copyfiltering="no"todir="${build.java}"><filesetdir="${src.java}"><excludename="**/*.java"/><excludename="**/package.html"/></fileset></copy></target><targetname="ensure-test-name"unless="test"><failmessage="You must run this target with -Dtest=TestName"/></target><targetname="runtest"description="Runs the test you specify on the command line with -Dtest="depends="java, ensure-test-name"><junitprintsummary="withOutAndErr"fork="yes"><classpath><pathelementlocation="${build.test}"/><pathelementlocation="${build.java-test}"/><pathelementlocation="${src.etc}/test"/><pathelementlocation="${src.etc}"/><pathrefid="cp"/></classpath><formattertype="plain"usefile="false"/><batchtest><filesetdir="${src.test}"><includename="**/${test}.java"/></fileset></batchtest></junit></target><targetname="test"depends="format, java"><taskdefresource="clovertasks"/><taskdefname="junit"classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/><mkdirdir="${build.clover}"/><mkdirdir="${build.test}"/><javacsrcdir="${src.test}"destdir="${build.test}"classpath="${build.java}"classpathref="cp"debug="on"/><copyfiltering="no"todir="${build.test}"><filesetdir="${src.test}"><excludename="**/*.java"/><excludename="**/package.html"/></fileset></copy><mkdirdir="${build.java-test}"/><javacsrcdir="${src.java}"destdir="${build.java-test}"classpathref="cp"debug="on"compiler="org.apache.tools.ant.taskdefs.CloverCompilerAdapter"/><copyfiltering="no"todir="${build.java-test}"><filesetdir="${src.java}"><excludename="**/*.java"/><excludename="**/package.html"/></fileset></copy><mkdirdir="${build.dist}/docs/junit"/><junitprintsummary="yes"haltonfailure="yes"haltonerror="yes"fork="yes"><classpath><pathelementlocation="${build.test}"/><pathelementlocation="${build.java-test}"/><pathelementlocation="${src.etc}/test"/><pathelementlocation="${src.etc}"/><pathrefid="cp"/></classpath><formattertype="xml"/><formattertype="brief"usefile="false"/><batchtesttodir="${build.dist}/docs/junit"><filesetdir="${src.test}"><includename="**/*Test.java"/></fileset></batchtest></junit></target><targetname="format"><taskdefname="jalopy"classname="de.hunsicker.jalopy.plugin.ant.AntPlugin"><classpathrefid="jalopy.classpath"/></taskdef><jalopyfileformat="unix"convention="${basedir}/src/etc/jalopy.xml"history="file"historymethod="adler32"loglevel="error"threads="2"classpathref="cp"><filesetdir="${src.java}"><includename="**/*.java"/></fileset><filesetdir="${src.test}"><includename="**/*.java"/></fileset></jalopy></target><targetname="jar"depends="java"><mkdirdir="${build}"/><copytodir="${build.java}"file="${src.etc}/xwork-1.0.dtd"/><copytodir="${build.java}"file="${src.etc}/xwork-validator-1.0.dtd"/><jarbasedir="${build.java}"jarfile="${build}/${name}-${version}.jar"/></target><targetname="check-jdk14"><conditionproperty="jdk14"><availableclassname="java.util.prefs.Preferences"/></condition></target><targetname="warn-nojdk14"depends="check-jdk14"unless="jdk14"><echomessage="JDK1.4 or later is not being used... The editor will not be built"/></target><targetname="editor-java"depends="warn-nojdk14"if="jdk14"><mkdirdir="${build.editor}"/><mkdirdir="${build.editor}/META-INF"/><javacsrcdir="${src.editor}"destdir="${build.editor}"includes="com/opensymphony/xworkeditor/**"classpathref="editor.classpath"debug="on"/><copyfiltering="no"todir="${build.editor}"><filesetdir="${src.editor}"><excludename="**/*.java"/><excludename="**/package.html"/></fileset></copy></target><targetname="create-xelements"depends="warn-nojdk14"if="jdk14"><taskdefname="xelements"classname="com.xe.xface.ant.XElementsTask"classpathref="editor.classpath"/><xelementsdest="${build.editor}/META-INF"><filesetdir="${src.editor}"><includename="**/*.java"/></fileset></xelements></target><targetname="editor-jar"depends="warn-nojdk14,editor-java,create-xelements"if="jdk14"><mkdirdir="${build}"/><copytodir="${build.editor}"file="${src.etc}/xwork-1.0.dtd"/><dirnameproperty="lib.dir"file="${lib.editor}"/><pathconvertpathsep=" "refid="editor.classpath"property="editor.jar.classpath"><mapfrom="${lib.dir}${file.separator}"to="lib${file.separator}"/></pathconvert><jarbasedir="${build.editor}"jarfile="${build}/${name}-editor-${version}.jar"><manifest><attributename="Main-Class"value="com.opensymphony.xworkeditor.Application"/><attributename="Class-Path"value="${editor.jar.classpath}"/></manifest></jar></target><targetname="javadocs"><mkdirdir="${build.dist}/docs/api"/><javadocsourcepath="${src.java}"destdir="${build.dist}/docs/api"packagenames="com.opensymphony.*"classpathref="cp"author="true"version="true"windowTitle="${name}${version} API"doctitle="${name}"footer="&lt;a href=&quot;http://www.opensymphony.com/&quot; target=&quot;_top&quot;&gt;XWork Project Page&lt;/a&gt;"use="true"verbose="false"><linkhref="http://java.sun.com/j2se/1.3/docs/api/"/><linkhref="http://java.sun.com/j2ee/sdk_1.3/techdocs/api/"/></javadoc></target><targetname="clover.report"depends="test"><clover-report><currentoutfile="${build.dist}/docs/clover"><formattype="html"/></current></clover-report></target><targetname="clover.historical"depends="clover.report"><clover-historypointhistoryDir="${build.clover}"/><clover-report><historicaloutfile="${build.dist}/docs/clover"historyDir="${build.clover}"><formattype="html"/></historical></clover-report></target><targetname="junit.report"depends="test"><junitreporttodir="${build.dist}/docs/junit"><filesetdir="${build.dist}/docs/junit"><includename="TEST-*.xml"/></fileset><reportformat="frames"todir="${build.dist}/docs/junit"/></junitreport></target><targetname="docs"depends="javadocs, clover.report, junit.report"><copytodir="${build.dist}/docs"><filesetdir="${docs}"/></copy><copytodir="${build.dist}/docs"><filesetdir="${src.etc}"><includename="*.dtd"/></fileset></copy></target><targetname="dist"depends="jar, editor-jar, docs"><copyfile="${build}/${name}-${version}.jar"todir="${build.dist}"/><copytodir="${build.dist}"><filesetdir="${build}"><includename="${name}-editor-${version}.jar"/></fileset></copy><copytodir="${build.dist}/src"><filesetdir="${src}"/></copy><mkdirdir="${build.dist}/lib"/><copytodir="${build.dist}/lib"><filesetdir="${lib}"/></copy><copytodir="${build.dist}"><filesetdir="${basedir}"><includename="build.*"/></fileset></copy><!-- copy changelog and README --><tstamp/><copyfiltering="on"todir="${build.dist}"><filesetdir="."><includename="*.html"/></fileset><filterset><filtertoken="version"value="${version}"/><filtertoken="builddate"value="${TODAY}"/></filterset></copy><zipzipfile="${build}/${name}-${version}.zip"basedir="${build.dist}"/></target></project>