<?xml version="1.0" encoding="UTF-8"?> <project basedir="." default="all" name="jetty"> <target name="all" depends="build" /> <target name="fetchJettylib" > <available property="jetty.available" file="jetty-5.1.6.zip" /> <ant target="doFetchJettylib" /> </target> <target name="doFetchJettylib" unless="jetty.available" > <echo message="The libraries contained within the fetched file are from Jetty's 5.1.6" /> <echo message="distribution (http://jetty.mortbay.org/). These are not " /> <echo message="necessary for using I2P, but are used by some applications on top of I2P," /> <echo message="such as the routerconsole." /> <get src="http://mesh.dl.sourceforge.net/sourceforge/jetty/jetty-5.1.6.zip" verbose="true" dest="jetty-5.1.6.zip" /> <ant target="doExtract" /> </target> <target name="doExtract"> <unzip src="jetty-5.1.6.zip" dest="." /> <mkdir dir="jettylib" /> <copy todir="jettylib"> <fileset dir="jetty-5.1.6/lib"> <include name="*.jar" /> </fileset> </copy> <copy todir="jettylib"> <fileset dir="jetty-5.1.6/ext"> <include name="ant.jar" /> <include name="commons-el.jar" /> <include name="jasper-compiler.jar" /> <include name="jasper-runtime.jar" /> <include name="javax.servlet.jar" /> <include name="org.mortbay.jetty.jar" /> <include name="xercesImpl.jar" /> </fileset> </copy> <!-- note the rename, to keep compat with old rev, since we only used the API anyway --> <copy file="jetty-5.1.6/ext/commons-logging-api.jar" tofile="jettylib/commons-logging.jar" /> <delete dir="jetty-5.1.6" /> </target> <target name="build" depends="fetchJettylib" /> <target name="builddep" /> <target name="compile" /> <target name="jar" /> <target name="clean" /> <target name="cleandep" depends="clean" /> <target name="distclean" depends="clean"> <echo message="Not actually deleting the jetty libs (since they're so large)" /> </target> </project>