forked from I2P_Developers/i2p.i2p
propagate from branch 'i2p.i2p.unittests' (head fb681c6fa25bcf9f7287a661b3ce626fd5a280bb)
to branch 'i2p.i2p.zzz.update' (head f3c8cb8ad1d68cc6a66d544f1e287eead786c5ce)
This commit is contained in:
@ -81,14 +81,15 @@
|
||||
</target>
|
||||
|
||||
<!-- unit tests -->
|
||||
<target name="scalatest.compileTest" depends="jar, scala.init">
|
||||
<target name="scalatest.compileTest" depends="compile, scala.init">
|
||||
<mkdir dir="./build" />
|
||||
<mkdir dir="./build/obj_scala" />
|
||||
<scalac srcdir="./test/scalatest" destdir="./build/obj_scala" deprecation="on" >
|
||||
<classpath>
|
||||
<pathelement location="${classpath}" />
|
||||
<pathelement location="${scala-library.jar}" />
|
||||
<pathelement location="${scalatest.jar}" />
|
||||
<pathelement location="./build/i2p.jar" />
|
||||
<pathelement location="./build/obj" />
|
||||
</classpath>
|
||||
</scalac>
|
||||
</target>
|
||||
@ -102,6 +103,10 @@
|
||||
<compilerarg line="${javac.compilerargs}" />
|
||||
</javac>
|
||||
</target>
|
||||
<!-- jars with tests -->
|
||||
<target name="jarScalaTest" depends="scalatest.compileTest">
|
||||
<jar destfile="./build/i2pscalatest.jar" basedir="./build/obj" includes="**/*.class ../obj_scala/**/*.class" />
|
||||
</target>
|
||||
<target name="jarTest" depends="junit.compileTest">
|
||||
<jar destfile="./build/i2ptest.jar" basedir="./build/obj" includes="**/*.class" />
|
||||
</target>
|
||||
|
@ -99,18 +99,23 @@
|
||||
</target>
|
||||
|
||||
<!-- unit tests -->
|
||||
<target name="builddepscalatest">
|
||||
<ant dir="../../core/java/" target="jar" />
|
||||
<ant dir="../../core/java/" target="jarScalaTest" />
|
||||
</target>
|
||||
<target name="builddeptest">
|
||||
<ant dir="../../core/java/" target="jarTest" />
|
||||
</target>
|
||||
<target name="scalatest.compileTest" depends="jar, scala.init">
|
||||
<target name="scalatest.compileTest" depends="builddepscalatest, compile, scala.init">
|
||||
<mkdir dir="./build" />
|
||||
<mkdir dir="./build/obj_scala" />
|
||||
<scalac srcdir="./test/scalatest" destdir="./build/obj_scala" deprecation="on" >
|
||||
<classpath>
|
||||
<pathelement location="${classpath}" />
|
||||
<pathelement location="${scala-library.jar}" />
|
||||
<pathelement location="${scalatest.jar}" />
|
||||
<pathelement location="../../core/java/build/i2p.jar" />
|
||||
<pathelement location="./build/router.jar" />
|
||||
<pathelement location="../../core/java/build/i2pscalatest.jar" />
|
||||
<pathelement location="./build/obj" />
|
||||
</classpath>
|
||||
</scalac>
|
||||
</target>
|
||||
@ -124,6 +129,10 @@
|
||||
<compilerarg line="${javac.compilerargs}" />
|
||||
</javac>
|
||||
</target>
|
||||
<!-- jars with tests -->
|
||||
<target name="jarScalaTest" depends="scalatest.compileTest">
|
||||
<jar destfile="./build/routerscalatest.jar" basedir="./build/obj" includes="**/*.class ../obj_scala/**/*.class" />
|
||||
</target>
|
||||
<target name="jarTest" depends="junit.compileTest">
|
||||
<jar destfile="./build/routertest.jar" basedir="./build/obj" includes="**/*.class" />
|
||||
</target>
|
||||
|
Reference in New Issue
Block a user