-
Notifications
You must be signed in to change notification settings - Fork 0
/
swtjar-build.xml
61 lines (54 loc) · 2.77 KB
/
swtjar-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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project kEllyIRClient">
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required-->
<target name="create_run_jar">
<!--make the release directory if it doesn't exist-->
<mkdir dir="./release/"/>
<!--Create a temporary jar file with all the dependencies (i.e. the libs folder)-->
<jar jarfile="./release/externalLibsTemp.jar">
<zipgroupfileset dir="./libs/">
<exclude name="swt/*swt*.jar"/>
<include name="**/*.jar"/>
</zipgroupfileset>
</jar>
<!--package with windows swt-->
<jar destfile="./release/KEllyIRC-windows.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="shared.Initializer"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="./bin"/>
<!--Add the dependencies jar to the jar, but exclude the meta-inf/manifest stuff
cause that screws stuff up.-->
<zipfileset excludes="META-INF/*.SF" src="./release/externalLibsTemp.jar" />
<zipfileset src="./libs/swt/swt-win32-3.7.1.jar"/>
</jar>
<!--package with osx swt-->
<jar destfile="./release/KEllyIRC-osx.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="shared.Initializer"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="./bin"/>
<!--Add the dependencies jar to the jar, but exclude the meta-inf/manifest stuff
cause that screws stuff up.-->
<zipfileset excludes="META-INF/*.SF" src="./release/externalLibsTemp.jar" />
<zipfileset src="./libs/swt/swt-osx32-3.7.1.jar"/>
</jar>
<!--package with linux swt-->
<jar destfile="./release/KEllyIRC-linux.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="shared.Initializer"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="./bin"/>
<!--Add the dependencies jar to the jar, but exclude the meta-inf/manifest stuff
cause that screws stuff up.-->
<zipfileset excludes="META-INF/*.SF" src="./release/externalLibsTemp.jar" />
<zipfileset src="./libs/swt/swt-linux32-3.7.1.jar"/>
</jar>
<!--Delete temporary file-->
<delete file="./release/externalLibsTemp.jar"/>
</target>
</project>