Apache Lucene open-source search software
LUCENE-2609: Generate jar containing test classes (trunk)
Shai Ereraece152480567
diff --git a/dev-tools/eclipse/dot.classpath b/dev-tools/eclipse/dot.classpathindex b633d43635d..9f2c3286d05 100644--- a/dev-tools/eclipse/dot.classpath+++ b/dev-tools/eclipse/dot.classpath@@ -1,6 +1,7 @@<?xml version="1.0" encoding="UTF-8"?><classpath><classpathentry kind="src" path="lucene/src/java"/>+ <classpathentry kind="src" path="lucene/src/test-framework"/><classpathentry kind="src" path="lucene/src/test"/><classpathentry kind="src" path="lucene/contrib/ant/src/java"/><classpathentry kind="src" path="lucene/contrib/ant/src/resources"/>diff --git a/dev-tools/idea/lucene/lucene.iml b/dev-tools/idea/lucene/lucene.imlindex c6dd9276e7e..80dfc2d4361 100644--- a/dev-tools/idea/lucene/lucene.iml+++ b/dev-tools/idea/lucene/lucene.iml@@ -6,6 +6,7 @@<exclude-output /><content url="file://$MODULE_DIR$"><sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />+ <sourceFolder url="file://$MODULE_DIR$/src/test-framework" isTestSource="true" /><sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" /><excludeFolder url="file://$MODULE_DIR$/build" /></content>diff --git a/dev-tools/maven/lucene/contrib/ant/pom.xml.template b/dev-tools/maven/lucene/contrib/ant/pom.xml.templateindex cc03f19354e..da8a45fd38e 100644--- a/dev-tools/maven/lucene/contrib/ant/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/ant/pom.xml.template@@ -43,7 +43,7 @@</dependency><dependency><groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/lucene/contrib/db/bdb-je/pom.xml.template b/dev-tools/maven/lucene/contrib/db/bdb-je/pom.xml.templateindex fd5934f0146..3f172080f93 100644--- a/dev-tools/maven/lucene/contrib/db/bdb-je/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/db/bdb-je/pom.xml.template@@ -43,7 +43,7 @@</dependency><dependency><groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/lucene/contrib/db/bdb/pom.xml.template b/dev-tools/maven/lucene/contrib/db/bdb/pom.xml.templateindex cf17c674cfe..6a7d4a05cdd 100644--- a/dev-tools/maven/lucene/contrib/db/bdb/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/db/bdb/pom.xml.template@@ -43,7 +43,7 @@</dependency><dependency><groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/lucene/contrib/demo/pom.xml.template b/dev-tools/maven/lucene/contrib/demo/pom.xml.templateindex c5d21320d74..0efced332d0 100644--- a/dev-tools/maven/lucene/contrib/demo/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/demo/pom.xml.template@@ -43,7 +43,7 @@</dependency><dependency><groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/lucene/contrib/highlighter/pom.xml.template b/dev-tools/maven/lucene/contrib/highlighter/pom.xml.templateindex 8cf32e3e524..82594936bec 100644--- a/dev-tools/maven/lucene/contrib/highlighter/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/highlighter/pom.xml.template@@ -45,7 +45,7 @@</dependency><dependency><groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/lucene/contrib/instantiated/pom.xml.template b/dev-tools/maven/lucene/contrib/instantiated/pom.xml.templateindex c2a9e2ccc0f..13f8cb7fc70 100644--- a/dev-tools/maven/lucene/contrib/instantiated/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/instantiated/pom.xml.template@@ -43,7 +43,7 @@</dependency><dependency><groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/lucene/contrib/lucli/pom.xml.template b/dev-tools/maven/lucene/contrib/lucli/pom.xml.templateindex f7928415bd6..391178ae430 100644--- a/dev-tools/maven/lucene/contrib/lucli/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/lucli/pom.xml.template@@ -43,7 +43,7 @@</dependency><dependency><groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/lucene/contrib/memory/pom.xml.template b/dev-tools/maven/lucene/contrib/memory/pom.xml.templateindex 5922bf57fd3..b82f713fba7 100644--- a/dev-tools/maven/lucene/contrib/memory/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/memory/pom.xml.template@@ -45,7 +45,7 @@</dependency><dependency><groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/lucene/contrib/misc/pom.xml.template b/dev-tools/maven/lucene/contrib/misc/pom.xml.templateindex f2ba79967c5..d076f688ca5 100644--- a/dev-tools/maven/lucene/contrib/misc/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/misc/pom.xml.template@@ -48,6 +48,13 @@<type>test-jar</type><scope>test</scope></dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-test-framework</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency><dependency><groupId>${project.groupId}</groupId><artifactId>lucene-analyzers-common</artifactId>diff --git a/dev-tools/maven/lucene/contrib/queries/pom.xml.template b/dev-tools/maven/lucene/contrib/queries/pom.xml.templateindex be2a216cc62..8feea4bda33 100644--- a/dev-tools/maven/lucene/contrib/queries/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/queries/pom.xml.template@@ -45,7 +45,7 @@</dependency><dependency><groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/lucene/contrib/queryparser/pom.xml.template b/dev-tools/maven/lucene/contrib/queryparser/pom.xml.templateindex 1640c94f446..ecbaf9e79c4 100644--- a/dev-tools/maven/lucene/contrib/queryparser/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/queryparser/pom.xml.template@@ -50,6 +50,13 @@<type>test-jar</type><scope>test</scope></dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-test-framework</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency><dependency><groupId>junit</groupId><artifactId>junit</artifactId>diff --git a/dev-tools/maven/lucene/contrib/spatial/pom.xml.template b/dev-tools/maven/lucene/contrib/spatial/pom.xml.templateindex da42c87f02f..0db411f23c6 100644--- a/dev-tools/maven/lucene/contrib/spatial/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/spatial/pom.xml.template@@ -43,7 +43,7 @@</dependency><dependency><groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/lucene/contrib/spellchecker/pom.xml.template b/dev-tools/maven/lucene/contrib/spellchecker/pom.xml.templateindex a65a1078c58..845e196bf64 100644--- a/dev-tools/maven/lucene/contrib/spellchecker/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/spellchecker/pom.xml.template@@ -43,7 +43,7 @@</dependency><dependency><groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/lucene/contrib/swing/pom.xml.template b/dev-tools/maven/lucene/contrib/swing/pom.xml.templateindex 31af98689e1..649e422c4e1 100644--- a/dev-tools/maven/lucene/contrib/swing/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/swing/pom.xml.template@@ -43,7 +43,7 @@</dependency><dependency><groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/lucene/contrib/wordnet/pom.xml.template b/dev-tools/maven/lucene/contrib/wordnet/pom.xml.templateindex 6a4604f86fd..ed72a977be7 100644--- a/dev-tools/maven/lucene/contrib/wordnet/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/wordnet/pom.xml.template@@ -43,7 +43,7 @@</dependency><dependency><groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/lucene/contrib/xml-query-parser/pom.xml.template b/dev-tools/maven/lucene/contrib/xml-query-parser/pom.xml.templateindex 66efaab58bd..7a543713bdd 100644--- a/dev-tools/maven/lucene/contrib/xml-query-parser/pom.xml.template+++ b/dev-tools/maven/lucene/contrib/xml-query-parser/pom.xml.template@@ -43,7 +43,7 @@</dependency><dependency><groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/lucene/pom.xml.template b/dev-tools/maven/lucene/pom.xml.templateindex b6c2fdf45c1..19fda15d708 100644--- a/dev-tools/maven/lucene/pom.xml.template+++ b/dev-tools/maven/lucene/pom.xml.template@@ -33,6 +33,7 @@<description>Lucene parent POM</description><modules><module>src</module>+ <module>src/test-framework</module><module>contrib</module></modules><build>diff --git a/dev-tools/maven/lucene/src/pom.xml.template b/dev-tools/maven/lucene/src/pom.xml.templateindex 4f65081d792..64887559798 100644--- a/dev-tools/maven/lucene/src/pom.xml.template+++ b/dev-tools/maven/lucene/src/pom.xml.template@@ -121,6 +121,24 @@</programs></configuration></plugin>+ <plugin>+ <groupId>org.codehaus.mojo</groupId>+ <artifactId>build-helper-maven-plugin</artifactId>+ <executions>+ <execution>+ <id>add-test-source</id>+ <phase>generate-test-sources</phase>+ <goals>+ <goal>add-test-source</goal>+ </goals>+ <configuration>+ <sources>+ <source>test-framework</source>+ </sources>+ </configuration>+ </execution>+ </executions>+ </plugin></plugins></build></project>diff --git a/dev-tools/maven/lucene/src/test-framework/pom.xml.template b/dev-tools/maven/lucene/src/test-framework/pom.xml.templatenew file mode 100644index 00000000000..e391e5f83ba--- /dev/null+++ b/dev-tools/maven/lucene/src/test-framework/pom.xml.template@@ -0,0 +1,89 @@+<project xmlns="http://maven.apache.org/POM/4.0.0"+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">+ <!--+ Licensed to the Apache Software Foundation (ASF) under one+ or more contributor license agreements. See the NOTICE file+ distributed with this work for additional information+ regarding copyright ownership. The ASF licenses this file+ to you under the Apache License, Version 2.0 (the+ "License"); you may not use this file except in compliance+ with the License. You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++ Unless required by applicable law or agreed to in writing,+ software distributed under the License is distributed on an+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+ KIND, either express or implied. See the License for the+ specific language governing permissions and limitations+ under the License.+ -->+ <modelVersion>4.0.0</modelVersion>+ <parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-parent</artifactId>+ <version>@version@</version>+ <relativePath>../../pom.xml</relativePath>+ </parent>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-test-framework</artifactId>+ <packaging>jar</packaging>+ <name>Lucene Test Framework</name>+ <description>Apache Lucene Java Test Framework</description>+ <properties>+ <module-directory>lucene/src/test-framework</module-directory>+ <build-directory>../../build</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-core</artifactId>+ <version>${project.version}</version>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>org.apache.ant</groupId>+ <artifactId>ant-junit</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies>+ <build>+ <directory>${build-directory}/classes/test-framework</directory>+ <testOutputDirectory>${build-directory}/classes/test-framework</testOutputDirectory>+ <testSourceDirectory>.</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>${project.build.testSourceDirectory}</directory>+ <excludes>+ <exclude>**/*.java</exclude>+ </excludes>+ </testResource>+ </testResources>+ <plugins>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-jar-plugin</artifactId>+ <executions>+ <execution>+ <goals>+ <goal>test-jar</goal>+ </goals>+ </execution>+ </executions>+ </plugin>+ <plugin>+ <groupId>org.apache.maven.plugins</groupId>+ <artifactId>maven-surefire-plugin</artifactId>+ <configuration>+ <skip>true</skip>+ </configuration>+ </plugin>+ </plugins>+ </build>+</project>diff --git a/dev-tools/maven/modules/analysis/common/pom.xml.template b/dev-tools/maven/modules/analysis/common/pom.xml.templateindex 99eb404b37c..19f8615459e 100644--- a/dev-tools/maven/modules/analysis/common/pom.xml.template+++ b/dev-tools/maven/modules/analysis/common/pom.xml.template@@ -48,6 +48,13 @@<type>test-jar</type><scope>test</scope></dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-test-framework</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency><dependency><groupId>junit</groupId><artifactId>junit</artifactId>diff --git a/dev-tools/maven/modules/analysis/icu/pom.xml.template b/dev-tools/maven/modules/analysis/icu/pom.xml.templateindex e98fff3f525..363364c88b6 100644--- a/dev-tools/maven/modules/analysis/icu/pom.xml.template+++ b/dev-tools/maven/modules/analysis/icu/pom.xml.template@@ -51,6 +51,13 @@<type>test-jar</type><scope>test</scope></dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>lucene-test-framework</artifactId>+ <version>${project.version}</version>+ <type>test-jar</type>+ <scope>test</scope>+ </dependency><dependency><groupId>${project.groupId}</groupId><artifactId>lucene-analyzers-common</artifactId>diff --git a/dev-tools/maven/modules/analysis/smartcn/pom.xml.template b/dev-tools/maven/modules/analysis/smartcn/pom.xml.templateindex 10f1e915651..26a7e4f8a13 100644--- a/dev-tools/maven/modules/analysis/smartcn/pom.xml.template+++ b/dev-tools/maven/modules/analysis/smartcn/pom.xml.template@@ -43,7 +43,7 @@</dependency><dependency><groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/modules/analysis/stempel/pom.xml.template b/dev-tools/maven/modules/analysis/stempel/pom.xml.templateindex 979498fd370..cacb74d7df9 100644--- a/dev-tools/maven/modules/analysis/stempel/pom.xml.template+++ b/dev-tools/maven/modules/analysis/stempel/pom.xml.template@@ -43,7 +43,7 @@</dependency><dependency><groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/modules/benchmark/pom.xml.template b/dev-tools/maven/modules/benchmark/pom.xml.templateindex 263a38fa5aa..184c190434a 100755--- a/dev-tools/maven/modules/benchmark/pom.xml.template+++ b/dev-tools/maven/modules/benchmark/pom.xml.template@@ -43,7 +43,7 @@</dependency><dependency><groupId>${project.groupId}</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/solr/contrib/analysis-extras/pom.xml.template b/dev-tools/maven/solr/contrib/analysis-extras/pom.xml.templateindex ff4e14d7aba..0ff4b13d8fe 100644--- a/dev-tools/maven/solr/contrib/analysis-extras/pom.xml.template+++ b/dev-tools/maven/solr/contrib/analysis-extras/pom.xml.template@@ -76,7 +76,7 @@</dependency><dependency><groupId>org.apache.lucene</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/solr/contrib/clustering/pom.xml.template b/dev-tools/maven/solr/contrib/clustering/pom.xml.templateindex 18afe9e58e2..3b47b219e92 100644--- a/dev-tools/maven/solr/contrib/clustering/pom.xml.template+++ b/dev-tools/maven/solr/contrib/clustering/pom.xml.template@@ -61,7 +61,7 @@</dependency><dependency><groupId>org.apache.lucene</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/solr/contrib/dataimporthandler/src/extras/pom.xml.template b/dev-tools/maven/solr/contrib/dataimporthandler/src/extras/pom.xml.templateindex 6a93cfb2102..739465af469 100644--- a/dev-tools/maven/solr/contrib/dataimporthandler/src/extras/pom.xml.template+++ b/dev-tools/maven/solr/contrib/dataimporthandler/src/extras/pom.xml.template@@ -68,7 +68,7 @@</dependency><dependency><groupId>org.apache.lucene</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/solr/contrib/dataimporthandler/src/pom.xml.template b/dev-tools/maven/solr/contrib/dataimporthandler/src/pom.xml.templateindex ccf9242c062..e0ea149c3c4 100644--- a/dev-tools/maven/solr/contrib/dataimporthandler/src/pom.xml.template+++ b/dev-tools/maven/solr/contrib/dataimporthandler/src/pom.xml.template@@ -61,7 +61,7 @@</dependency><dependency><groupId>org.apache.lucene</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/solr/contrib/extraction/pom.xml.template b/dev-tools/maven/solr/contrib/extraction/pom.xml.templateindex 8bd83173f7c..6d76eaece14 100644--- a/dev-tools/maven/solr/contrib/extraction/pom.xml.template+++ b/dev-tools/maven/solr/contrib/extraction/pom.xml.template@@ -64,7 +64,7 @@</dependency><dependency><groupId>org.apache.lucene</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/solr/contrib/uima/pom.xml.template b/dev-tools/maven/solr/contrib/uima/pom.xml.templateindex a7802c5b21b..ef314604ba1 100644--- a/dev-tools/maven/solr/contrib/uima/pom.xml.template+++ b/dev-tools/maven/solr/contrib/uima/pom.xml.template@@ -56,7 +56,7 @@</dependency><dependency><groupId>org.apache.lucene</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/solr/src/pom.xml.template b/dev-tools/maven/solr/src/pom.xml.templateindex df9bb5025ff..ec3d6258643 100644--- a/dev-tools/maven/solr/src/pom.xml.template+++ b/dev-tools/maven/solr/src/pom.xml.template@@ -48,7 +48,7 @@</dependency><dependency><groupId>org.apache.lucene</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/maven/solr/src/solrj/pom.xml.template b/dev-tools/maven/solr/src/solrj/pom.xml.templateindex dcf961b2dbe..e4ed4c7cf2f 100644--- a/dev-tools/maven/solr/src/solrj/pom.xml.template+++ b/dev-tools/maven/solr/src/solrj/pom.xml.template@@ -44,7 +44,7 @@</dependency><dependency><groupId>org.apache.lucene</groupId>- <artifactId>lucene-core</artifactId>+ <artifactId>lucene-test-framework</artifactId><version>${project.version}</version><type>test-jar</type><scope>test</scope>diff --git a/dev-tools/testjar/testfiles b/dev-tools/testjar/testfilesdeleted file mode 100755index 84d8bfb2eab..00000000000--- a/dev-tools/testjar/testfiles+++ /dev/null@@ -1,24 +0,0 @@-core.test.files=\- org/apache/lucene/util/_TestUtil.java,\- org/apache/lucene/util/LineFileDocs.java,\- org/apache/lucene/util/LuceneJUnitDividingSelector.java,\- org/apache/lucene/util/LuceneJUnitResultFormatter.java,\- org/apache/lucene/util/LuceneTestCase.java,\- org/apache/lucene/util/automaton/AutomatonTestUtil.java,\- org/apache/lucene/search/QueryUtils.java,\- org/apache/lucene/analysis/BaseTokenStreamTestCase.java,\- org/apache/lucene/analysis/MockAnalyzer.java,\- org/apache/lucene/analysis/MockPayloadAnalyzer.java,\- org/apache/lucene/analysis/MockTokenFilter.java,\- org/apache/lucene/analysis/MockTokenizer.java,\- org/apache/lucene/index/MockIndexInput.java,\- org/apache/lucene/index/RandomIndexWriter.java,\- org/apache/lucene/index/DocHelper.java,\- org/apache/lucene/codecs/preflexrw/PreFlexFieldsWriter.java,\- org/apache/lucene/codecs/preflexrw/PreFlexRWCodec.java,\- org/apache/lucene/codecs/preflexrw/TermInfosWriter.java,\- org/apache/lucene/codecs/mockrandom/MockRandomCodec.java,\- org/apache/lucene/store/_TestHelper.java,\- org/apache/lucene/store/MockDirectoryWrapper.java,\- org/apache/lucene/store/MockIndexInputWrapper.java,\- org/apache/lucene/store/MockIndexOutputWrapper.java,\diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex 32b9edeb024..bdd4940c487 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -978,6 +978,10 @@ Build* LUCENE-2657: Switch from using Maven POM templates to full POMs whengenerating Maven artifacts (Steven Rowe)+* LUCENE-2609: Added jar-test-framework Ant target which packages Lucene's+ tests' framework classes. (Drew Farris, Grant Ingersoll, Shai Erera, Steven+ Rowe)+Test Cases* LUCENE-2037 Allow Junit4 tests in our environment (Erick Ericksondiff --git a/lucene/build.xml b/lucene/build.xmlindex 3fe5b815403..4cb7a82a532 100644--- a/lucene/build.xml+++ b/lucene/build.xml@@ -17,7 +17,8 @@limitations under the License.-->-<project name="core" default="default" basedir=".">+<project name="core" default="default" basedir="."+ xmlns:artifact="antlib:org.apache.maven.artifact.ant"><property name="junit.includes" value="**/Test*.java"/>@@ -32,12 +33,13 @@<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>-<path id="junit.classpath"><path refid="junit-path"/>+ <pathelement location="${build.dir}/classes/test-framework"/><pathelement location="${build.dir}/classes/test"/><pathelement location="${build.dir}/classes/java"/><pathelement path="${java.class.path}"/>@@ -153,7 +155,7 @@</target><target name="javadocs" description="Generate javadoc"- depends="javadocs-all, javadocs-core, javadocs-contrib">+ depends="javadocs-all, javadocs-core, javadocs-contrib, javadocs-test-framework"><echo file="${javadoc.dir}/index.html" append="false"><![CDATA[<html><head><title>${Name} ${version} Javadoc Index</title></head><body>@@ -259,7 +261,7 @@<!-- ================================================================== --><!-- --><!-- ================================================================== -->- <target name="package" depends="jar-core, jar-core-test, javadocs, build-contrib, init-dist, changes-to-html"/>+ <target name="package" depends="jar-core, jar-test-framework, javadocs, build-contrib, init-dist, changes-to-html"/><target name="nightly" depends="test, package-tgz"></target>@@ -389,7 +391,7 @@<target name="dist-all" depends="dist, dist-src"/>- <target name="generate-maven-artifacts" depends="maven.ant.tasks-check, package, jar-src, javadocs">+ <target name="generate-maven-artifacts" depends="maven.ant.tasks-check, package, jar-src, jar-test-framework-src, javadocs"><sequential><ant target="get-maven-poms" dir=".."/>@@ -405,6 +407,22 @@classifier="tests"/></artifact-attachments></m2-deploy>++ <artifact:install-provider artifactId="wagon-ssh" version="1.0-beta-7"/>+ <artifact:pom id="test-framework-pom" file="src/test-framework/pom.xml"/>+ <artifact:deploy>+ <attach file="${build.dir}/${final.name}-tests.jar"+ classifier="tests" />+ <attach file="${build.dir}/${final.name}-tests-src.jar"+ classifier="test-sources"/>+ <attach file="${build.dir}/${final.name}-tests-javadoc.jar"+ classifier="test-javadoc"/>+ <remoteRepository url="${m2.repository.url}">+ <authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}"/>+ </remoteRepository>+ <pom refid="test-framework-pom"/>+ </artifact:deploy>+<contrib-crawl target="dist-maven"/></sequential></target>@@ -602,16 +620,30 @@<patch patchfile="${patch.file}" strip="0"/></target>- <target name="jar-core-test" depends="compile-test">- <!-- load the list of test files into a property named core.test.files -->- <property file="../dev-tools/testjar/testfiles" />- <!-- copy the files so that we can compile and include both .java and .class in the jar -->- <copy todir="${build.dir}/testjar" >- <fileset dir="src/test" includes="${core.test.files}" />- </copy>- <compile-test-macro srcdir="${build.dir}/testjar" destdir="${build.dir}/testjar"- test.classpath="test.classpath"/>- <jarify basedir="${build.dir}/testjar" destfile="${build.dir}/${final.name}-tests.jar"/>+ <target name="jar-test-framework" depends="compile-test-framework">+ <jarify basedir="${build.dir}/classes/test-framework" destfile="${build.dir}/${final.name}-tests.jar"+ title="Lucene Search Engine: Test Framework" />+ </target>++ <target name="javadocs-test-framework">+ <sequential>+ <mkdir dir="${javadoc.dir}/test-framework"/>+ <invoke-javadoc+ destdir="${javadoc.dir}/test-framework"+ title="${Name} ${version} Test Framework API">+ <sources>+ <packageset dir="src/test-framework"/>+ <link href=""/>+ </sources>+ </invoke-javadoc>+ <jarify basedir="${javadoc.dir}/test-framework" destfile="${build.dir}/${final.name}-tests-javadoc.jar"+ title="Lucene Search Engine: Test Framework" />+ </sequential>+ </target>++ <target name="jar-test-framework-src" depends="init">+ <jarify basedir="${tests-framework.src.dir}" destfile="${build.dir}/${final.name}-tests-src.jar"+ title="Lucene Search Engine: Test Framework" /></target></project>diff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex b98368c1b3e..70baa822b5b 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -113,6 +113,7 @@<property name="src.dir" location="src/java"/><property name="tests.src.dir" location="src/test"/>+ <property name="tests-framework.src.dir" location="${common.dir}/src/test-framework"/><property name="build.dir" location="build"/><property name="dist.dir" location="dist"/><property name="maven.dist.dir" location="dist/maven"/>@@ -363,6 +364,8 @@<macrodef name="jarify" description="Builds a JAR file"><attribute name="basedir" default="${build.dir}/classes/java"/><attribute name="destfile" default="${build.dir}/${final.name}.jar"/>+ <attribute name="title" default="Lucene Search Engine: ${ant.project.name}"/>+ <attribute name="excludes" default="**/pom.xml"/><element name="manifest-attributes" optional="yes"/><element name="metainf-includes" optional="yes"/><sequential>@@ -372,12 +375,13 @@<arg line="."/></exec>- <build-manifest/>+ <build-manifest title="@{title}"/><jardestfile="@{destfile}"basedir="@{basedir}"- manifest="${manifest.file}">+ manifest="${manifest.file}"+ excludes="@{excludes}"><manifest><manifest-attributes/></manifest>@@ -390,7 +394,12 @@</sequential></macrodef>- <target name="compile-test" depends="compile-core">+ <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"/>+ </target>++ <target name="compile-test" depends="compile-test-framework"><compile-test-macro srcdir="${tests.src.dir}" destdir="${build.dir}/classes/test"test.classpath="test.classpath"/></target>@@ -553,6 +562,9 @@<fileset dir="${src.dir}"><include name="org/apache/**/*.java" /></fileset>+ <testsources dir="${tests-framework.src.dir}">+ <include name="org/apache/**/*.java" />+ </testsources><testsources dir="${tests.src.dir}"><include name="org/apache/**/*.java" /></testsources>@@ -583,6 +595,9 @@<fileset dir="contrib" id="clover.contrib.test.src.files"><include name="**/test/**/*.java"/></fileset>+ <fileset dir="${tests-framework.src.dir}" id="clover.test.src.files">+ <include name="**/*.java" />+ </fileset><fileset dir="${tests.src.dir}" id="clover.test.src.files"><include name="**/*.java" /></fileset>@@ -653,6 +668,7 @@description="runs the tasks over source and test files"><rat:report xmlns:rat="antlib:org.apache.rat.anttasks"><fileset dir="${src.dir}"/>+ <fileset dir="${tests-framework.src.dir}"/><fileset dir="${tests.src.dir}"/></rat:report></target>diff --git a/lucene/contrib/contrib-build.xml b/lucene/contrib/contrib-build.xmlindex 77b1dd04bc6..bbd35082ac2 100644--- a/lucene/contrib/contrib-build.xml+++ b/lucene/contrib/contrib-build.xml@@ -40,6 +40,7 @@<path id="test.base.classpath"><path refid="classpath"/>+ <pathelement location="${common.dir}/build/classes/test-framework"/><pathelement location="${common.dir}/build/classes/test"/><path refid="junit-path"/><pathelement location="${build.dir}/classes/java"/>@@ -50,7 +51,6 @@<path id="junit.classpath"><path refid="test.classpath"/><pathelement location="${build.dir}/classes/test"/>- <pathelement location="${build.dir}/classes/java"/><pathelement path="${java.class.path}"/></path>diff --git a/lucene/contrib/db/bdb-je/build.xml b/lucene/contrib/db/bdb-je/build.xmlindex b751d84287d..cc8c1c8d96b 100644--- a/lucene/contrib/db/bdb-je/build.xml+++ b/lucene/contrib/db/bdb-je/build.xml@@ -39,13 +39,6 @@<import file="../../contrib-build.xml" />- <path id="test.classpath">- <path refid="classpath"/>- <pathelement location="../../../build/classes/test/"/>- <path refid="junit-path"/>- <pathelement location="${build.dir}/classes/java"/>- </path>-<target name="get-je-jar" unless="je.jar.exists"><mkdir dir="lib" /><get src="http://download.oracle.com/maven/com/sleepycat/je/${je.version}/je-${je.version}.jar"diff --git a/lucene/contrib/db/bdb/build.xml b/lucene/contrib/db/bdb/build.xmlindex 39d22d05885..4f7c74207f0 100644--- a/lucene/contrib/db/bdb/build.xml+++ b/lucene/contrib/db/bdb/build.xml@@ -39,13 +39,6 @@<import file="../../contrib-build.xml" />- <path id="test.classpath">- <path refid="classpath"/>- <pathelement location="../../../build/classes/test/"/>- <path refid="junit-path"/>- <pathelement location="${build.dir}/classes/java"/>- </path>-<target name="get-db-jar" unless="db.jar.exists"><mkdir dir="lib" /><get src="http://downloads.osafoundation.org/db/db-${db.version}.jar"diff --git a/lucene/src/test/org/apache/lucene/analysis/BaseTokenStreamTestCase.java b/lucene/src/test-framework/org/apache/lucene/analysis/BaseTokenStreamTestCase.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/analysis/BaseTokenStreamTestCase.javarename to lucene/src/test-framework/org/apache/lucene/analysis/BaseTokenStreamTestCase.javadiff --git a/lucene/src/test/org/apache/lucene/analysis/MockAnalyzer.java b/lucene/src/test-framework/org/apache/lucene/analysis/MockAnalyzer.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/analysis/MockAnalyzer.javarename to lucene/src/test-framework/org/apache/lucene/analysis/MockAnalyzer.javadiff --git a/lucene/src/test/org/apache/lucene/analysis/MockPayloadAnalyzer.java b/lucene/src/test-framework/org/apache/lucene/analysis/MockPayloadAnalyzer.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/analysis/MockPayloadAnalyzer.javarename to lucene/src/test-framework/org/apache/lucene/analysis/MockPayloadAnalyzer.javadiff --git a/lucene/src/test/org/apache/lucene/analysis/MockTokenFilter.java b/lucene/src/test-framework/org/apache/lucene/analysis/MockTokenFilter.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/analysis/MockTokenFilter.javarename to lucene/src/test-framework/org/apache/lucene/analysis/MockTokenFilter.javadiff --git a/lucene/src/test/org/apache/lucene/analysis/MockTokenizer.java b/lucene/src/test-framework/org/apache/lucene/analysis/MockTokenizer.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/analysis/MockTokenizer.javarename to lucene/src/test-framework/org/apache/lucene/analysis/MockTokenizer.javadiff --git a/lucene/src/test/org/apache/lucene/index/DocHelper.java b/lucene/src/test-framework/org/apache/lucene/index/DocHelper.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/index/DocHelper.javarename to lucene/src/test-framework/org/apache/lucene/index/DocHelper.javadiff --git a/lucene/src/test/org/apache/lucene/index/MockIndexInput.java b/lucene/src/test-framework/org/apache/lucene/index/MockIndexInput.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/index/MockIndexInput.javarename to lucene/src/test-framework/org/apache/lucene/index/MockIndexInput.javadiff --git a/lucene/src/test/org/apache/lucene/index/MockRandomMergePolicy.java b/lucene/src/test-framework/org/apache/lucene/index/MockRandomMergePolicy.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/index/MockRandomMergePolicy.javarename to lucene/src/test-framework/org/apache/lucene/index/MockRandomMergePolicy.javadiff --git a/lucene/src/test/org/apache/lucene/index/RandomIndexWriter.java b/lucene/src/test-framework/org/apache/lucene/index/RandomIndexWriter.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/index/RandomIndexWriter.javarename to lucene/src/test-framework/org/apache/lucene/index/RandomIndexWriter.javadiff --git a/lucene/src/test/org/apache/lucene/index/codecs/mockintblock/MockFixedIntBlockCodec.java b/lucene/src/test-framework/org/apache/lucene/index/codecs/mockintblock/MockFixedIntBlockCodec.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/index/codecs/mockintblock/MockFixedIntBlockCodec.javarename to lucene/src/test-framework/org/apache/lucene/index/codecs/mockintblock/MockFixedIntBlockCodec.javadiff --git a/lucene/src/test/org/apache/lucene/index/codecs/mockintblock/MockVariableIntBlockCodec.java b/lucene/src/test-framework/org/apache/lucene/index/codecs/mockintblock/MockVariableIntBlockCodec.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/index/codecs/mockintblock/MockVariableIntBlockCodec.javarename to lucene/src/test-framework/org/apache/lucene/index/codecs/mockintblock/MockVariableIntBlockCodec.javadiff --git a/lucene/src/test/org/apache/lucene/index/codecs/mockrandom/MockRandomCodec.java b/lucene/src/test-framework/org/apache/lucene/index/codecs/mockrandom/MockRandomCodec.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/index/codecs/mockrandom/MockRandomCodec.javarename to lucene/src/test-framework/org/apache/lucene/index/codecs/mockrandom/MockRandomCodec.javadiff --git a/lucene/src/test/org/apache/lucene/index/codecs/mocksep/MockSepCodec.java b/lucene/src/test-framework/org/apache/lucene/index/codecs/mocksep/MockSepCodec.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/index/codecs/mocksep/MockSepCodec.javarename to lucene/src/test-framework/org/apache/lucene/index/codecs/mocksep/MockSepCodec.javadiff --git a/lucene/src/test/org/apache/lucene/index/codecs/mocksep/MockSingleIntFactory.java b/lucene/src/test-framework/org/apache/lucene/index/codecs/mocksep/MockSingleIntFactory.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/index/codecs/mocksep/MockSingleIntFactory.javarename to lucene/src/test-framework/org/apache/lucene/index/codecs/mocksep/MockSingleIntFactory.javadiff --git a/lucene/src/test/org/apache/lucene/index/codecs/mocksep/MockSingleIntIndexInput.java b/lucene/src/test-framework/org/apache/lucene/index/codecs/mocksep/MockSingleIntIndexInput.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/index/codecs/mocksep/MockSingleIntIndexInput.javarename to lucene/src/test-framework/org/apache/lucene/index/codecs/mocksep/MockSingleIntIndexInput.javadiff --git a/lucene/src/test/org/apache/lucene/index/codecs/mocksep/MockSingleIntIndexOutput.java b/lucene/src/test-framework/org/apache/lucene/index/codecs/mocksep/MockSingleIntIndexOutput.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/index/codecs/mocksep/MockSingleIntIndexOutput.javarename to lucene/src/test-framework/org/apache/lucene/index/codecs/mocksep/MockSingleIntIndexOutput.javadiff --git a/lucene/src/test/org/apache/lucene/index/codecs/preflexrw/PreFlexFieldsWriter.java b/lucene/src/test-framework/org/apache/lucene/index/codecs/preflexrw/PreFlexFieldsWriter.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/index/codecs/preflexrw/PreFlexFieldsWriter.javarename to lucene/src/test-framework/org/apache/lucene/index/codecs/preflexrw/PreFlexFieldsWriter.javadiff --git a/lucene/src/test/org/apache/lucene/index/codecs/preflexrw/PreFlexRWCodec.java b/lucene/src/test-framework/org/apache/lucene/index/codecs/preflexrw/PreFlexRWCodec.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/index/codecs/preflexrw/PreFlexRWCodec.javarename to lucene/src/test-framework/org/apache/lucene/index/codecs/preflexrw/PreFlexRWCodec.javadiff --git a/lucene/src/test/org/apache/lucene/index/codecs/preflexrw/TermInfosWriter.java b/lucene/src/test-framework/org/apache/lucene/index/codecs/preflexrw/TermInfosWriter.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/index/codecs/preflexrw/TermInfosWriter.javarename to lucene/src/test-framework/org/apache/lucene/index/codecs/preflexrw/TermInfosWriter.javadiff --git a/lucene/src/test/org/apache/lucene/search/CheckHits.java b/lucene/src/test-framework/org/apache/lucene/search/CheckHits.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/search/CheckHits.javarename to lucene/src/test-framework/org/apache/lucene/search/CheckHits.javadiff --git a/lucene/src/test/org/apache/lucene/search/QueryUtils.java b/lucene/src/test-framework/org/apache/lucene/search/QueryUtils.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/search/QueryUtils.javarename to lucene/src/test-framework/org/apache/lucene/search/QueryUtils.javadiff --git a/lucene/src/test/org/apache/lucene/store/MockDirectoryWrapper.java b/lucene/src/test-framework/org/apache/lucene/store/MockDirectoryWrapper.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/store/MockDirectoryWrapper.javarename to lucene/src/test-framework/org/apache/lucene/store/MockDirectoryWrapper.javadiff --git a/lucene/src/test/org/apache/lucene/store/MockIndexInputWrapper.java b/lucene/src/test-framework/org/apache/lucene/store/MockIndexInputWrapper.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/store/MockIndexInputWrapper.javarename to lucene/src/test-framework/org/apache/lucene/store/MockIndexInputWrapper.javadiff --git a/lucene/src/test/org/apache/lucene/store/MockIndexOutputWrapper.java b/lucene/src/test-framework/org/apache/lucene/store/MockIndexOutputWrapper.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/store/MockIndexOutputWrapper.javarename to lucene/src/test-framework/org/apache/lucene/store/MockIndexOutputWrapper.javadiff --git a/lucene/src/test/org/apache/lucene/store/_TestHelper.java b/lucene/src/test-framework/org/apache/lucene/store/_TestHelper.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/store/_TestHelper.javarename to lucene/src/test-framework/org/apache/lucene/store/_TestHelper.javadiff --git a/lucene/src/test/org/apache/lucene/util/LineFileDocs.java b/lucene/src/test-framework/org/apache/lucene/util/LineFileDocs.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/util/LineFileDocs.javarename to lucene/src/test-framework/org/apache/lucene/util/LineFileDocs.javadiff --git a/lucene/src/test/org/apache/lucene/util/LuceneJUnitDividingSelector.java b/lucene/src/test-framework/org/apache/lucene/util/LuceneJUnitDividingSelector.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/util/LuceneJUnitDividingSelector.javarename to lucene/src/test-framework/org/apache/lucene/util/LuceneJUnitDividingSelector.javadiff --git a/lucene/src/test/org/apache/lucene/util/LuceneJUnitResultFormatter.java b/lucene/src/test-framework/org/apache/lucene/util/LuceneJUnitResultFormatter.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/util/LuceneJUnitResultFormatter.javarename to lucene/src/test-framework/org/apache/lucene/util/LuceneJUnitResultFormatter.javadiff --git a/lucene/src/test/org/apache/lucene/util/LuceneTestCase.java b/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/util/LuceneTestCase.javarename to lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.javadiff --git a/lucene/src/test/org/apache/lucene/util/_TestUtil.java b/lucene/src/test-framework/org/apache/lucene/util/_TestUtil.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/util/_TestUtil.javarename to lucene/src/test-framework/org/apache/lucene/util/_TestUtil.javadiff --git a/lucene/src/test/org/apache/lucene/util/automaton/AutomatonTestUtil.java b/lucene/src/test-framework/org/apache/lucene/util/automaton/AutomatonTestUtil.javasimilarity index 100%rename from lucene/src/test/org/apache/lucene/util/automaton/AutomatonTestUtil.javarename to lucene/src/test-framework/org/apache/lucene/util/automaton/AutomatonTestUtil.javadiff --git a/modules/analysis/common/build.xml b/modules/analysis/common/build.xmlindex 2e6786636c0..75e93b58c57 100644--- a/modules/analysis/common/build.xml+++ b/modules/analysis/common/build.xml@@ -30,6 +30,7 @@<path id="test.classpath"><path refid="classpath"/>+ <pathelement location="../../../lucene/build/classes/test-framework"/><pathelement location="../../../lucene/build/classes/test/"/><path refid="junit-path"/><pathelement location="${build.dir}/classes/java"/>diff --git a/modules/analysis/icu/build.xml b/modules/analysis/icu/build.xmlindex db7969a114b..2b443ce464b 100644--- a/modules/analysis/icu/build.xml+++ b/modules/analysis/icu/build.xml@@ -49,6 +49,7 @@<path id="test.classpath"><pathelement path="${analyzers-common.jar}"/><path refid="classpath"/>+ <pathelement location="../../../lucene/build/classes/test-framework/"/><pathelement location="../../../lucene/build/classes/test/"/><pathelement location="../build/common/classes/test/"/><path refid="junit-path"/>diff --git a/modules/analysis/phonetic/build.xml b/modules/analysis/phonetic/build.xmlindex 9efd18a94b8..e8625d49221 100644--- a/modules/analysis/phonetic/build.xml+++ b/modules/analysis/phonetic/build.xml@@ -48,6 +48,7 @@<path id="test.classpath"><pathelement path="${analyzers-common.jar}"/><path refid="classpath"/>+ <pathelement location="../../../lucene/build/classes/test-framework/"/><pathelement location="../../../lucene/build/classes/test/"/><pathelement location="../build/common/classes/test/"/><path refid="junit-path"/>diff --git a/modules/analysis/smartcn/build.xml b/modules/analysis/smartcn/build.xmlindex 841e680b651..075f8f497e6 100644--- a/modules/analysis/smartcn/build.xml+++ b/modules/analysis/smartcn/build.xml@@ -39,6 +39,7 @@<path id="test.classpath"><pathelement path="${analyzers-common.jar}"/><path refid="classpath"/>+ <pathelement location="../../../lucene/build/classes/test-framework"/><pathelement location="../../../lucene/build/classes/test/"/><path refid="junit-path"/><pathelement location="${build.dir}/classes/java"/>diff --git a/modules/analysis/stempel/build.xml b/modules/analysis/stempel/build.xmlindex 90c5065eb2a..517591f2727 100644--- a/modules/analysis/stempel/build.xml+++ b/modules/analysis/stempel/build.xml@@ -38,6 +38,7 @@<path id="test.classpath"><path refid="classpath"/>+ <pathelement location="../../../lucene/build/classes/test-framework"/><pathelement location="../../../lucene/build/classes/test/"/><path refid="junit-path"/><pathelement location="${build.dir}/classes/java"/>diff --git a/solr/build.xml b/solr/build.xmlindex 06fcb9df1de..d8021276039 100644--- a/solr/build.xml+++ b/solr/build.xml@@ -342,7 +342,7 @@<path refid="compile.classpath.solrj" /><pathelement location="${dest}/solr"/><pathelement location="${dest}/solrj"/> <!-- include solrj -->- <pathelement location="${common-solr.dir}/../lucene/build/classes/test" /> <!-- include some lucene test code -->+ <pathelement location="${common-solr.dir}/../lucene/build/classes/test-framework" /> <!-- include some lucene test code --></path><path id="test.run.classpath">@@ -350,7 +350,7 @@<pathelement location="${dest}/tests"/><!-- include the solrj classpath and jetty files included in example --><path refid="compile.classpath.solrj" />- <pathelement location="${common-solr.dir}/../lucene/build/classes/test" /> <!-- include some lucene test code -->+ <pathelement location="${common-solr.dir}/../lucene/build/classes/test-framework" /> <!-- include some lucene test code --><pathelement path="${java.class.path}"/></path>diff --git a/solr/contrib/analysis-extras/build.xml b/solr/contrib/analysis-extras/build.xmlindex 2babe1a7e96..1b135e3c4af 100644--- a/solr/contrib/analysis-extras/build.xml+++ b/solr/contrib/analysis-extras/build.xml@@ -73,7 +73,7 @@<pathelement path="${dest}/test-classes"/><pathelement path="${java.class.path}"/><pathelement location="${common-solr.dir}/build/tests"/> <!-- include solr test code -->- <pathelement location="${common-solr.dir}/../lucene/build/classes/test" /> <!-- include some lucene test code -->+ <pathelement location="${common-solr.dir}/../lucene/build/classes/test-framework" /> <!-- include some lucene test code --><path refid="common.classpath"/></path>diff --git a/solr/contrib/clustering/build.xml b/solr/contrib/clustering/build.xmlindex a8036428c9a..0621df640d3 100644--- a/solr/contrib/clustering/build.xml+++ b/solr/contrib/clustering/build.xml@@ -42,7 +42,7 @@<pathelement path="${dest}/test-classes"/><pathelement path="${java.class.path}"/><pathelement location="${common-solr.dir}/build/tests"/> <!-- include solr test code -->- <pathelement location="${common-solr.dir}/../lucene/build/classes/test" /> <!-- include some lucene test code -->+ <pathelement location="${common-solr.dir}/../lucene/build/classes/test-framework" /> <!-- include some lucene test code --><path refid="common.classpath"/><!-- DistributedClusteringComponentTest uses Jetty --><fileset dir="${solr-path}/example/lib">diff --git a/solr/contrib/dataimporthandler/build.xml b/solr/contrib/dataimporthandler/build.xmlindex c21c0f9a648..7772fcbb4e8 100644--- a/solr/contrib/dataimporthandler/build.xml+++ b/solr/contrib/dataimporthandler/build.xml@@ -56,7 +56,7 @@<pathelement path="target/classes" /><pathelement path="target/test-classes" /><pathelement location="${solr-path}/build/tests"/> <!-- include solr test code -->- <pathelement location="${solr-path}/../lucene/build/classes/test" /> <!-- include some lucene test code -->+ <pathelement location="${solr-path}/../lucene/build/classes/test-framework" /> <!-- include some lucene test code --><pathelement path="${java.class.path}"/></path>@@ -68,7 +68,7 @@<pathelement path="target/test-classes" /><pathelement path="target/extras/test-classes" /><pathelement location="${solr-path}/build/tests"/> <!-- include solr test code -->- <pathelement location="${solr-path}/../lucene/build/classes/test" /> <!-- include some lucene test code -->+ <pathelement location="${solr-path}/../lucene/build/classes/test-framework" /> <!-- include some lucene test code --><pathelement path="${java.class.path}"/></path>diff --git a/solr/contrib/extraction/build.xml b/solr/contrib/extraction/build.xmlindex 73182c45264..de7542d54b4 100644--- a/solr/contrib/extraction/build.xml+++ b/solr/contrib/extraction/build.xml@@ -40,7 +40,7 @@<pathelement path="${dest}/classes" /><pathelement path="${dest}/test-classes" /><pathelement location="${solr-path}/build/tests"/> <!-- include solr test code -->- <pathelement location="${solr-path}/../lucene/build/classes/test" /> <!-- include some lucene test code -->+ <pathelement location="${solr-path}/../lucene/build/classes/test-framework" /> <!-- include some lucene test code --><pathelement path="${java.class.path}"/></path>diff --git a/solr/contrib/uima/build.xml b/solr/contrib/uima/build.xmlindex 34b190b7727..34dbefec748 100644--- a/solr/contrib/uima/build.xml+++ b/solr/contrib/uima/build.xml@@ -41,7 +41,7 @@<pathelement path="${dest}/classes" /><pathelement path="${dest}/test-classes" /><pathelement location="${solr-path}/build/tests"/> <!-- include solr test code -->- <pathelement location="${solr-path}/../lucene/build/classes/test" /> <!-- include some lucene test code -->+ <pathelement location="${solr-path}/../lucene/build/classes/test-framework" /> <!-- include some lucene test code --><pathelement path="${java.class.path}"/></path>