forked from teddyzhang1976/ThinkInJava4thSampleCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
86 lines (71 loc) · 2.15 KB
/
build.xml
File metadata and controls
86 lines (71 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0" ?>
<project
basedir="."
default="run"
name="Thinking in Java, 4th Edition by Bruce Eckel (chapter: xml)">
<description>
build.xml for the source code for the xml chapter of
Thinking in Java, 4th Edition by Bruce Eckel
Source code available at http://www.MindView.net
See copyright notice in CopyRight.txt
Ant available from: http://jakarta.apache.org/ant
To see options, type: ant -p
This file was automatically generated by AntBuilder
</description>
<condition property="version1.5">
<equals arg1="1.5" arg2="${ant.java.version}"/>
</condition>
<available classname="nu.xom.Node" property="nu.xom.Node"/>
<target
depends=""
description="Build all classes in this directory"
name="build">
<fail message="J2SE5 required" unless="version1.5"/>
<fail
Unless="nu.xom.Node"
message="You must install the XOM library from http://www.xom.nu"/>
<echo message="Building 'xml'"/>
<javac
classpath="${basedir}/.."
debug="true"
srcdir="${basedir}">
<compilerarg value="-Xmaxerrs"/>
<compilerarg value="10"/>
</javac>
<echo message="Build 'xml' succeeded"/>
</target>
<target depends="Person" name="People">
<java
classname="People"
classpath="${java.class.path};${basedir};${basedir}/.."
dir="../xml/"
failonerror="true"
fork="true"/>
</target>
<target name="Person">
<java
classname="Person"
classpath="${java.class.path};${basedir};${basedir}/.."
dir="../xml/"
failonerror="true"
fork="true"/>
</target>
<target
depends="build"
description="Compile and run"
name="run">
<touch file="failures"/>
<antcall target="People"/>
<antcall target="Person"/>
<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>