188 lines
4.6 KiB
XML
188 lines
4.6 KiB
XML
<?xml version="1.0" ?>
|
|
|
|
<project
|
|
basedir="."
|
|
default="run"
|
|
name="Thinking in Java, 4th Edition (Refreshed) by Bruce Eckel (chapter: access)">
|
|
|
|
<description>
|
|
build.xml for the source code for the access 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>
|
|
|
|
<target name="net_mindview_util">
|
|
<javac
|
|
classpath="${basedir}/.."
|
|
srcdir="${basedir}/../net/mindview/util/">
|
|
<compilerarg value="-Xmaxerrs"/>
|
|
<compilerarg value="10"/>
|
|
</javac>
|
|
</target>
|
|
|
|
<target name="net_mindview_simple">
|
|
<javac
|
|
classpath="${basedir}/.."
|
|
srcdir="${basedir}/../net/mindview/simple/">
|
|
<compilerarg value="-Xmaxerrs"/>
|
|
<compilerarg value="10"/>
|
|
</javac>
|
|
</target>
|
|
|
|
<target
|
|
depends="net_mindview_util,net_mindview_simple"
|
|
description="Build all classes in this directory"
|
|
name="build">
|
|
<fail message="J2SE8 required" unless="version1.8"/>
|
|
<echo message="Building 'access'"/>
|
|
<javac
|
|
classpath="${basedir}/.."
|
|
debug="true"
|
|
srcdir="${basedir}">
|
|
<compilerarg value="-Xmaxerrs"/>
|
|
<compilerarg value="10"/>
|
|
</javac>
|
|
<echo message="Build 'access' succeeded"/>
|
|
</target>
|
|
|
|
<target name="Cake">
|
|
<java
|
|
classname="Cake"
|
|
classpath="${java.class.path};${basedir};${basedir}/.."
|
|
dir="../access/"
|
|
failonerror="true"
|
|
fork="true"/>
|
|
</target>
|
|
|
|
<target name="ChocolateChip">
|
|
<java
|
|
classname="ChocolateChip"
|
|
classpath="${java.class.path};${basedir};${basedir}/.."
|
|
dir="../access/"
|
|
failonerror="true"
|
|
fork="true"/>
|
|
</target>
|
|
|
|
<target name="ChocolateChip2">
|
|
<java
|
|
classname="ChocolateChip2"
|
|
classpath="${java.class.path};${basedir};${basedir}/.."
|
|
dir="../access/"
|
|
failonerror="true"
|
|
fork="true"/>
|
|
</target>
|
|
|
|
<target name="Dinner">
|
|
<java
|
|
classname="Dinner"
|
|
classpath="${java.class.path};${basedir};${basedir}/.."
|
|
dir="../access/"
|
|
failonerror="true"
|
|
fork="true"/>
|
|
</target>
|
|
|
|
<target name="FullQualification">
|
|
<java
|
|
classname="FullQualification"
|
|
classpath="${java.class.path};${basedir};${basedir}/.."
|
|
dir="../access/"
|
|
failonerror="true"
|
|
fork="true"/>
|
|
</target>
|
|
|
|
<target name="IceCream">
|
|
<java
|
|
classname="IceCream"
|
|
classpath="${java.class.path};${basedir};${basedir}/.."
|
|
dir="../access/"
|
|
failonerror="true"
|
|
fork="true"/>
|
|
</target>
|
|
|
|
<target name="ImportedMyClass">
|
|
<java
|
|
classname="ImportedMyClass"
|
|
classpath="${java.class.path};${basedir};${basedir}/.."
|
|
dir="../access/"
|
|
failonerror="true"
|
|
fork="true"/>
|
|
</target>
|
|
|
|
<target name="LibTest">
|
|
<java
|
|
classname="LibTest"
|
|
classpath="${java.class.path};${basedir};${basedir}/.."
|
|
dir="../access/"
|
|
failonerror="true"
|
|
fork="true"/>
|
|
</target>
|
|
|
|
<target name="PrintTest">
|
|
<java
|
|
classname="PrintTest"
|
|
classpath="${java.class.path};${basedir};${basedir}/.."
|
|
dir="../access/"
|
|
failonerror="true"
|
|
fork="true"/>
|
|
</target>
|
|
|
|
<target name="QualifiedMyClass">
|
|
<java
|
|
classname="QualifiedMyClass"
|
|
classpath="${java.class.path};${basedir};${basedir}/.."
|
|
dir="../access/"
|
|
failonerror="true"
|
|
fork="true"/>
|
|
</target>
|
|
|
|
<target name="SingleImport">
|
|
<java
|
|
classname="SingleImport"
|
|
classpath="${java.class.path};${basedir};${basedir}/.."
|
|
dir="../access/"
|
|
failonerror="true"
|
|
fork="true"/>
|
|
</target>
|
|
|
|
<target
|
|
depends="build"
|
|
description="Compile and run"
|
|
name="run">
|
|
<touch file="failures"/>
|
|
<antcall target="Cake"/>
|
|
<antcall target="ChocolateChip"/>
|
|
<antcall target="ChocolateChip2"/>
|
|
<antcall target="Dinner"/>
|
|
<antcall target="FullQualification"/>
|
|
<antcall target="IceCream"/>
|
|
<antcall target="ImportedMyClass"/>
|
|
<antcall target="LibTest"/>
|
|
<antcall target="PrintTest"/>
|
|
<antcall target="QualifiedMyClass"/>
|
|
<antcall target="SingleImport"/>
|
|
<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"/>
|
|
</delete>
|
|
<echo message="clean successful"/>
|
|
</target>
|
|
|
|
</project>
|
|
|
|
|