-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
37 lines (34 loc) · 1.76 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="jar" name="Create Runnable Jar">
<property name="dir.buildfile" value="."/>
<property name="dir.jarfile" value="${dir.buildfile}"/>
<property name="compile-encoding" value="UTF-8" />
<path id="classpath.dependencies">
<pathelement location="${dir.buildfile}/libs/ais-lib-cli-2.2.jar" />
<pathelement location="${dir.buildfile}/libs/ais-lib-communication-2.2.jar" />
<pathelement location="${dir.buildfile}/libs/ais-lib-messages-2.2.jar" />
<pathelement location="${dir.buildfile}/libs/ais-lib-utils-2.2.jar" />
<pathelement location="${dir.buildfile}/libs/aisutils.jar" />
<pathelement location="${dir.buildfile}/libs/gson-2.8.5.jar" />
</path>
<target name="jar" >
<mkdir dir="bin"/>
<delete dir="bin"/>
<mkdir dir="bin"/>
<javac encoding="${compile-encoding}" srcdir="src" destdir="bin" includes="**/*.java" fork="false">
<classpath refid="classpath.dependencies"/>
</javac>
<jar destfile="${dir.jarfile}/AisCaster.jar">
<manifest>
<attribute name="Main-Class" value="pt.lsts.aiscaster.AisCaster"/>
</manifest>
<fileset dir="${dir.buildfile}/bin"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/libs/ais-lib-cli-2.2.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/libs/ais-lib-communication-2.2.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/libs/ais-lib-messages-2.2.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/libs/ais-lib-utils-2.2.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/libs/aisutils.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.buildfile}/libs/gson-2.8.5.jar" />
</jar>
</target>
</project>