-
Notifications
You must be signed in to change notification settings - Fork 0
/
normal-jar-build.xml
28 lines (27 loc) · 1.27 KB
/
normal-jar-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
<?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">
<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/">
<include name="**/*.jar"/>
</zipgroupfileset>
</jar>
<jar destfile="./release/KEllyIRC.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="shared.Initializer"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="./bin"/>
<fileset dir="./libs"/>
<!--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" />
</jar>
<!--Delete temporary file-->
<delete file="./release/externalLibsTemp.jar"/>
</target>
</project>