140 lines
4.7 KiB
XML
140 lines
4.7 KiB
XML
|
<?xml version="1.0" ?>
|
||
|
|
||
|
<project
|
||
|
basedir="."
|
||
|
default="build"
|
||
|
name="Thinking in Java, 4th Edition (Refreshed) by Bruce Eckel (chapter: patterns)">
|
||
|
|
||
|
<description>
|
||
|
build.xml for the source code for the patterns 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="${java.class.path};${basedir};${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 'patterns'"/>
|
||
|
<javac includeantruntime="false"
|
||
|
classpath="${java.class.path};${basedir};${basedir}/.."
|
||
|
debug="true"
|
||
|
srcdir="${basedir}">
|
||
|
<compilerarg value="-Xmaxerrs"/>
|
||
|
<compilerarg value="10"/>
|
||
|
</javac>
|
||
|
<echo message="Build 'patterns' succeeded"/>
|
||
|
</target>
|
||
|
|
||
|
|
||
|
<target
|
||
|
depends="build"
|
||
|
description="Compile and run"
|
||
|
name="run">
|
||
|
<touch file="failures"/>
|
||
|
<antcall target="ActiveObjectDemo"/>
|
||
|
<antcall target="AtomicIntegerTest"/>
|
||
|
<antcall target="AtomicityTest"/>
|
||
|
<antcall target="AttemptLocking"/>
|
||
|
<antcall target="BankTellerSimulation"/>
|
||
|
<antcall target="BasicThreads"/>
|
||
|
<antcall target="CachedThreadPool"/>
|
||
|
<antcall target="CallableDemo"/>
|
||
|
<antcall target="CaptureUncaughtException"/>
|
||
|
<antcall target="CarBuilder"/>
|
||
|
<antcall target="CountDownLatchDemo"/>
|
||
|
<antcall target="CriticalSection"/>
|
||
|
<antcall target="DaemonFromFactory"/>
|
||
|
<antcall target="Daemons"/>
|
||
|
<antcall target="DaemonsDontRunFinally"/>
|
||
|
<antcall target="DeadlockingDiningPhilosophers"/>
|
||
|
<antcall target="DelayQueueDemo"/>
|
||
|
<antcall target="EvenGenerator"/>
|
||
|
<antcall target="ExceptionThread"/>
|
||
|
<antcall target="ExchangerDemo"/>
|
||
|
<antcall target="ExplicitCriticalSection"/>
|
||
|
<antcall target="FastSimulation"/>
|
||
|
<antcall target="FixedDiningPhilosophers"/>
|
||
|
<antcall target="FixedThreadPool"/>
|
||
|
<antcall target="GreenhouseScheduler"/>
|
||
|
<antcall target="HorseRace"/>
|
||
|
<antcall target="Interrupting"/>
|
||
|
<antcall target="Interrupting2"/>
|
||
|
<antcall target="InterruptingIdiom"/>
|
||
|
<antcall target="Joining"/>
|
||
|
<antcall target="ListComparisons"/>
|
||
|
<antcall target="MainThread"/>
|
||
|
<antcall target="MapComparisons"/>
|
||
|
<antcall target="MoreBasicThreads"/>
|
||
|
<antcall target="MultiLock"/>
|
||
|
<antcall target="NaiveExceptionHandling"/>
|
||
|
<antcall target="NIOInterruption"/>
|
||
|
<antcall target="NotifyVsNotifyAll"/>
|
||
|
<antcall target="OrnamentalGarden"/>
|
||
|
<antcall target="PipedIO"/>
|
||
|
<antcall target="PriorityBlockingQueueDemo"/>
|
||
|
<antcall target="ReaderWriterList"/>
|
||
|
<antcall target="Restaurant"/>
|
||
|
<antcall target="SelfManaged"/>
|
||
|
<antcall target="SemaphoreDemo"/>
|
||
|
<antcall target="SerialNumberChecker"/>
|
||
|
<antcall target="SettingDefaultHandler"/>
|
||
|
<antcall target="SimpleDaemons"/>
|
||
|
<antcall target="SimpleMicroBenchmark"/>
|
||
|
<antcall target="SimplePriorities"/>
|
||
|
<antcall target="SimpleThread"/>
|
||
|
<antcall target="SingleThreadExecutor"/>
|
||
|
<antcall target="SleepingTask"/>
|
||
|
<antcall target="SynchronizationComparisons"/>
|
||
|
<antcall target="SyncObject"/>
|
||
|
<antcall target="ThreadLocalVariableHolder"/>
|
||
|
<antcall target="ThreadVariations"/>
|
||
|
<antcall target="ToastOMatic"/>
|
||
|
<antcall target="RestaurantWithQueues"/>
|
||
|
<antcall target="WaxOMatic"/>
|
||
|
<antcall target="WaxOMatic2"/>
|
||
|
<antcall target="Atomicity"/>
|
||
|
<echo
|
||
|
message="* AtomicEvenGenerator must be run by hand *"/>
|
||
|
<echo message="* CloseResource must be run by hand *"/>
|
||
|
<echo message="* MutexEvenGenerator must be run by hand *"/>
|
||
|
<echo message="* ResponsiveUI must be run by hand *"/>
|
||
|
<echo
|
||
|
message="* SynchronizedEvenGenerator must be run by hand *"/>
|
||
|
<echo message="* TestBlockingQueues must be run by hand *"/>
|
||
|
<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>
|
||
|
|
||
|
|