OnJava8-Examples/build.xml

128 lines
3.6 KiB
XML
Raw Normal View History

2015-04-20 15:36:01 -07:00
<?xml version="1.0" ?>
2015-04-27 14:31:25 -07:00
<project basedir="." default="run" name="Thinking in Java Director's Cut by Bruce Eckel">
<import file="Ant-Clean.xml"/>
2015-04-20 15:36:01 -07:00
<description>
Main build.xml for the source code for
2015-04-27 14:31:25 -07:00
Thinking in Java Director's Cut by Bruce Eckel
2015-04-20 15:36:01 -07:00
Code available at http://www.MindView.net
See installation instructions in README.md
2015-04-20 15:36:01 -07:00
See copyright notice in CopyRight.txt
Ant available from http://ant.apache.org
2015-04-20 15:36:01 -07:00
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
2015-04-20 15:36:01 -07:00
concurrency/build.xml
gui/build.xml
swt/build.xml
2015-04-27 14:31:25 -07:00
patterns/build.xml
references/build.xml
assertions/build.xml
unittesting/build.xml
debugging/build.xml
logging/build.xml
network/build.xml
remote/build.xml
2015-05-17 18:45:56 -07:00
staticchecking/build.xml
2015-04-20 15:36:01 -07:00
"/>
<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">
2015-05-05 00:06:52 -07:00
<fail message="Java 8 required" unless="version1.8"/>
2015-04-20 15:36:01 -07:00
<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>
2015-04-22 11:25:46 -07:00
<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"/>
2015-04-20 15:36:01 -07:00
</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>