2004-08-01 05:31:15 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project basedir="." default="all" name="jetty">
|
2008-03-08 20:37:45 +00:00
|
|
|
|
|
|
|
<property name="jetty.sha1" value="021164f84da7304bd1ff07c268b45aa3e0b13322" />
|
|
|
|
<property name="jetty.md5" value="a61adc832be6baf2678935506743cfc3" />
|
2008-05-22 20:52:56 +00:00
|
|
|
<property name="jetty.url" value="http://dist.codehaus.org/jetty/jetty-5.1.x/jetty-5.1.12.zip" />
|
2008-03-08 20:37:45 +00:00
|
|
|
<property name="jetty.filename" value="jetty-5.1.12.zip" />
|
2008-11-14 14:48:08 +00:00
|
|
|
<property name="verified.filename" value="verified.txt" />
|
2009-04-26 15:54:51 +00:00
|
|
|
<property name="javac.compilerargs" value="" />
|
2008-03-08 20:37:45 +00:00
|
|
|
|
2004-08-01 05:31:15 +00:00
|
|
|
<target name="all" depends="build" />
|
2008-03-08 20:37:45 +00:00
|
|
|
|
|
|
|
<target name="ensureJettylib" >
|
|
|
|
<available property="jetty.zip.available" file="${jetty.filename}" type="file" />
|
2007-12-02 03:13:15 +00:00
|
|
|
<available property="jetty.zip.extracted" file="jettylib" type="dir" />
|
2008-03-08 20:37:45 +00:00
|
|
|
<ant target="fetchJettylib" />
|
|
|
|
<ant target="verifyJettylib" />
|
|
|
|
<ant target="extractJettylib" />
|
2004-08-01 06:46:59 +00:00
|
|
|
</target>
|
2008-03-08 20:37:45 +00:00
|
|
|
|
|
|
|
<target name="fetchJettylib" unless="jetty.zip.available" >
|
|
|
|
<echo message="It seems that you don't have '${jetty.filename}' deployed." />
|
|
|
|
<echo message="The build script can download this file for you automatically," />
|
|
|
|
<echo message="or alternatively you can obtain it manually from:" />
|
|
|
|
<echo message="${jetty.url}" />
|
|
|
|
<echo message="" />
|
|
|
|
<echo message="The libraries contained in the fetched file provide the Jetty web server" />
|
|
|
|
<echo message="(http://jetty.mortbay.org/). They are not absolutely necessary" />
|
|
|
|
<echo message="but strongly recommended, since they are used by some applications" />
|
|
|
|
<echo message="on top of I2P, like the router console." />
|
|
|
|
<echo message="" />
|
|
|
|
<echo message="Even if you deploy the Jetty archive manually, the build script will" />
|
|
|
|
<echo message="still attempt to verify its checksums, which must be:" />
|
|
|
|
<echo message="SHA1 ${jetty.sha1}" />
|
|
|
|
<echo message="MD5 ${jetty.md5}" />
|
|
|
|
<echo message="" />
|
|
|
|
<input message="Download Jetty archive automatically?" validargs="y,n" addproperty="jetty.download" />
|
|
|
|
<fail message="Aborting as requested. Please deploy the Jetty archive manually." >
|
|
|
|
<condition>
|
|
|
|
<equals arg1="${jetty.download}" arg2="n"/>
|
|
|
|
</condition>
|
|
|
|
</fail>
|
|
|
|
<get src="${jetty.url}" verbose="true" dest="${jetty.filename}" />
|
2007-12-02 03:13:15 +00:00
|
|
|
</target>
|
2008-03-08 20:37:45 +00:00
|
|
|
|
2008-11-14 14:48:08 +00:00
|
|
|
<uptodate property="verified.already" srcfile="${jetty.filename}" targetfile="${verified.filename}" />
|
|
|
|
|
|
|
|
<target name="verifyJettylib" unless="verified.already" >
|
2008-03-08 20:37:45 +00:00
|
|
|
<condition property="jetty.zip.verified" >
|
|
|
|
<and>
|
|
|
|
<checksum file="${jetty.filename}" algorithm="SHA" property="${jetty.sha1}" />
|
|
|
|
<checksum file="${jetty.filename}" algorithm="MD5" property="${jetty.md5}" />
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
<fail message="Jetty archive does not match its checksums!" >
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<istrue value="${jetty.zip.verified}" />
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
</fail>
|
2008-11-14 14:48:08 +00:00
|
|
|
<touch file="${verified.filename}" />
|
2005-02-16 jrandom
* (Merged the 0.5-pre branch back into CVS HEAD)
* Replaced the old tunnel routing crypto with the one specified in
router/doc/tunnel-alt.html, including updates to the web console to view
and tweak it.
* Provide the means for routers to reject tunnel requests with a wider
range of responses:
probabalistic rejection, due to approaching overload
transient rejection, due to temporary overload
bandwidth rejection, due to persistent bandwidth overload
critical rejection, due to general router fault (or imminent shutdown)
The different responses are factored into the profiles accordingly.
* Replaced the old I2CP tunnel related options (tunnels.depthInbound, etc)
with a series of new properties, relevent to the new tunnel routing code:
inbound.nickname (used on the console)
inbound.quantity (# of tunnels to use in any leaseSets)
inbound.backupQuantity (# of tunnels to keep in the ready)
inbound.length (# of remote peers in the tunnel)
inbound.lengthVariance (if > 0, permute the length by adding a random #
up to the variance. if < 0, permute the length
by adding or subtracting a random # up to the
variance)
outbound.* (same as the inbound, except for the, uh, outbound tunnels
in that client's pool)
There are other options, and more will be added later, but the above are
the most relevent ones.
* Replaced Jetty 4.2.21 with Jetty 5.1.2
* Compress all profile data on disk.
* Adjust the reseeding functionality to work even when the JVM's http proxy
is set.
* Enable a poor-man's interactive-flow in the streaming lib by choking the
max window size.
* Reduced the default streaming lib max message size to 16KB (though still
configurable by the user), also doubling the default maximum window
size.
* Replaced the RouterIdentity in a Lease with its SHA256 hash.
* Reduced the overall I2NP message checksum from a full 32 byte SHA256 to
the first byte of the SHA256.
* Added a new "netId" flag to let routers drop references to other routers
who we won't be able to talk to.
* Extended the timestamper to get a second (or third) opinion whenever it
wants to actually adjust the clock offset.
* Replaced that kludge of a timestamp I2NP message with a full blown
DateMessage.
* Substantial memory optimizations within the router and the SDK to reduce
GC churn. Client apps and the streaming libs have not been tuned,
however.
* More bugfixes thank you can shake a stick at.
2005-02-13 jrandom
* Updated jbigi source to handle 64bit CPUs. The bundled jbigi.jar still
only contains 32bit versions, so build your own, placing libjbigi.so in
your install dir if necessary. (thanks mule!)
* Added support for libjbigi-$os-athlon64 to NativeBigInteger and CPUID
(thanks spaetz!)
2005-02-16 22:23:47 +00:00
|
|
|
</target>
|
2008-03-08 20:37:45 +00:00
|
|
|
|
|
|
|
<target name="extractJettylib" unless="jetty.zip.extracted" >
|
|
|
|
<unzip src="${jetty.filename}" dest="." />
|
2005-02-16 jrandom
* (Merged the 0.5-pre branch back into CVS HEAD)
* Replaced the old tunnel routing crypto with the one specified in
router/doc/tunnel-alt.html, including updates to the web console to view
and tweak it.
* Provide the means for routers to reject tunnel requests with a wider
range of responses:
probabalistic rejection, due to approaching overload
transient rejection, due to temporary overload
bandwidth rejection, due to persistent bandwidth overload
critical rejection, due to general router fault (or imminent shutdown)
The different responses are factored into the profiles accordingly.
* Replaced the old I2CP tunnel related options (tunnels.depthInbound, etc)
with a series of new properties, relevent to the new tunnel routing code:
inbound.nickname (used on the console)
inbound.quantity (# of tunnels to use in any leaseSets)
inbound.backupQuantity (# of tunnels to keep in the ready)
inbound.length (# of remote peers in the tunnel)
inbound.lengthVariance (if > 0, permute the length by adding a random #
up to the variance. if < 0, permute the length
by adding or subtracting a random # up to the
variance)
outbound.* (same as the inbound, except for the, uh, outbound tunnels
in that client's pool)
There are other options, and more will be added later, but the above are
the most relevent ones.
* Replaced Jetty 4.2.21 with Jetty 5.1.2
* Compress all profile data on disk.
* Adjust the reseeding functionality to work even when the JVM's http proxy
is set.
* Enable a poor-man's interactive-flow in the streaming lib by choking the
max window size.
* Reduced the default streaming lib max message size to 16KB (though still
configurable by the user), also doubling the default maximum window
size.
* Replaced the RouterIdentity in a Lease with its SHA256 hash.
* Reduced the overall I2NP message checksum from a full 32 byte SHA256 to
the first byte of the SHA256.
* Added a new "netId" flag to let routers drop references to other routers
who we won't be able to talk to.
* Extended the timestamper to get a second (or third) opinion whenever it
wants to actually adjust the clock offset.
* Replaced that kludge of a timestamp I2NP message with a full blown
DateMessage.
* Substantial memory optimizations within the router and the SDK to reduce
GC churn. Client apps and the streaming libs have not been tuned,
however.
* More bugfixes thank you can shake a stick at.
2005-02-13 jrandom
* Updated jbigi source to handle 64bit CPUs. The bundled jbigi.jar still
only contains 32bit versions, so build your own, placing libjbigi.so in
your install dir if necessary. (thanks mule!)
* Added support for libjbigi-$os-athlon64 to NativeBigInteger and CPUID
(thanks spaetz!)
2005-02-16 22:23:47 +00:00
|
|
|
<mkdir dir="jettylib" />
|
|
|
|
<copy todir="jettylib">
|
2007-03-03 20:30:52 +00:00
|
|
|
<fileset dir="jetty-5.1.12/lib">
|
2005-02-16 jrandom
* (Merged the 0.5-pre branch back into CVS HEAD)
* Replaced the old tunnel routing crypto with the one specified in
router/doc/tunnel-alt.html, including updates to the web console to view
and tweak it.
* Provide the means for routers to reject tunnel requests with a wider
range of responses:
probabalistic rejection, due to approaching overload
transient rejection, due to temporary overload
bandwidth rejection, due to persistent bandwidth overload
critical rejection, due to general router fault (or imminent shutdown)
The different responses are factored into the profiles accordingly.
* Replaced the old I2CP tunnel related options (tunnels.depthInbound, etc)
with a series of new properties, relevent to the new tunnel routing code:
inbound.nickname (used on the console)
inbound.quantity (# of tunnels to use in any leaseSets)
inbound.backupQuantity (# of tunnels to keep in the ready)
inbound.length (# of remote peers in the tunnel)
inbound.lengthVariance (if > 0, permute the length by adding a random #
up to the variance. if < 0, permute the length
by adding or subtracting a random # up to the
variance)
outbound.* (same as the inbound, except for the, uh, outbound tunnels
in that client's pool)
There are other options, and more will be added later, but the above are
the most relevent ones.
* Replaced Jetty 4.2.21 with Jetty 5.1.2
* Compress all profile data on disk.
* Adjust the reseeding functionality to work even when the JVM's http proxy
is set.
* Enable a poor-man's interactive-flow in the streaming lib by choking the
max window size.
* Reduced the default streaming lib max message size to 16KB (though still
configurable by the user), also doubling the default maximum window
size.
* Replaced the RouterIdentity in a Lease with its SHA256 hash.
* Reduced the overall I2NP message checksum from a full 32 byte SHA256 to
the first byte of the SHA256.
* Added a new "netId" flag to let routers drop references to other routers
who we won't be able to talk to.
* Extended the timestamper to get a second (or third) opinion whenever it
wants to actually adjust the clock offset.
* Replaced that kludge of a timestamp I2NP message with a full blown
DateMessage.
* Substantial memory optimizations within the router and the SDK to reduce
GC churn. Client apps and the streaming libs have not been tuned,
however.
* More bugfixes thank you can shake a stick at.
2005-02-13 jrandom
* Updated jbigi source to handle 64bit CPUs. The bundled jbigi.jar still
only contains 32bit versions, so build your own, placing libjbigi.so in
your install dir if necessary. (thanks mule!)
* Added support for libjbigi-$os-athlon64 to NativeBigInteger and CPUID
(thanks spaetz!)
2005-02-16 22:23:47 +00:00
|
|
|
<include name="*.jar" />
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<copy todir="jettylib">
|
2007-03-03 20:30:52 +00:00
|
|
|
<fileset dir="jetty-5.1.12/ext">
|
2005-02-16 jrandom
* (Merged the 0.5-pre branch back into CVS HEAD)
* Replaced the old tunnel routing crypto with the one specified in
router/doc/tunnel-alt.html, including updates to the web console to view
and tweak it.
* Provide the means for routers to reject tunnel requests with a wider
range of responses:
probabalistic rejection, due to approaching overload
transient rejection, due to temporary overload
bandwidth rejection, due to persistent bandwidth overload
critical rejection, due to general router fault (or imminent shutdown)
The different responses are factored into the profiles accordingly.
* Replaced the old I2CP tunnel related options (tunnels.depthInbound, etc)
with a series of new properties, relevent to the new tunnel routing code:
inbound.nickname (used on the console)
inbound.quantity (# of tunnels to use in any leaseSets)
inbound.backupQuantity (# of tunnels to keep in the ready)
inbound.length (# of remote peers in the tunnel)
inbound.lengthVariance (if > 0, permute the length by adding a random #
up to the variance. if < 0, permute the length
by adding or subtracting a random # up to the
variance)
outbound.* (same as the inbound, except for the, uh, outbound tunnels
in that client's pool)
There are other options, and more will be added later, but the above are
the most relevent ones.
* Replaced Jetty 4.2.21 with Jetty 5.1.2
* Compress all profile data on disk.
* Adjust the reseeding functionality to work even when the JVM's http proxy
is set.
* Enable a poor-man's interactive-flow in the streaming lib by choking the
max window size.
* Reduced the default streaming lib max message size to 16KB (though still
configurable by the user), also doubling the default maximum window
size.
* Replaced the RouterIdentity in a Lease with its SHA256 hash.
* Reduced the overall I2NP message checksum from a full 32 byte SHA256 to
the first byte of the SHA256.
* Added a new "netId" flag to let routers drop references to other routers
who we won't be able to talk to.
* Extended the timestamper to get a second (or third) opinion whenever it
wants to actually adjust the clock offset.
* Replaced that kludge of a timestamp I2NP message with a full blown
DateMessage.
* Substantial memory optimizations within the router and the SDK to reduce
GC churn. Client apps and the streaming libs have not been tuned,
however.
* More bugfixes thank you can shake a stick at.
2005-02-13 jrandom
* Updated jbigi source to handle 64bit CPUs. The bundled jbigi.jar still
only contains 32bit versions, so build your own, placing libjbigi.so in
your install dir if necessary. (thanks mule!)
* Added support for libjbigi-$os-athlon64 to NativeBigInteger and CPUID
(thanks spaetz!)
2005-02-16 22:23:47 +00:00
|
|
|
<include name="ant.jar" />
|
|
|
|
<include name="commons-el.jar" />
|
2008-03-08 20:37:45 +00:00
|
|
|
<include name="commons-logging.jar" />
|
2005-02-16 jrandom
* (Merged the 0.5-pre branch back into CVS HEAD)
* Replaced the old tunnel routing crypto with the one specified in
router/doc/tunnel-alt.html, including updates to the web console to view
and tweak it.
* Provide the means for routers to reject tunnel requests with a wider
range of responses:
probabalistic rejection, due to approaching overload
transient rejection, due to temporary overload
bandwidth rejection, due to persistent bandwidth overload
critical rejection, due to general router fault (or imminent shutdown)
The different responses are factored into the profiles accordingly.
* Replaced the old I2CP tunnel related options (tunnels.depthInbound, etc)
with a series of new properties, relevent to the new tunnel routing code:
inbound.nickname (used on the console)
inbound.quantity (# of tunnels to use in any leaseSets)
inbound.backupQuantity (# of tunnels to keep in the ready)
inbound.length (# of remote peers in the tunnel)
inbound.lengthVariance (if > 0, permute the length by adding a random #
up to the variance. if < 0, permute the length
by adding or subtracting a random # up to the
variance)
outbound.* (same as the inbound, except for the, uh, outbound tunnels
in that client's pool)
There are other options, and more will be added later, but the above are
the most relevent ones.
* Replaced Jetty 4.2.21 with Jetty 5.1.2
* Compress all profile data on disk.
* Adjust the reseeding functionality to work even when the JVM's http proxy
is set.
* Enable a poor-man's interactive-flow in the streaming lib by choking the
max window size.
* Reduced the default streaming lib max message size to 16KB (though still
configurable by the user), also doubling the default maximum window
size.
* Replaced the RouterIdentity in a Lease with its SHA256 hash.
* Reduced the overall I2NP message checksum from a full 32 byte SHA256 to
the first byte of the SHA256.
* Added a new "netId" flag to let routers drop references to other routers
who we won't be able to talk to.
* Extended the timestamper to get a second (or third) opinion whenever it
wants to actually adjust the clock offset.
* Replaced that kludge of a timestamp I2NP message with a full blown
DateMessage.
* Substantial memory optimizations within the router and the SDK to reduce
GC churn. Client apps and the streaming libs have not been tuned,
however.
* More bugfixes thank you can shake a stick at.
2005-02-13 jrandom
* Updated jbigi source to handle 64bit CPUs. The bundled jbigi.jar still
only contains 32bit versions, so build your own, placing libjbigi.so in
your install dir if necessary. (thanks mule!)
* Added support for libjbigi-$os-athlon64 to NativeBigInteger and CPUID
(thanks spaetz!)
2005-02-16 22:23:47 +00:00
|
|
|
<include name="jasper-compiler.jar" />
|
|
|
|
<include name="jasper-runtime.jar" />
|
|
|
|
<include name="javax.servlet.jar" />
|
|
|
|
<include name="org.mortbay.jetty.jar" />
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
2007-03-03 20:30:52 +00:00
|
|
|
<delete dir="jetty-5.1.12" />
|
2004-08-01 05:31:15 +00:00
|
|
|
</target>
|
2008-03-08 20:37:45 +00:00
|
|
|
|
2008-11-09 16:05:13 +00:00
|
|
|
<target name="build" depends="jar" />
|
2004-08-01 05:31:15 +00:00
|
|
|
<target name="builddep" />
|
2008-11-09 16:05:13 +00:00
|
|
|
<target name="compile" depends="builddep, ensureJettylib" >
|
|
|
|
<mkdir dir="./build" />
|
|
|
|
<mkdir dir="./build/obj" />
|
|
|
|
<javac
|
|
|
|
srcdir="./java/src"
|
2009-04-26 15:54:51 +00:00
|
|
|
debug="true" source="1.5" target="1.5"
|
2008-11-09 16:05:13 +00:00
|
|
|
destdir="./build/obj"
|
2009-04-26 15:54:51 +00:00
|
|
|
classpath="./jettylib/commons-logging.jar:./jettylib/javax.servlet.jar:./jettylib/org.mortbay.jetty.jar" >
|
|
|
|
<compilerarg line="${javac.compilerargs}" />
|
|
|
|
</javac>
|
2008-11-09 16:05:13 +00:00
|
|
|
</target>
|
|
|
|
<target name="jar" depends="compile">
|
|
|
|
<jar destfile="./jettylib/org.mortbay.jetty.jar" basedir="./build/obj" includes="**/*.class" update="true" >
|
|
|
|
</jar>
|
|
|
|
</target>
|
|
|
|
<target name="clean" >
|
|
|
|
<delete dir="./build" />
|
2008-11-14 14:48:08 +00:00
|
|
|
<delete file="${verified.filename}" />
|
2008-11-09 16:05:13 +00:00
|
|
|
</target>
|
2004-08-01 05:31:15 +00:00
|
|
|
<target name="cleandep" depends="clean" />
|
|
|
|
<target name="distclean" depends="clean">
|
|
|
|
<echo message="Not actually deleting the jetty libs (since they're so large)" />
|
|
|
|
</target>
|
2008-11-09 16:05:13 +00:00
|
|
|
<target name="javadoc" >
|
|
|
|
<available property="jetty.zip.available" file="${jetty.filename}" type="file" />
|
|
|
|
<available property="jetty.zip.javadocExtracted" file="build/javadoc" type="dir" />
|
|
|
|
<ant target="fetchJettylib" />
|
|
|
|
<ant target="verifyJettylib" />
|
|
|
|
<ant target="extractJavadoc" />
|
|
|
|
</target>
|
|
|
|
<target name="extractJavadoc" unless="jetty.zip.javadocExtracted" >
|
|
|
|
<mkdir dir="./build" />
|
|
|
|
<mkdir dir="./build/javadoc" />
|
|
|
|
<unzip src="${jetty.filename}" dest="./build/javadoc" >
|
|
|
|
<patternset>
|
|
|
|
<include name="jetty-5.1.12/javadoc/" />
|
|
|
|
</patternset>
|
|
|
|
<mapper type="glob" from="jetty-5.1.12/javadoc/*" to="javadoc/*" />
|
|
|
|
</unzip>
|
|
|
|
</target>
|
|
|
|
|
2004-08-01 05:31:15 +00:00
|
|
|
</project>
|