|
@@ -60,7 +60,7 @@
|
|
|
|
|
|
<target name="compile" depends="ivy-retrieve,zookeeperbuildcontrib.compile"/>
|
|
<target name="compile" depends="ivy-retrieve,zookeeperbuildcontrib.compile"/>
|
|
|
|
|
|
- <target name="test" depends="compile-test,test-init,test-category,junit.run" />
|
|
|
|
|
|
+ <target name="test" depends="checkMainTestCompiled,compile-test,test-init,test-category,junit.run" />
|
|
|
|
|
|
<target name="compile-test" depends="ivy-retrieve-test,compile">
|
|
<target name="compile-test" depends="ivy-retrieve-test,compile">
|
|
<property name="target.jdk" value="${ant.java.version}" />
|
|
<property name="target.jdk" value="${ant.java.version}" />
|
|
@@ -71,6 +71,9 @@
|
|
target="${target.jdk}"
|
|
target="${target.jdk}"
|
|
debug="on" >
|
|
debug="on" >
|
|
<classpath refid="classpath" />
|
|
<classpath refid="classpath" />
|
|
|
|
+ <classpath>
|
|
|
|
+ <pathelement location="${zk.root}/build/test/classes"/>
|
|
|
|
+ </classpath>
|
|
</javac>
|
|
</javac>
|
|
</target>
|
|
</target>
|
|
|
|
|
|
@@ -104,6 +107,7 @@
|
|
<classpath refid="classpath"/>
|
|
<classpath refid="classpath"/>
|
|
<classpath>
|
|
<classpath>
|
|
<pathelement path="${build.test}" />
|
|
<pathelement path="${build.test}" />
|
|
|
|
+ <pathelement location="${zk.root}/build/test/classes"/>
|
|
</classpath>
|
|
</classpath>
|
|
<formatter type="${test.junit.output.format}" />
|
|
<formatter type="${test.junit.output.format}" />
|
|
<batchtest todir="${test.log.dir}" unless="testcase">
|
|
<batchtest todir="${test.log.dir}" unless="testcase">
|