source: apps/jetty/build.xml @ 979a3e98

Last change on this file since 979a3e98 was 979a3e98, checked in by zzz <zzz@…>, 13 years ago

2007-12-01 Complication

  • Separate the checks "does Jetty .zip file need downloading" and "does Jetty .zip file need extracting" in the Jetty buildfile. First download (unless already done), then extract (unless done).
  • Property mode set to 100644
File size: 2.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<project basedir="." default="all" name="jetty">
3       
4    <target name="all" depends="build" />
5    <target name="fetchJettylib" >
6        <available property="jetty.zip.available" file="jetty-5.1.12.zip" type="file" />
7        <available property="jetty.zip.extracted" file="jettylib" type="dir" />
8        <ant target="doFetchJettylib" />
9        <ant target="doExtractJettylib" />
10    </target>
11    <target name="doFetchJettylib" unless="jetty.zip.available" >
12        <echo message="The libraries contained within the fetched file are from Jetty's 5.1.12" />
13        <echo message="distribution (http://jetty.mortbay.org/).  These are not " />
14        <echo message="necessary for using I2P, but are used by some applications on top of I2P," />
15        <echo message="such as the routerconsole." />
16        <get src="http://mesh.dl.sourceforge.net/sourceforge/jetty/jetty-5.1.12.zip" verbose="true" dest="jetty-5.1.12.zip" />
17    </target>
18    <target name="doExtractJettylib" unless="jetty.zip.extracted" >
19        <ant target="doExtract" />
20    </target>
21    <target name="doExtract">
22        <unzip src="jetty-5.1.12.zip" dest="." />
23        <mkdir dir="jettylib" />
24        <copy todir="jettylib">
25            <fileset dir="jetty-5.1.12/lib">
26                <include name="*.jar" />
27            </fileset>
28        </copy>
29        <copy todir="jettylib">
30            <fileset dir="jetty-5.1.12/ext">
31                <include name="ant.jar" />
32                <include name="commons-el.jar" />
33                <include name="commons-logging.jar" />
34                <include name="jasper-compiler.jar" />
35                <include name="jasper-runtime.jar" />
36                <include name="javax.servlet.jar" />
37                <include name="org.mortbay.jetty.jar" />
38                <include name="xercesImpl.jar" />
39            </fileset>
40        </copy>
41        <delete dir="jetty-5.1.12" />
42    </target>
43    <target name="build" depends="fetchJettylib" />
44    <target name="builddep" />
45    <target name="compile" />
46    <target name="jar" />
47    <target name="clean" />
48    <target name="cleandep" depends="clean" />
49    <target name="distclean" depends="clean">
50        <echo message="Not actually deleting the jetty libs (since they're so large)" />
51    </target>
52</project>
Note: See TracBrowser for help on using the repository browser.