-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
142 lines (127 loc) · 5.58 KB
/
build.xml
File metadata and controls
142 lines (127 loc) · 5.58 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<project name="XUES" default="all">
<!-- This is very, very weird. I can't figure out why I need three sets
of dots... -->
<property name="rootdir" value="{$basedir}/../../.." />
<!-- Which jars does xues require? -->
<patternset id="xues.jars">
<include name="tools/siena-1.4.2/siena-1.4.2.jar" />
<include name="tools/hsqldb-1.61/lib/hsqldb.jar" />
<include name="tools/log4j-1.2.4/dist/lib/log4j-1.2.4.jar" />
<!-- Only needed for Java 1.3.x, which we no longer support -->
<!--<include name="tools/crimson-1.1.3/crimson.jar" />-->
</patternset>
<!-- Now build our classpath and tell Ant to ignore the environment
classpath -->
<path id="xues.classpath">
<fileset dir="${rootdir}">
<patternset refid="xues.jars" />
</fileset>
<pathelement path="${rootdir}" />
</path>
<property name="classpath" refid="xues.classpath"/>
<property name="build.sysclasspath" value="ignore" />
<!-- Target directory for built jars -->
<property name="distdir" value="${basedir}/dist" />
<property name="build.compiler" value="modern" />
<property name="javac.debug" value="on" />
<target name="all" depends="ed, ep"/>
<target name="ed" depends="xues">
<!-- XXX - Can't Java handle the dependencies? Did ant turn it off?
If so, we should ultimately make these proper dependencies in ant. -->
<javac debug="${javac.debug}" srcdir="${rootdir}/psl/kx"
classpath="${classpath}" includes="KXNotification.java" />
<javac debug="${javac.debug}" srcdir="${rootdir}/psl/events/siena/utils"
classpath="${classpath}" />
<javac debug="${javac.debug}" srcdir="ed" classpath="${classpath}"
excludes="acme/*" />
</target>
<!-- ED with ACME Gauge Bus support - EXPERIMENTAL -->
<target name="ed-acme" depends="xues">
<javac debug="${javac.debug}" srcdir="ed" classpath="${classpath}" />
<javac debug="${javac.debug}" srcdir="${rootdir}/psl/kx"
classpath="${classpath}" includes="KXNotification.java" />
</target>
<target name="ep" depends="xues">
<javac debug="${javac.debug}" srcdir="ep" classpath="${classpath}" />
</target>
<!-- Common XUES stuff -->
<target name="xues">
<!-- This is a little tricky: we need to compile one file separately -->
<javac debug="${javac.debug}" srcdir="util" classpath="${classpath}"
excludes="Siena13Utils.java" />
<javac debug="${javac.debug}" srcdir="util" includes="Siena13Utils.java">
<classpath>
<pathelement location="${rootdir}/tools/siena-1.3.0/siena-1.3.0.jar" />
<pathelement location="${rootdir}/tools/log4j-1.2.4/dist/lib/log4j-1.2.4.jar" />
</classpath>
</javac>
</target>
<target name="ed-jar" depends="ed">
<jar jarfile="${distdir}/EventDistiller.jar" basedir="${rootdir}/"
includes="psl/kx/KXNotification*, psl/xues/ed/**, psl/xues/util/*"
excludes="**/.nbattrs" />
</target>
<target name="ep-jar" depends="ep">
<jar jarfile="${distdir}/EventPackager.jar" basedir="${rootdir}/"
includes="psl/xues/ep/**, psl/xues/util/*"
excludes="**/.nbattrs" />
</target>
<target name="xues-support-jar">
<!-- The below complains - use filesetmanifest="skip" in 1.5.1 or later -->
<jar jarfile="${distdir}/xues-support.jar" >
<zipgroupfileset dir="${rootdir}">
<patternset refid="xues.jars" />
</zipgroupfileset>
</jar>
</target>
<target name="ed-docs" depends="ed">
<javadoc sourcepath="${rootdir}" destdir="dist/ed-docs"
packagenames="psl.xues.ed.*" access="public"
classpath="${classpath}" />
</target>
<target name="ep-docs" depends="ep">
<javadoc sourcepath="${rootdir}" destdir="dist/ep-docs"
packagenames="psl.xues.ep.*" access="public"
classpath="${classpath}" />
</target>
<target name="dist" depends="ed-dist, ep-dist" />
<target name="ed-dist" depends="ed-jar, xues-support-jar, ed-docs">
<zip zipfile="dist/EventDistiller.zip">
<zipfileset dir="${distdir}"
includes="EventDistiller.jar, xues-support.jar" />
<zipfileset dir="${basedir}"
includes="LICENSE" />
<zipfileset dir="${basedir}/ed/"
includes="EventDistiller.html" />
<zipfileset dir="${basedir}/ed/" prefix="samples/"
includes="**/*.xml, **/*.xsd" />
<zipfileset dir="${basedir}/dist/ed-docs/" prefix="docs/"
includes="**/*.html" />
</zip>
</target>
<target name="ep-dist" depends="ep-jar, xues-support-jar, ep-docs">
<zip zipfile="dist/EventPackager.zip">
<zipfileset dir="${distdir}"
includes="EventPackager.jar, xues-support.jar" />
<zipfileset dir="${basedir}"
includes="LICENSE" />
<zipfileset dir="${basedir}/ep/"
includes="EventPackager.html" />
<zipfileset dir="${basedir}/ep/examples/" prefix="examples/"
includes="**/*.xml, **/*.xsd, **/*.java" />
<zipfileset dir="${basedir}/dist/ep-docs/" prefix="javadoc/"
includes="**/*.html" />
</zip>
</target>
<target name="clean">
<delete>
<fileset dir="dist" includes="*.jar, *.zip" casesensitive="false" />
<fileset dir="." includes="**/*.class, **/*~, **/#*#, **/.#*, **/%*%"
casesensitive="false" defaultexcludes="no" />
</delete>
<delete dir="dist/ed-docs" includeEmptyDirs="true" />
<delete dir="dist/ep-docs" includeEmptyDirs="true" />
<delete dir="dist/ed-classes" includeEmptyDirs="true" />
<delete dir="dist/ep-classes" includeEmptyDirs="true" />
</target>
</project>