Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (49 sloc) 2.07 KB
<?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>
Jump to Line
Something went wrong with that request. Please try again.