-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
51 lines (44 loc) · 1.42 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
<?xml version="1.0" encoding="utf-8"?>
<project basedir="." default="main" name="WMS-Setup">
<target name="prepare">
<mkdir dir="build" />
<mkdir dir="dist" />
</target>
<target name="clean">
<delete dir="build" quiet="true" />
<delete dir="dist" quiet="true" />
</target>
<target name="compile" depends="prepare">
<javac srcdir="src"
destdir="build/"
debug="true"
source="1.5"
target="1.5"
includeantruntime="false">
<compilerarg value="-Xlint:deprecation" />
</javac>
</target>
<target name="main">
<antcall target="compile" />
<antcall target="createExecutable" />
</target>
<target name="run" depends="compile, createExecutable">
<java jar="dist/WMS-Setup.jar"
fork="true"
failonerror="true"
>
<classpath>
<pathelement location="dist/test.jar"/>
<pathelement path="${java.class.path}"/>
</classpath>
</java>
</target>
<target name="createExecutable" depends="compile">
<jar destfile="dist/WMS-Setup.jar" update="false" index="false">
<fileset dir="build" />
<manifest>
<attribute name="Main-Class" value="sub.optimal.wms.MainFrame" />
</manifest>
</jar>
</target>
</project>