2004-04-08 04:41:54 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<project basedir= "." default= "all" name= "i2p" >
<target name= "all" >
<echo message= "Useful targets: " />
<echo message= " build: build existing code into ./build/, but dont clean" />
<echo message= " javadoc: generate javadoc for the entire project into ./build/javadoc" />
<echo message= " clean: clean up the ./build/ dir" />
<echo message= " distclean: clean up all derived files" />
<echo message= " dist: distclean, then build and javadoc" />
2004-04-20 20:56:55 +00:00
<echo message= " prepGUI: pull the LGPL and APL code for JFreeChart that we use in the GUIs" />
<echo message= " buildGUI: build the heartbeat and netmonitor GUIs (must have run prepGUI already)" />
2004-07-24 02:08:21 +00:00
<echo message= " buildWEB: build the Jetty instance and router console web application" />
2004-04-08 04:41:54 +00:00
</target>
<target name= "dist" depends= "distclean, build, javadoc" />
<target name= "build" depends= "builddep, jar" />
2004-06-22 04:56:44 +00:00
<target name= "buildclean" depends= "distclean, builddep, jar" />
2004-04-08 04:41:54 +00:00
<target name= "builddep" >
2004-04-08 18:24:07 +00:00
<!-- build *everything* here, but only once -->
<ant dir= "core/java/" target= "jar" />
<ant dir= "router/java/" target= "jar" />
<ant dir= "apps/ministreaming/java/" target= "jar" />
<ant dir= "apps/i2ptunnel/java/" target= "jar" />
<ant dir= "apps/httptunnel/java/" target= "jar" />
<ant dir= "apps/phttprelay/java/" target= "jar" />
2004-04-13 04:41:14 +00:00
<ant dir= "apps/sam/java/" target= "jar" />
2004-04-10 05:20:12 +00:00
<ant dir= "apps/heartbeat/java/" target= "jar" />
2004-04-16 03:08:01 +00:00
<ant dir= "apps/netmonitor/java/" target= "jar" />
2004-05-02 04:29:18 +00:00
<ant dir= "apps/time/java/" target= "jar" />
2004-04-08 18:24:07 +00:00
<ant dir= "installer/java/" target= "jar" />
2004-04-08 04:41:54 +00:00
</target>
<target name= "compile" />
<target name= "jar" depends= "compile" >
<copy file= "core/java/build/i2p.jar" todir= "build/" />
<copy file= "router/java/build/router.jar" todir= "build/" />
<copy file= "apps/ministreaming/java/build/mstreaming.jar" todir= "build/" />
<copy file= "apps/i2ptunnel/java/build/i2ptunnel.jar" todir= "build/" />
<copy file= "apps/httptunnel/java/build/httptunnel.jar" todir= "build/" />
<copy file= "apps/phttprelay/java/build/phttprelay.war" todir= "build/" />
2004-04-13 04:41:14 +00:00
<copy file= "apps/sam/java/build/sam.jar" todir= "build/" />
2004-04-10 05:20:12 +00:00
<copy file= "apps/heartbeat/java/build/heartbeat.jar" todir= "build/" />
2004-04-16 03:08:01 +00:00
<copy file= "apps/netmonitor/java/build/netmonitor.jar" todir= "build/" />
2004-05-02 04:29:18 +00:00
<copy file= "apps/time/java/build/timestamper.jar" todir= "build/" />
2004-04-08 04:41:54 +00:00
<copy file= "installer/java/build/install.jar" todir= "build/" />
<copy file= "installer/java/build/guiinstall.jar" todir= "build/" />
<copy file= "installer/java/build/fetchseeds.jar" todir= "build/" />
</target>
<target name= "javadoc" >
<mkdir dir= "./build" />
<mkdir dir= "./build/javadoc" />
<javadoc
sourcepath="core/java/src:core/java/test:router/java/src:router/java/test:apps/ministreaming/java/src:apps/i2ptunnel/java/src:apps/httptunnel/java/src"
destdir="./build/javadoc"
packagenames="*"
use="true"
splitindex="true"
windowtitle="I2P" />
</target>
<target name= "clean" >
<delete dir= "./build" />
</target>
<target name= "distclean" depends= "clean" >
<ant dir= "core/java/" target= "distclean" />
<ant dir= "router/java/" target= "distclean" />
<ant dir= "apps/ministreaming/java/" target= "distclean" />
<ant dir= "apps/i2ptunnel/java/" target= "distclean" />
<ant dir= "apps/httptunnel/java/" target= "distclean" />
<ant dir= "apps/phttprelay/java/" target= "distclean" />
2004-04-13 04:41:14 +00:00
<ant dir= "apps/sam/java/" target= "distclean" />
2004-04-10 05:20:12 +00:00
<ant dir= "apps/heartbeat/java/" target= "distclean" />
2004-04-16 03:08:01 +00:00
<ant dir= "apps/netmonitor/java/" target= "distclean" />
2004-05-02 04:29:18 +00:00
<ant dir= "apps/time/java/" target= "distclean" />
2004-04-08 04:41:54 +00:00
<ant dir= "installer/java/" target= "distclean" />
2004-04-16 03:08:01 +00:00
<delete >
<fileset dir= "." includes= "**/*.class" />
<fileset dir= "." includes= "**/*.java~" />
</delete>
2004-04-08 04:41:54 +00:00
</target>
2004-04-20 20:56:55 +00:00
<target name= "distGUI" depends= "clean, buildGUI" >
<mkdir dir= "build/lib" />
<copy file= "apps/jfreechart/jfreechart-0.9.17/jfreechart-0.9.17.jar" todir= "build/lib" />
<copy file= "apps/jfreechart/jfreechart-0.9.17/lib/log4j-1.2.8.jar" todir= "build/lib" />
<copy file= "apps/jfreechart/jfreechart-0.9.17/lib/jcommon-0.9.2.jar" todir= "build/lib" />
<copy file= "apps/jfreechart/GUI-licenses.txt" todir= "build/" />
<copy file= "apps/netmonitor/java/build/netviewer.jar" todir= "build/lib" />
<copy file= "apps/heartbeat/java/build/heartbeatGUI.jar" todir= "build/lib" />
<zip destfile= "build/gui.zip" basedir= "build/" includes= "GUI-licenses.txt lib/*.jar" />
</target>
<target name= "prepGUI" >
<echo message= "The code being fetched comes from http://www.jfree.org/jfreechart/" />
<echo message= "It includes code licensed under the LGPL and the APL - please see" />
<echo message= "the JFreeChart site (or the info downloaded) for source and details" />
<ant dir= "apps/jfreechart/" target= "fetchJfreechart" />
<ant dir= "apps/jfreechart/" target= "build" />
</target>
<target name= "buildGUI" >
<echo message= "Building the GUIs for the heartbeat and netmonitor apps, which depend upon" />
<echo message= "the JFreeChart and related packages. The following will fail if you haven't" />
<echo message= "already run 'ant prepGUI' to fetch the LGPL/APL'ed code" />
<ant dir= "apps/heartbeat/java" target= "buildGUI" />
<ant dir= "apps/netmonitor/java" target= "buildGUI" />
<copy file= "apps/jfreechart/jfreechart-0.9.17/jfreechart-0.9.17.jar" todir= "build/" />
<copy file= "apps/jfreechart/jfreechart-0.9.17/lib/log4j-1.2.8.jar" todir= "build/" />
<copy file= "apps/jfreechart/jfreechart-0.9.17/lib/jcommon-0.9.2.jar" todir= "build/" />
<copy file= "apps/jfreechart/GUI-licenses.txt" todir= "build/" />
<copy file= "apps/netmonitor/java/build/netviewer.jar" todir= "build/" />
<copy file= "apps/heartbeat/java/build/heartbeatGUI.jar" todir= "build/" />
<echo message= "GUIs created. You will need the following files to run them: " />
<echo message= "jfreechart-0.9.17.jar log4j-1.2.8.jar jcommon-0.9.2.jar" />
<echo message= "To run the netmonitor GUI: java -cp jfreechart-0.9.17.jar:log4j-1.2.8.jar:jcommon-0.9.2.jar -jar netviewer.jar" />
<echo message= "To run the heartbeat GUI: java -cp jfreechart-0.9.17.jar:log4j-1.2.8.jar:jcommon-0.9.2.jar -jar heartbeatGUI.jar" />
</target>
2004-07-24 02:08:21 +00:00
<target name= "buildWEB" >
<ant dir= "apps/routerconsole/java" target= "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/jetty-4.2.21-min/extra/lib/org.mortbay.jetty-jdk1.2.jar" todir= "build/" />
<copy file= "apps/routerconsole/java/jetty-4.2.21-min/ext/ant.jar" todir= "build/" />
<copy file= "apps/routerconsole/java/jetty-4.2.21-min/ext/jasper-compiler.jar" todir= "build/" />
<copy file= "apps/routerconsole/java/jetty-4.2.21-min/ext/jasper-runtime.jar" todir= "build/" />
<copy file= "apps/routerconsole/java/jetty-4.2.21-min/ext/jcert.jar" todir= "build/" />
<copy file= "apps/routerconsole/java/jetty-4.2.21-min/ext/jnet.jar" todir= "build/" />
<copy file= "apps/routerconsole/java/jetty-4.2.21-min/ext/xercesImpl.jar" todir= "build/" />
<copy file= "apps/routerconsole/java/jetty-4.2.21-min/ext/xml-apis.jar" todir= "build/" />
<copy file= "apps/routerconsole/java/jetty-4.2.21-min/ext/javax.servlet.jar" todir= "build/" />
<echo message= "You will need the org.*, ant.jar, jasper-*.jar, jcert.jar, jnet.jar, xerces.jar, xml-apis.jar, and routerconsole.jar in your router's classpath" />
<echo message= "In addition, you will need to place the routerconsole.war file under your i2p install dir as webapps/routerconsole.war" />
</target>
2004-04-08 04:41:54 +00:00
</project>