OnJava8-Examples/xml/build.xml

86 lines
2.2 KiB
XML
Raw Normal View History

2015-04-20 15:36:01 -07:00
<?xml version="1.0" ?>
<project
basedir="."
default="run"
name="Thinking in Java, 4th Edition (Refreshed) by Bruce Eckel (chapter: xml)">
<description>
build.xml for the source code for the xml chapter of
Thinking in Java, 4th Edition (Refreshed) by Bruce Eckel
Source code available at http://www.MindView.net
See copyright notice in CopyRight.txt
Ant available from: http://ant.apache.org/
To see options, type: ant -p
</description>
<condition property="version1.8">
<equals arg1="1.8" arg2="${ant.java.version}"/>
</condition>
<available classname="nu.xom.Node" property="nu.xom.Node"/>
<target
depends=""
description="Build all classes in this directory"
name="build">
<fail message="J2SE8 required" unless="version1.8"/>
<fail
Unless="nu.xom.Node"
message="You must install the XOM library from http://www.xom.nu"/>
<echo message="Building 'xml'"/>
2015-04-20 23:01:41 -07:00
<javac includeantruntime="false"
2015-04-21 10:05:25 -07:00
classpath="${java.class.path};${basedir};${basedir}/.."
2015-04-20 15:36:01 -07:00
debug="true"
srcdir="${basedir}">
<compilerarg value="-Xmaxerrs"/>
<compilerarg value="10"/>
</javac>
<echo message="Build 'xml' succeeded"/>
</target>
<target depends="Person" name="People">
<java
classname="People"
classpath="${java.class.path};${basedir};${basedir}/.."
dir="../xml/"
2015-04-21 13:40:48 -07:00
failonerror="false"
2015-04-20 15:36:01 -07:00
fork="true"/>
</target>
<target name="Person">
<java
classname="Person"
classpath="${java.class.path};${basedir};${basedir}/.."
dir="../xml/"
failonerror="true"
fork="true"/>
</target>
<target
depends="build"
description="Compile and run"
name="run">
<touch file="failures"/>
<antcall target="People"/>
<antcall target="Person"/>
<delete file="failures"/>
</target>
<target description="delete all byproducts" name="clean">
<delete>
<fileset dir="${basedir}" includes="**/*.class"/>
<fileset dir="${basedir}" includes="**/*Output.txt"/>
<fileset dir="${basedir}" includes="**/log.txt"/>
<fileset dir="${basedir}" includes="failures"/>
2015-04-21 11:27:07 -07:00
<fileset dir="${basedir}" includes="**/People.xml"/>
2015-04-20 15:36:01 -07:00
</delete>
<echo message="clean successful"/>
</target>
</project>