Apache Lucene open-source search software
Fix building test-frameworks from contribs/modules: The classpath used during compilation did not include ANT when executed from modules or contribs, so the build failed. Now the test-framework gets its own compilation classpath, the ant.jar can even be removed completely from top-level.
Uwe Schindler7221c4cee564
diff --git a/lucene/build.xml b/lucene/build.xmlindex abe4c9fba31..4fec4ec1342 100644--- a/lucene/build.xml+++ b/lucene/build.xml@@ -32,7 +32,6 @@<path id="test.classpath"><path refid="classpath"/><path refid="junit-path"/>- <path refid="ant-path"/><pathelement location="${build.dir}/classes/test-framework"/><pathelement location="${build.dir}/classes/test"/></path>diff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex 1ba18d07205..f2d67b4d47b 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -459,10 +459,15 @@</ant><property name="core.compiled" value="true"/></target>-++ <path id="test-framework.classpath">+ <path refid="ant-path"/>+ <path refid="test.classpath"/>+ </path>+<target name="compile-test-framework" depends="compile-core"><compile-test-macro srcdir="${tests-framework.src.dir}" destdir="${common.dir}/build/classes/test-framework"- test.classpath="test.classpath"/>+ test.classpath="test-framework.classpath"/></target><target name="compile-tools">