forked from open-power/serverwiz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
81 lines (80 loc) · 2.74 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="jar">
<!-- Setup one-jar -->
<property name="one-jar.dist.dir" value="./lib" />
<property name="one-jar.version" value="0.97" />
<property name="one-jar.ant.jar" value="${one-jar.dist.dir}/one-jar-ant-task-${one-jar.version}.jar" />
<taskdef name="one-jar" classname="com.simontuffs.onejar.ant.OneJarTask" classpath="${one-jar.ant.jar}" onerror="report" />
<!-- All required jars are in ./lib -->
<path id="classpath">
<fileset dir="lib" includes="**/*.jar" />
</path>
<target name="clean">
<delete dir="build" />
</target>
<target name="compile" depends="clean">
<mkdir dir="build/classes" />
<javac srcdir="src" destdir="build/classes" classpathref="classpath" />
</target>
<!--
Build OS specific jars
Serverwiz uses SWT which has OS specific SWT jars
-->
<target name="jar" depends="compile">
<mkdir dir="build" />
<one-jar destfile="build/serverwiz2.jar" onejarmainclass="com.ibm.ServerWizard2.Launcher">
<main>
<fileset dir="build/classes" />
</main>
<lib>
<fileset file="lib/json-simple-1.1.1.jar" />
<fileset file="lib/org.eclipse.core.runtime_3.10.0.v20140318-2214.jar" />
<fileset file="lib/org.eclipse.core.commands_3.6.100.v20140528-1422.jar" />
</lib>
</one-jar>
<one-jar destfile="build/serverwiz2_win64.jar" onejarmainclass="com.ibm.ServerWizard2.ServerWizard2">
<main>
<fileset dir="build/classes" />
</main>
<lib>
<fileset file="lib/swt_win64.jar" />
<fileset file="lib/json-simple-1.1.1.jar" />
<fileset file="lib/org.eclipse*.jar" />
<fileset file="lib/jgit/*.jar" />
</lib>
</one-jar>
<one-jar destfile="build/serverwiz2_linux64.jar" onejarmainclass="com.ibm.ServerWizard2.ServerWizard2">
<main>
<fileset dir="build/classes" />
</main>
<lib>
<fileset file="lib/swt_linux64.jar" />
<fileset file="lib/json-simple-1.1.1.jar" />
<fileset file="lib/org.eclipse*.jar" />
<fileset file="lib/jgit/*.jar" />
</lib>
</one-jar>
<one-jar destfile="build/serverwiz2_win32.jar" onejarmainclass="com.ibm.ServerWizard2.ServerWizard2">
<main>
<fileset dir="build/classes" />
</main>
<lib>
<fileset file="lib/swt_win32.jar" />
<fileset file="lib/json-simple-1.1.1.jar" />
<fileset file="lib/org.eclipse*.jar" />
<fileset file="lib/jgit/*.jar" />
</lib>
</one-jar>
<one-jar destfile="build/serverwiz2_macosx64.jar" onejarmainclass="com.ibm.ServerWizard2.ServerWizard2">
<main>
<fileset dir="build/classes" />
</main>
<lib>
<fileset file="lib/swt_macosx.jar" />
<fileset file="lib/json-simple-1.1.1.jar" />
<fileset file="lib/org.eclipse*.jar" />
<fileset file="lib/jgit/*.jar" />
</lib>
</one-jar>
</target>
</project>