Tests: Add resources to test jars

Fix duplicate classes in i2ptest.jar
Change classpath in routertest.jar to point to i2ptest.jar
This commit is contained in:
zzz
2021-06-22 10:00:44 -04:00
parent bb19fcdac3
commit b7322e1647
4 changed files with 31 additions and 4 deletions

View File

@@ -361,8 +361,12 @@
<!-- warning - The junit.test target below doesn't actually include i2ptest.jar in the classpath,
only the build/obj directory.
-->
<mkdir dir="build/obj/net/i2p/util/resources" />
<copy todir="build/obj/net/i2p/util/resources" >
<fileset dir="../resources" />
</copy>
<jar destfile="./build/i2ptest.jar" basedir="./build/obj" >
<fileset dir="./build/obj" includes="**/*.class **/test.data **/baseDblPrecmp **/basePrecmp" />
<fileset dir="test/resources" includes="**/test.data **/baseDblPrecmp **/basePrecmp" />
<!-- the getopt translation files -->
<fileset dir="src" includes="${translation.includes}" />
<manifest>

View File

@@ -1,3 +1,22 @@
2021-06-22 zzz
* Tests: Fix duplicate classes in i2ptest.jar
* Tunnels: Changes for new build messages (Prop. 157)
2021-06-20 zzz
* Jetty: Case-insensitive sort on directory listing, put directories first
2021-06-18 zzz
* Console: Add Permissions-Policy header
* SSU: Fix handling of bad peer test responses
* Transport: Remove 4/6 caps config
2021-06-16 zzz
* Router: Increase key pool sizes for slow machines
2021-06-13 zzz
* Tests: Fix and expand BuildMessageTestStandalone
* Tunnels: Continue work on new build messages (proposal 157)
2021-06-11 zzz
* UPnP: Bind to IPv6 addresses for search responses

View File

@@ -316,9 +316,13 @@
</target>
<target name="jarTest" depends="junit.compileTest">
<jar destfile="./build/routertest.jar" basedir="./build/obj" includes="**/*.class">
<mkdir dir="build/obj/net/i2p/router/util/resources" />
<copy todir="build/obj/net/i2p/router/util/resources" >
<fileset dir="../resources" />
</copy>
<jar destfile="./build/routertest.jar" basedir="./build/obj">
<manifest>
<attribute name="${manifest.classpath.name}" value="i2p.jar" />
<attribute name="${manifest.classpath.name}" value="i2ptest.jar" />
<attribute name="Specification-Title" value="I2P Router" />
<attribute name="Specification-Version" value="${api.version}" />
<attribute name="Specification-Vendor" value="The I2P Project https://geti2p.net/" />

View File

@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Git";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 3;
public final static long BUILD = 4;
/** for example "-test" */
public final static String EXTRA = "";