forked from nyetwurk/ecuxplot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubbuild.xml
More file actions
71 lines (59 loc) · 2.09 KB
/
Copy pathsubbuild.xml
File metadata and controls
71 lines (59 loc) · 2.09 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
<?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="." includes="${ECUXPLOT_JARS}"/>
<fileset dir="." includes="${COMMON_JARS}"/>
</path>
<target name="test">
</target>
<target name="compile">
<path id="java-rt.path" path="${JAVA_RT_PATH}"/>
<pathconvert property="bootclass.path" refid="java-rt.path">
<globmapper from="*" to="*/lib/rt.jar"/>
</pathconvert>
<javac
srcdir="src"
destdir="build/classes"
source="${JAVA_TARGET_VER}"
target="${JAVA_TARGET_VER}"
includeantruntime="false"
classpathref="classpath"
debug="on"
bootclasspath="${bootclass.path}"
/>
</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="${ECUXPLOT_JARS} ${COMMON_JARS}"/>
</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}"/>
</manifest>
</jar>
</target>
<target name="all" depends="ecuxplot,mapdump"/>
<target name="run" depends="compile">
<java jar="${TARGET}.jar" fork="true"/>
</target>
</project>