-
Notifications
You must be signed in to change notification settings - Fork 21
/
subbuild.xml
74 lines (62 loc) · 2.17 KB
/
subbuild.xml
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
<?xml version="1.0"?>
<project default="all">
<property file="build/build.properties"/>
<property name="main-class" value="org.nyet.ecuxplot.ECUxPlot"/>
<depend srcdir="src" destdir="build/classes" cache="build/depcache" closure="yes"/>
<path id="classpath">
<fileset dir="lib" includes="${ECUXPLOT_JARS} ${COMMON_JARS}"/>
</path>
<path id="common-jars">
<fileset dir="lib" includes="${COMMON_JARS}"/>
</path>
<manifestclasspath property="classpath.list" jarfile="${TARGET}.jar">
<classpath refid="classpath"/>
</manifestclasspath>
<manifestclasspath property="common-jars.list" jarfile="${TARGET}.jar">
<classpath refid="common-jars"/>
</manifestclasspath>
<target name="test">
</target>
<target name="compile">
<javac
srcdir="src"
destdir="build/classes"
release="${JAVA_TARGET_VER}"
includeantruntime="false"
classpathref="classpath"
deprecation="on"
debug="on"
/>
</target>
<target name="ecuxplot" depends="compile">
<dependset>
<srcfileset dir="." includes="${ant.file}"/>
<targetfileset dir="." includes="${TARGET}.jar"/>
</dependset>
<jar destfile="${TARGET}.jar">
<fileset dir="build/classes" excludes="mapdump*.class"/>
<fileset dir="src" includes="org/nyet/**/*-*.png"/>
<manifest>
<attribute name="Main-Class" value="${main-class}"/>
<attribute name="Class-Path" value="${classpath.list}"/>
</manifest>
</jar>
</target>
<target name="mapdump" depends="compile">
<dependset>
<srcfileset dir="." includes="${ant.file}"/>
<targetfileset dir="." includes="mapdump.jar"/>
</dependset>
<jar destfile="mapdump.jar">
<fileset dir="build/classes" includes="mapdump*.class" />
<manifest>
<attribute name="Main-Class" value="mapdump"/>
<attribute name="Class-Path" value="${TARGET}.jar ${common-jars.list}"/>
</manifest>
</jar>
</target>
<target name="all" depends="ecuxplot,mapdump"/>
<target name="run" depends="compile">
<java jar="${TARGET}.jar" fork="true"/>
</target>
</project>