diff --git a/dev-tools/eclipse/dot.classpath b/dev-tools/eclipse/dot.classpath index b633d43635d..9f2c3286d05 100644 --- a/dev-tools/eclipse/dot.classpath +++ b/dev-tools/eclipse/dot.classpath @@ -1,6 +1,7 @@ + diff --git a/dev-tools/idea/lucene/lucene.iml b/dev-tools/idea/lucene/lucene.iml index c6dd9276e7e..80dfc2d4361 100644 --- a/dev-tools/idea/lucene/lucene.iml +++ b/dev-tools/idea/lucene/lucene.iml @@ -6,6 +6,7 @@ + diff --git a/dev-tools/maven/lucene/contrib/ant/pom.xml.template b/dev-tools/maven/lucene/contrib/ant/pom.xml.template index 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 @@ ${project.groupId} - lucene-core + lucene-test-framework ${project.version} test-jar test 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.template index 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 @@ ${project.groupId} - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/lucene/contrib/db/bdb/pom.xml.template b/dev-tools/maven/lucene/contrib/db/bdb/pom.xml.template index 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 @@ ${project.groupId} - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/lucene/contrib/demo/pom.xml.template b/dev-tools/maven/lucene/contrib/demo/pom.xml.template index 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 @@ ${project.groupId} - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/lucene/contrib/highlighter/pom.xml.template b/dev-tools/maven/lucene/contrib/highlighter/pom.xml.template index 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 @@ ${project.groupId} - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/lucene/contrib/instantiated/pom.xml.template b/dev-tools/maven/lucene/contrib/instantiated/pom.xml.template index 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 @@ ${project.groupId} - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/lucene/contrib/lucli/pom.xml.template b/dev-tools/maven/lucene/contrib/lucli/pom.xml.template index 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 @@ ${project.groupId} - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/lucene/contrib/memory/pom.xml.template b/dev-tools/maven/lucene/contrib/memory/pom.xml.template index 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 @@ ${project.groupId} - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/lucene/contrib/misc/pom.xml.template b/dev-tools/maven/lucene/contrib/misc/pom.xml.template index 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 @@ test-jar test + + ${project.groupId} + lucene-test-framework + ${project.version} + test-jar + test + ${project.groupId} lucene-analyzers-common diff --git a/dev-tools/maven/lucene/contrib/queries/pom.xml.template b/dev-tools/maven/lucene/contrib/queries/pom.xml.template index 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 @@ ${project.groupId} - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/lucene/contrib/queryparser/pom.xml.template b/dev-tools/maven/lucene/contrib/queryparser/pom.xml.template index 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 @@ test-jar test + + ${project.groupId} + lucene-test-framework + ${project.version} + test-jar + test + junit junit diff --git a/dev-tools/maven/lucene/contrib/spatial/pom.xml.template b/dev-tools/maven/lucene/contrib/spatial/pom.xml.template index 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 @@ ${project.groupId} - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/lucene/contrib/spellchecker/pom.xml.template b/dev-tools/maven/lucene/contrib/spellchecker/pom.xml.template index 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 @@ ${project.groupId} - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/lucene/contrib/swing/pom.xml.template b/dev-tools/maven/lucene/contrib/swing/pom.xml.template index 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 @@ ${project.groupId} - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/lucene/contrib/wordnet/pom.xml.template b/dev-tools/maven/lucene/contrib/wordnet/pom.xml.template index 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 @@ ${project.groupId} - lucene-core + lucene-test-framework ${project.version} test-jar test 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.template index 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 @@ ${project.groupId} - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/lucene/pom.xml.template b/dev-tools/maven/lucene/pom.xml.template index b6c2fdf45c1..19fda15d708 100644 --- a/dev-tools/maven/lucene/pom.xml.template +++ b/dev-tools/maven/lucene/pom.xml.template @@ -33,6 +33,7 @@ Lucene parent POM src + src/test-framework contrib diff --git a/dev-tools/maven/lucene/src/pom.xml.template b/dev-tools/maven/lucene/src/pom.xml.template index 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 @@ + + org.codehaus.mojo + build-helper-maven-plugin + + + add-test-source + generate-test-sources + + add-test-source + + + + test-framework + + + + + diff --git a/dev-tools/maven/lucene/src/test-framework/pom.xml.template b/dev-tools/maven/lucene/src/test-framework/pom.xml.template new file mode 100644 index 00000000000..e391e5f83ba --- /dev/null +++ b/dev-tools/maven/lucene/src/test-framework/pom.xml.template @@ -0,0 +1,89 @@ + + + 4.0.0 + + org.apache.lucene + lucene-parent + @version@ + ../../pom.xml + + org.apache.lucene + lucene-test-framework + jar + Lucene Test Framework + Apache Lucene Java Test Framework + + lucene/src/test-framework + ../../build + + + + ${project.groupId} + lucene-core + ${project.version} + test + + + junit + junit + test + + + org.apache.ant + ant-junit + test + + + + ${build-directory}/classes/test-framework + ${build-directory}/classes/test-framework + . + + + ${project.build.testSourceDirectory} + + **/*.java + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + test-jar + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + true + + + + + diff --git a/dev-tools/maven/modules/analysis/common/pom.xml.template b/dev-tools/maven/modules/analysis/common/pom.xml.template index 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 @@ test-jar test + + ${project.groupId} + lucene-test-framework + ${project.version} + test-jar + test + junit junit diff --git a/dev-tools/maven/modules/analysis/icu/pom.xml.template b/dev-tools/maven/modules/analysis/icu/pom.xml.template index 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 @@ test-jar test + + ${project.groupId} + lucene-test-framework + ${project.version} + test-jar + test + ${project.groupId} lucene-analyzers-common diff --git a/dev-tools/maven/modules/analysis/smartcn/pom.xml.template b/dev-tools/maven/modules/analysis/smartcn/pom.xml.template index 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 @@ ${project.groupId} - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/modules/analysis/stempel/pom.xml.template b/dev-tools/maven/modules/analysis/stempel/pom.xml.template index 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 @@ ${project.groupId} - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/modules/benchmark/pom.xml.template b/dev-tools/maven/modules/benchmark/pom.xml.template index 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 @@ ${project.groupId} - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/solr/contrib/analysis-extras/pom.xml.template b/dev-tools/maven/solr/contrib/analysis-extras/pom.xml.template index 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 @@ org.apache.lucene - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/solr/contrib/clustering/pom.xml.template b/dev-tools/maven/solr/contrib/clustering/pom.xml.template index 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 @@ org.apache.lucene - lucene-core + lucene-test-framework ${project.version} test-jar test 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.template index 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 @@ org.apache.lucene - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/solr/contrib/dataimporthandler/src/pom.xml.template b/dev-tools/maven/solr/contrib/dataimporthandler/src/pom.xml.template index 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 @@ org.apache.lucene - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/solr/contrib/extraction/pom.xml.template b/dev-tools/maven/solr/contrib/extraction/pom.xml.template index 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 @@ org.apache.lucene - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/solr/contrib/uima/pom.xml.template b/dev-tools/maven/solr/contrib/uima/pom.xml.template index 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 @@ org.apache.lucene - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/solr/src/pom.xml.template b/dev-tools/maven/solr/src/pom.xml.template index 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 @@ org.apache.lucene - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/maven/solr/src/solrj/pom.xml.template b/dev-tools/maven/solr/src/solrj/pom.xml.template index 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 @@ org.apache.lucene - lucene-core + lucene-test-framework ${project.version} test-jar test diff --git a/dev-tools/testjar/testfiles b/dev-tools/testjar/testfiles deleted file mode 100755 index 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.txt index 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 when generating 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 Erickson diff --git a/lucene/build.xml b/lucene/build.xml index 3fe5b815403..4cb7a82a532 100644 --- a/lucene/build.xml +++ b/lucene/build.xml @@ -17,7 +17,8 @@ limitations under the License. --> - + @@ -32,12 +33,13 @@ + - + @@ -153,7 +155,7 @@ + depends="javadocs-all, javadocs-core, javadocs-contrib, javadocs-test-framework"> ${Name} ${version} Javadoc Index @@ -259,7 +261,7 @@ - + @@ -389,7 +391,7 @@ - + @@ -405,6 +407,22 @@ classifier="tests"/> + + + + + + + + + + + + + @@ -602,16 +620,30 @@ - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/lucene/common-build.xml b/lucene/common-build.xml index b98368c1b3e..70baa822b5b 100644 --- a/lucene/common-build.xml +++ b/lucene/common-build.xml @@ -113,6 +113,7 @@ + @@ -363,6 +364,8 @@ + + @@ -372,12 +375,13 @@ - + + manifest="${manifest.file}" + excludes="@{excludes}"> @@ -390,7 +394,12 @@ - + + + + + @@ -553,6 +562,9 @@ + + + @@ -583,6 +595,9 @@ + + + @@ -653,6 +668,7 @@ description="runs the tasks over source and test files"> + diff --git a/lucene/contrib/contrib-build.xml b/lucene/contrib/contrib-build.xml index 77b1dd04bc6..bbd35082ac2 100644 --- a/lucene/contrib/contrib-build.xml +++ b/lucene/contrib/contrib-build.xml @@ -40,6 +40,7 @@ + @@ -50,7 +51,6 @@ - diff --git a/lucene/contrib/db/bdb-je/build.xml b/lucene/contrib/db/bdb-je/build.xml index b751d84287d..cc8c1c8d96b 100644 --- a/lucene/contrib/db/bdb-je/build.xml +++ b/lucene/contrib/db/bdb-je/build.xml @@ -39,13 +39,6 @@ - - - - - - - - - - - - - - + diff --git a/modules/analysis/icu/build.xml b/modules/analysis/icu/build.xml index db7969a114b..2b443ce464b 100644 --- a/modules/analysis/icu/build.xml +++ b/modules/analysis/icu/build.xml @@ -49,6 +49,7 @@ + diff --git a/modules/analysis/phonetic/build.xml b/modules/analysis/phonetic/build.xml index 9efd18a94b8..e8625d49221 100644 --- a/modules/analysis/phonetic/build.xml +++ b/modules/analysis/phonetic/build.xml @@ -48,6 +48,7 @@ + diff --git a/modules/analysis/smartcn/build.xml b/modules/analysis/smartcn/build.xml index 841e680b651..075f8f497e6 100644 --- a/modules/analysis/smartcn/build.xml +++ b/modules/analysis/smartcn/build.xml @@ -39,6 +39,7 @@ + diff --git a/modules/analysis/stempel/build.xml b/modules/analysis/stempel/build.xml index 90c5065eb2a..517591f2727 100644 --- a/modules/analysis/stempel/build.xml +++ b/modules/analysis/stempel/build.xml @@ -38,6 +38,7 @@ + diff --git a/solr/build.xml b/solr/build.xml index 06fcb9df1de..d8021276039 100644 --- a/solr/build.xml +++ b/solr/build.xml @@ -342,7 +342,7 @@ - + @@ -350,7 +350,7 @@ - + diff --git a/solr/contrib/analysis-extras/build.xml b/solr/contrib/analysis-extras/build.xml index 2babe1a7e96..1b135e3c4af 100644 --- a/solr/contrib/analysis-extras/build.xml +++ b/solr/contrib/analysis-extras/build.xml @@ -73,7 +73,7 @@ - + diff --git a/solr/contrib/clustering/build.xml b/solr/contrib/clustering/build.xml index a8036428c9a..0621df640d3 100644 --- a/solr/contrib/clustering/build.xml +++ b/solr/contrib/clustering/build.xml @@ -42,7 +42,7 @@ - + diff --git a/solr/contrib/dataimporthandler/build.xml b/solr/contrib/dataimporthandler/build.xml index c21c0f9a648..7772fcbb4e8 100644 --- a/solr/contrib/dataimporthandler/build.xml +++ b/solr/contrib/dataimporthandler/build.xml @@ -56,7 +56,7 @@ - + @@ -68,7 +68,7 @@ - + diff --git a/solr/contrib/extraction/build.xml b/solr/contrib/extraction/build.xml index 73182c45264..de7542d54b4 100644 --- a/solr/contrib/extraction/build.xml +++ b/solr/contrib/extraction/build.xml @@ -40,7 +40,7 @@ - + diff --git a/solr/contrib/uima/build.xml b/solr/contrib/uima/build.xml index 34b190b7727..34dbefec748 100644 --- a/solr/contrib/uima/build.xml +++ b/solr/contrib/uima/build.xml @@ -41,7 +41,7 @@ - +