OnJava8-Examples/control/oldbuild.xml
2015-04-29 21:01:37 -07:00

189 lines
4.7 KiB
XML

<?xml version="1.0" ?>
<project
basedir="."
default="run"
name="Thinking in Java, 4th Edition (Refreshed) by Bruce Eckel (chapter: control)">
<description>
build.xml for the source code for the control 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 includeantruntime="false"
classpath="${basedir}/.."
srcdir="${basedir}/../net/mindview/util/">
<compilerarg value="-Xmaxerrs"/>
<compilerarg value="10"/>
</javac>
</target>
<target
depends="net_mindview_util"
description="Build all classes in this directory"
name="build">
<fail message="J2SE8 required" unless="version1.8"/>
<echo message="Building 'control'"/>
<javac includeantruntime="false"
classpath="${basedir}/.."
debug="true"
srcdir="${basedir}">
<compilerarg value="-Xmaxerrs"/>
<compilerarg value="10"/>
</javac>
<echo message="Build 'control' succeeded"/>
</target>
<target name="BreakAndContinue">
<java
classname="BreakAndContinue"
classpath="${java.class.path};${basedir};${basedir}/.."
dir="../control/"
failonerror="true"
fork="true"/>
</target>
<target name="CommaOperator">
<java
classname="CommaOperator"
classpath="${java.class.path};${basedir};${basedir}/.."
dir="../control/"
failonerror="true"
fork="true"/>
</target>
<target name="ForEachFloat">
<java
classname="ForEachFloat"
classpath="${java.class.path};${basedir};${basedir}/.."
dir="../control/"
failonerror="true"
fork="true"/>
</target>
<target name="ForEachInt">
<java
classname="ForEachInt"
classpath="${java.class.path};${basedir};${basedir}/.."
dir="../control/"
failonerror="true"
fork="true"/>
</target>
<target name="ForEachString">
<java
classname="ForEachString"
classpath="${java.class.path};${basedir};${basedir}/.."
dir="../control/"
failonerror="true"
fork="true"/>
</target>
<target name="IfElse">
<java
classname="IfElse"
classpath="${java.class.path};${basedir};${basedir}/.."
dir="../control/"
failonerror="true"
fork="true"/>
</target>
<target name="IfElse2">
<java
classname="IfElse2"
classpath="${java.class.path};${basedir};${basedir}/.."
dir="../control/"
failonerror="true"
fork="true"/>
</target>
<target name="LabeledFor">
<java
classname="LabeledFor"
classpath="${java.class.path};${basedir};${basedir}/.."
dir="../control/"
failonerror="true"
fork="true"/>
</target>
<target name="LabeledWhile">
<java
classname="LabeledWhile"
classpath="${java.class.path};${basedir};${basedir}/.."
dir="../control/"
failonerror="true"
fork="true"/>
</target>
<target name="ListCharacters">
<java
classname="ListCharacters"
classpath="${java.class.path};${basedir};${basedir}/.."
dir="../control/"
failonerror="true"
fork="true"/>
</target>
<target name="VowelsAndConsonants">
<java
classname="VowelsAndConsonants"
classpath="${java.class.path};${basedir};${basedir}/.."
dir="../control/"
failonerror="true"
fork="true"/>
</target>
<target name="WhileTest">
<java
classname="WhileTest"
classpath="${java.class.path};${basedir};${basedir}/.."
dir="../control/"
failonerror="true"
fork="true"/>
</target>
<target
depends="build"
description="Compile and run"
name="run">
<touch file="failures"/>
<antcall target="BreakAndContinue"/>
<antcall target="CommaOperator"/>
<antcall target="ForEachFloat"/>
<antcall target="ForEachInt"/>
<antcall target="ForEachString"/>
<antcall target="IfElse"/>
<antcall target="IfElse2"/>
<antcall target="LabeledFor"/>
<antcall target="LabeledWhile"/>
<antcall target="ListCharacters"/>
<antcall target="VowelsAndConsonants"/>
<antcall target="WhileTest"/>
<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>