fixed for ant 1.5 compat

This commit is contained in:
jrandom
2004-08-01 06:46:59 +00:00
committed by zzz
parent edc3a54ad3
commit 8a091e0205
2 changed files with 10 additions and 4 deletions

View File

@ -1,9 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="all" name="jetty"> <project basedir="." default="all" name="jetty">
<available property="jetty.available" file="jettylib" />
<target name="all" depends="build" /> <target name="all" depends="build" />
<target name="fetchJettylib" unless="jetty.available" > <target name="fetchJettylib" >
<available property="jetty.available" file="jettylib" />
<ant target="doFetchJettylib" />
</target>
<target name="doFetchJettylib" unless="jetty.available" >
<echo message="The libraries contained within the fetched file are from Jetty's 4.2.21 " /> <echo message="The libraries contained within the fetched file are from Jetty's 4.2.21 " />
<echo message="distribution (http://jetty.mortbay.org/) which we have copied to our website since" /> <echo message="distribution (http://jetty.mortbay.org/) which we have copied to our website since" />
<echo message="theirs doesn't have direct HTTP access to the libs. These are not " /> <echo message="theirs doesn't have direct HTTP access to the libs. These are not " />

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="all" name="i2p"> <project basedir="." default="all" name="i2p">
<available property="jettylib.available" file="apps/jetty/jettylib" />
<target name="all" > <target name="all" >
<echo message="Useful targets: " /> <echo message="Useful targets: " />
@ -118,7 +117,11 @@
<target name="prepWEB"> <target name="prepWEB">
<ant dir="apps/jetty" target="fetchJettylib" /> <ant dir="apps/jetty" target="fetchJettylib" />
</target> </target>
<target name="buildWEB" if="jettylib.available"> <target name="buildWEB" >
<available property="jettylib.available" file="apps/jetty/jettylib" />
<ant target="doBuildWEB" />
</target>
<target name="doBuildWEB" if="jettylib.available">
<ant dir="apps/routerconsole/java" target="build" /> <ant dir="apps/routerconsole/java" target="build" />
<copy file="apps/routerconsole/java/build/routerconsole.jar" todir="build/" /> <copy file="apps/routerconsole/java/build/routerconsole.jar" todir="build/" />
<copy file="apps/routerconsole/java/build/routerconsole.war" todir="build/" /> <copy file="apps/routerconsole/java/build/routerconsole.war" todir="build/" />