-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.xml
56 lines (49 loc) · 2.07 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="release" name="Create Runnable Jar for Project SimpleServer with Jar-in-Jar Loader">
<property name="version-file" value="bin/simpleserver/VERSION" />
<target name="set-version">
<exec executable="script/update-version.sh" osfamily="unix">
<arg file="${version-file}" />
</exec>
<exec executable="cmd" osfamily="winnt">
<arg value="/c" />
<arg file="script/update-version.bat" />
<arg file="${version-file}" />
</exec>
</target>
<target name="release" depends="clean, create-release-zip" />
<target name="create-release-jar" depends="set-version">
<jar destfile="SimpleServer.jar">
<manifest>
<attribute name="Main-Class" value="simpleserver.Main"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="bin"/>
<zipfileset excludes="META-INF/**" src="lib/commons-logging-1.1.1.jar"/>
<zipfileset excludes="META-INF/**" src="lib/dom4j-1.6.jar"/>
<zipfileset excludes="META-INF/**" src="lib/guava-r07.jar"/>
<zipfileset excludes="META-INF/**" src="lib/httpclient-4.1.jar"/>
<zipfileset excludes="META-INF/**" src="lib/httpcore-4.1.jar"/>
<zipfileset excludes="META-INF/**" src="lib/javassist-3.8.0.GA.jar"/>
<zipfileset excludes="META-INF/**" src="lib/reflections-0.9.5-RC2.jar"/>
<zipfileset excludes="META-INF/**" src="lib/slf4j-api-1.6.1.jar"/>
<zipfileset excludes="META-INF/**" src="lib/slf4j-nop-1.6.1.jar"/>
</jar>
</target>
<target name="create-release-zip" depends="create-release-jar">
<zip destfile="SimpleServer.zip">
<zipfileset file="CHANGES"/>
<zipfileset file="CONTRIBUTORS"/>
<zipfileset file="LICENSE"/>
<zipfileset file="README"/>
<zipfileset file="launch.bat"/>
<zipfileset file="launch.sh"/>
<zipfileset file="SimpleServer.jar"/>
</zip>
</target>
<target name="clean">
<delete file="SimpleServer.jar"/>
<delete file="SimpleServer.zip"/>
<delete file="${version-file}"/>
</target>
</project>