-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
47 lines (40 loc) · 1.38 KB
/
build.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
<project name="DuneInspector" default="inspect">
<path id="classpath.dependencies">
<pathelement location="libs/libimc.jar" />
<pathelement location="libs/plantuml.jar" />
<pathelement location="libs/ini4j-0.5.4.jar" />
<pathelement location="libs/args4j-2.33.jar" />
</path>
<path id="classpath.base">
<path refid="classpath.dependencies" />
<pathelement location="build" />
</path>
<target name="compile">
<mkdir dir="build"/>
<delete dir="build"/>
<mkdir dir="build"/>
<mkdir dir="build/res"/>
<javac srcdir="src" destdir="build" includes="**/*.java" fork="false">
<classpath refid="classpath.dependencies"/>
</javac>
<unjar src="libs/libimc.jar" dest="build"/>
<unjar src="libs/plantuml.jar" dest="build"/>
<unjar src="libs/ini4j-0.5.4.jar" dest="build"/>
<unjar src="libs/args4j-2.33.jar" dest="build"/>
<copy file="res/tl.obj" todir="build/res"/>
</target>
<target name="inspect.jar" depends="compile">
<jar destfile="inspect.jar" basedir="build" index="true">
<manifest>
<attribute name="Main-Class" value="pt.lsts.Inspect"/>
</manifest>
</jar>
</target>
<target name="inspect" depends="inspect.jar">
<exec executable="libs/jar2sh.sh" >
<arg value="inspect"/>
<arg value="inspect.jar"/>
</exec>
<delete file="inspect.jar" />
</target>
</project>