127 lines
3.5 KiB
XML
127 lines
3.5 KiB
XML
<?xml version="1.0" ?>
|
|
|
|
<project basedir="." default="run" name="Thinking in Java Director's Cut by Bruce Eckel">
|
|
<import file="Ant-Clean.xml"/>
|
|
|
|
<description>
|
|
Main build.xml for the source code for
|
|
Thinking in Java Director's Cut by Bruce Eckel
|
|
Code available at http://www.MindView.net
|
|
See installation instructions in README.md
|
|
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>
|
|
|
|
<filelist id="buildfiles" dir="."
|
|
files="object/build.xml
|
|
operators/build.xml
|
|
control/build.xml
|
|
initialization/build.xml
|
|
access/build.xml
|
|
net/build.xml
|
|
reusing/build.xml
|
|
polymorphism/build.xml
|
|
interfaces/build.xml
|
|
innerclasses/build.xml
|
|
holding/build.xml
|
|
exceptions/build.xml
|
|
strings/build.xml
|
|
typeinfo/build.xml
|
|
generics/build.xml
|
|
arrays/build.xml
|
|
containers/build.xml
|
|
io/build.xml
|
|
xml/build.xml
|
|
enumerated/build.xml
|
|
annotations/build.xml
|
|
concurrency/build.xml
|
|
gui/build.xml
|
|
swt/build.xml
|
|
patterns/build.xml
|
|
references/build.xml
|
|
assertions/build.xml
|
|
unittesting/build.xml
|
|
debugging/build.xml
|
|
logging/build.xml
|
|
network/build.xml
|
|
remote/build.xml
|
|
"/>
|
|
|
|
<target name="run" description="Compiles and runs all examples">
|
|
<delete file="errors.txt"/>
|
|
<subant>
|
|
<filelist refid="buildfiles"/>
|
|
</subant>
|
|
<available file="errors.txt" property="errors"/>
|
|
<antcall target="finish"/>
|
|
</target>
|
|
|
|
<target name="build" description="Compiles all examples">
|
|
<fail message="Java 8 required" unless="version1.8"/>
|
|
<delete file="errors.txt"/>
|
|
<subant target="build">
|
|
<filelist refid="buildfiles"/>
|
|
</subant>
|
|
<available file="errors.txt" property="errors"/>
|
|
<antcall target="finish"/>
|
|
</target>
|
|
|
|
<target name="finish" if="errors">
|
|
<echo message="Errors occurred. See errors.txt for information."/>
|
|
</target>
|
|
|
|
<target name="verify" depends="build"
|
|
description="Verifies comment output; requires Python 2.3 or newer">
|
|
<echo message="run program by hand:"/>
|
|
<echo message="python OutputVerifier.py"/>
|
|
<echo message="Or:"/>
|
|
<echo message="py -2 OutputVerifier.py"/>
|
|
</target>
|
|
|
|
<target name="findbugs" depends="build"
|
|
description="Runs findbugs. Must install findbugs from findbugs.sourceforge.net">
|
|
<exec executable="findbugs.bat">
|
|
<arg value="-textui"/>
|
|
<arg value="-sortByClass"/>
|
|
<arg value="-exclude"/>
|
|
<arg value="FindBugsFilter.xml"/>
|
|
<arg value="-html"/>
|
|
<arg value="."/>
|
|
<redirector output="findbugs.html"/>
|
|
</exec>
|
|
</target>
|
|
|
|
<target name="findbugs-plain" depends="build"
|
|
description="Runs findbugs with plain text output">
|
|
<exec executable="findbugs.bat">
|
|
<arg value="-textui"/>
|
|
<arg value="-sortByClass"/>
|
|
<arg value="-exclude"/>
|
|
<arg value="FindBugsFilter.xml"/>
|
|
<arg value="."/>
|
|
<redirector output="findbugs.txt"/>
|
|
</exec>
|
|
</target>
|
|
|
|
<target name="findbugs-xml" depends="build"
|
|
description="Runs findbugs with xml output">
|
|
<exec executable="findbugs.bat">
|
|
<arg value="-textui"/>
|
|
<arg value="-sortByClass"/>
|
|
<arg value="-exclude"/>
|
|
<arg value="FindBugsFilter.xml"/>
|
|
<arg value="-xml"/>
|
|
<arg value="."/>
|
|
<redirector output="findbugs.xml"/>
|
|
</exec>
|
|
</target>
|
|
|
|
</project>
|