Move BundleRouterInfos out of router.jar

This commit is contained in:
zzz
2014-10-10 19:40:49 +00:00
parent e081f94d9f
commit 73256f6030
3 changed files with 61 additions and 1 deletions

View File

@@ -258,6 +258,11 @@
<copy file="apps/routerconsole/java/build/routerconsole.war" todir="build/" /> <copy file="apps/routerconsole/java/build/routerconsole.war" todir="build/" />
</target> </target>
<target name="buildTools" depends="buildrouter" >
<ant dir="installer/tools/java" target="jar" />
<copy file="installer/tools/java/build/tools.jar" todir="build/" />
</target>
<!-- end of sub-build.xml targets --> <!-- end of sub-build.xml targets -->
<target name="checkForMtn" > <target name="checkForMtn" >
@@ -1058,12 +1063,13 @@
<isfalse value="${bundle.routerInfos}" /> <isfalse value="${bundle.routerInfos}" />
</condition> </condition>
<target name="prepRouterInfos" depends="buildrouter" unless="no.bundle.routerInfos"> <target name="prepRouterInfos" depends="buildrouter, buildTools" unless="no.bundle.routerInfos">
<mkdir dir="pkg-temp/netDb" /> <mkdir dir="pkg-temp/netDb" />
<java classname="net.i2p.router.networkdb.kademlia.BundleRouterInfos" fork="true" failonerror="true"> <java classname="net.i2p.router.networkdb.kademlia.BundleRouterInfos" fork="true" failonerror="true">
<classpath> <classpath>
<pathelement location="build/i2p.jar" /> <pathelement location="build/i2p.jar" />
<pathelement location="build/router.jar" /> <pathelement location="build/router.jar" />
<pathelement location="build/tools.jar" />
</classpath> </classpath>
<arg value="-i" /> <arg value="-i" />
<arg value="${bundle.routerInfos.i2pConfigDir}" /> <arg value="${bundle.routerInfos.i2pConfigDir}" />

View File

@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="all" name="tooljar">
<target name="all" depends="clean, build" />
<target name="build" depends="builddep, jar" />
<target name="builddep">
<!-- noop, since the core doesnt depend on anything -->
</target>
<condition property="depend.available">
<typefound name="depend" />
</condition>
<target name="depend" if="depend.available">
<depend
cache="../../../build"
srcdir="./src"
destdir="./build/obj" >
</depend>
</target>
<!-- only used if not set by a higher build.xml -->
<property name="javac.compilerargs" value="" />
<property name="javac.classpath" value="" />
<property name="javac.version" value="1.6" />
<target name="compile" depends="depend">
<mkdir dir="./build" />
<mkdir dir="./build/obj" />
<javac srcdir="./src" debug="true" source="${javac.version}" target="${javac.version}" deprecation="on"
includeAntRuntime="false"
destdir="./build/obj" classpath="${javac.classpath}:../../../build/i2p.jar:../../../build/router.jar" >
<compilerarg line="${javac.compilerargs}" />
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="build/tools.jar">
<fileset dir="./build/obj" includes="**" />
<manifest>
<attribute name="Built-By" value="${build.built-by}" />
<attribute name="Build-Date" value="${build.timestamp}" />
<attribute name="Base-Revision" value="${workspace.version}" />
</manifest>
</jar>
</target>
<target name="clean">
<delete dir="./build" />
</target>
<target name="cleandep" depends="clean">
<!-- noop, since the core doesn't depend on anything -->
</target>
<target name="distclean" depends="clean">
<!-- noop, since the core doesn't depend on anything -->
</target>
</project>