Changeset 0c5c18a for build.xml


Ignore:
Timestamp:
Aug 31, 2014 4:19:46 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
1d2e01c
Parents:
6826ba05
Message:
  • Build: Add support for bundling router infos in the package
File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    r6826ba05 r0c5c18a  
    961961    </target>
    962962
    963     <target name="preppkg-base" depends="build, preplicenses, prepConsoleDocs, prepthemeupdates, prepCertificates">
     963    <target name="preppkg-base" depends="build, preplicenses, prepConsoleDocs, prepthemeupdates, prepCertificates, prepRouterInfos">
    964964        <!-- if updater200 was run previously, it left *.pack files in pkg-temp -->
    965965        <!-- Also remove deletelist.txt used for updater only -->
     
    10531053          <fileset dir="installer/resources/certificates/" />
    10541054        </copy>
     1055    </target>
     1056
     1057    <condition property="no.bundle.routerInfos">
     1058        <isfalse value="${bundle.routerInfos}" />
     1059    </condition>
     1060
     1061    <target name="prepRouterInfos" depends="buildrouter" unless="no.bundle.routerInfos">
     1062        <mkdir dir="pkg-temp/netDb" />
     1063        <java classname="net.i2p.router.networkdb.kademlia.PersistentDataStore" fork="true" failonerror="true">
     1064            <classpath>
     1065                <pathelement location="build/i2p.jar" />
     1066                <pathelement location="build/router.jar" />
     1067            </classpath>
     1068            <arg value="-i" />
     1069            <arg value="${bundle.routerInfos.i2pConfigDir}" />
     1070            <arg value="-o" />
     1071            <arg value="pkg-temp/netDb" />
     1072            <arg value="-c" />
     1073            <arg value="${bundle.routerInfos.count}" />
     1074        </java>
    10551075    </target>
    10561076
Note: See TracChangeset for help on using the changeset viewer.