-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
63 lines (56 loc) · 2.5 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<project name="jarsBuilder" default="all">
<property name="src.dir" value="src"/>
<property name="bin.dir" value="jar-classes"/>
<property name="jars.dir" value="jars"/>
<property name="args4j.path" value="lib/args4j-2.0.21.jar"/>
<property name="commons.lang3.path" value="lib/commons-lang3-3.1.jar"/>
<property name="antlr.path" value="lib/antlr-runtime-4.7.1.jar"/>
<property name="main.main" value="nusmv_counterexample_visualizer/ConsoleMain"/>
<property name="main.jar" value="visualizer-console.jar"/>
<property name="gui.main" value="nusmv_counterexample_visualizer/GUIMain"/>
<property name="gui.jar" value="visualizer-gui.jar"/>
<property name="debug" value="true"/>
<target name="all"
depends="main-jar, gui-jar">
</target>
<target name="main-jar">
<mkdir dir="${bin.dir}"/>
<javac srcdir="${src.dir}"
destdir="${bin.dir}"
classpath="${commons.lang3.path}:${args4j.path}:${antlr.path}"
includeantruntime="false"
debug="${debug}">
<include name="${main.main}.java"/>
</javac>
<jar destfile="${jars.dir}/${main.jar}"
basedir="${bin.dir}">
<manifest>
<attribute name="Main-Class" value="${main.main}"/>
</manifest>
<zipfileset src="${commons.lang3.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${args4j.path}" excludes="meta-inf/*.sf"/>
<zipfileset src="${antlr.path}" excludes="meta-inf/*.sf"/>
</jar>
<delete dir="${bin.dir}"/>
</target>
<target name="gui-jar">
<mkdir dir="${bin.dir}"/>
<javac srcdir="${src.dir}"
destdir="${bin.dir}"
classpath="${commons.lang3.path}:${args4j.path}:${antlr.path}"
includeantruntime="false"
debug="${debug}">
<include name="${gui.main}.java"/>
</javac>
<jar destfile="${jars.dir}/${gui.jar}"
basedir="${bin.dir}">
<manifest>
<attribute name="Main-Class" value="${gui.main}"/>
</manifest>
<zipfileset src="${commons.lang3.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${args4j.path}" excludes="meta-inf/*.sf"/>
<zipfileset src="${antlr.path}" excludes="meta-inf/*.sf"/>
</jar>
<delete dir="${bin.dir}"/>
</target>
</project>