
> Message-ID: <1776.202.37.75.101.1092369510.squirrel@202.37.75.101> > From: adam@adambuckley.net > To: jrandom@i2p.net > > [...] > > I hereby authorize my NtpClient.java and NtpMessage.java code to be > redistributed under the BSD license for the purpose of integration with > the I2P project, providing that I am credited as the original author of > the code. > > [...] w00t! adam++ code migrated into core/java/src/net/i2p/time, integrated with Clock, dropping that whole ugly pass-the-time-through-URL, and hence dropped support for :7655/setTime. New router.config properties to control the timestamper: time.sntpServerList=pool.ntp.org,pool.ntp.org,pool.ntp.org time.queryFrequencyMs=300000 time.disabled=false So, to disable, add time.disabled=true to your router.config. It is enabled by default. Default router.config and startup scripts updated accordingly (since timestamper.jar is now gone)
141 lines
8.6 KiB
XML
141 lines
8.6 KiB
XML
<?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 (including the web app and associated libs)" />
|
|
<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)" />
|
|
<echo message=" prepWEB: pull down the Jetty libraries and whatever they depend on for the router console web application" />
|
|
<echo message=" buildWEB: build the router console web application (depends upon prepWEB)" />
|
|
</target>
|
|
<target name="dist" depends="distclean, build, buildWEB, javadoc" />
|
|
<target name="build" depends="builddep, jar" />
|
|
<target name="buildclean" depends="distclean, build" />
|
|
<target name="builddep">
|
|
<!-- 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" />
|
|
<ant dir="apps/sam/java/" target="jar" />
|
|
<ant dir="apps/heartbeat/java/" target="jar" />
|
|
<ant dir="apps/netmonitor/java/" target="jar" />
|
|
<ant dir="apps/routerconsole/java/" target="jar" />
|
|
<ant dir="installer/java/" target="jar" />
|
|
</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/i2ptunnel/java/build/i2ptunnel.war" todir="build/" />
|
|
<copy file="apps/httptunnel/java/build/httptunnel.jar" todir="build/" />
|
|
<copy file="apps/phttprelay/java/build/phttprelay.war" todir="build/" />
|
|
<copy file="apps/sam/java/build/sam.jar" todir="build/" />
|
|
<copy file="apps/heartbeat/java/build/heartbeat.jar" todir="build/" />
|
|
<copy file="apps/netmonitor/java/build/netmonitor.jar" todir="build/" />
|
|
<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:apps/routerconsole/java/src"
|
|
classpath="apps/jetty/jettylib/org.mortbay.jetty.jar"
|
|
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" />
|
|
<ant dir="apps/sam/java/" target="distclean" />
|
|
<ant dir="apps/heartbeat/java/" target="distclean" />
|
|
<ant dir="apps/netmonitor/java/" target="distclean" />
|
|
<ant dir="apps/routerconsole/java/" target="distclean" />
|
|
<ant dir="installer/java/" target="distclean" />
|
|
<delete>
|
|
<fileset dir="." includes="**/*.class" />
|
|
<fileset dir="." includes="**/*.java~" />
|
|
</delete>
|
|
</target>
|
|
<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>
|
|
<target name="prepWEB">
|
|
<ant dir="apps/jetty" target="fetchJettylib" />
|
|
</target>
|
|
<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" />
|
|
<copy file="apps/routerconsole/java/build/routerconsole.jar" todir="build/" />
|
|
<copy file="apps/routerconsole/java/build/routerconsole.war" todir="build/" />
|
|
<copy file="apps/jetty/jettylib/org.mortbay.jetty.jar" todir="build/" />
|
|
<copy file="apps/jetty/jettylib/org.mortbay.jetty-jdk1.2.jar" todir="build/" />
|
|
<copy file="apps/jetty/jettylib/ant.jar" todir="build/" />
|
|
<copy file="apps/jetty/jettylib/jasper-compiler.jar" todir="build/" />
|
|
<copy file="apps/jetty/jettylib/jasper-runtime.jar" todir="build/" />
|
|
<copy file="apps/jetty/jettylib/jnet.jar" todir="build/" />
|
|
<copy file="apps/jetty/jettylib/xercesImpl.jar" todir="build/" />
|
|
<copy file="apps/jetty/jettylib/xml-apis.jar" todir="build/" />
|
|
<copy file="apps/jetty/jettylib/javax.servlet.jar" todir="build/" />
|
|
<echo message="You will need the org.*, ant.jar, jasper-*.jar, jnet.jar, xercesImpl.jar, xml-apis.jar, " />
|
|
<echo message="and routerconsole.jar in your router's classpath. In addition, you will need to place the " />
|
|
<echo message="routerconsole.war file under your i2p install dir as webapps/routerconsole.war and will want " />
|
|
<echo message="to add the RouterConsoleRunner to the router's clientApp list (it must be in the router's JVM)" />
|
|
</target>
|
|
</project>
|