Apache Solr open-source search software
SOLR-2452: merged with trunk up r1144161; applied the svn movement script and the latest version of the post-svn-movement patch
Steven Rowe4505c08643c9
diff --cc dev-tools/eclipse/dot.classpathindex d1b2238c4d3,34725abaf24..103f568506a--- a/dev-tools/eclipse/dot.classpath+++ b/dev-tools/eclipse/dot.classpath@@@ -51,13 -51,13 +51,13 @@@<classpathentry kind="src" path="modules/queries/src/test"/><classpathentry kind="src" path="modules/suggest/src/java"/><classpathentry kind="src" path="modules/suggest/src/test"/>-- <classpathentry kind="src" path="solr/src/java"/>-- <classpathentry kind="src" path="solr/src/webapp/src"/>-- <classpathentry kind="src" path="solr/src/common"/>-- <classpathentry kind="src" path="solr/src/solrj"/>-- <classpathentry kind="src" path="solr/src/test-framework"/>-- <classpathentry kind="src" path="solr/src/test"/>-- <classpathentry kind="src" path="solr/src/test-files"/>++ <classpathentry kind="src" path="solr/core/src/java"/>++ <classpathentry kind="src" path="solr/core/src/test"/>++ <classpathentry kind="src" path="solr/core/src/test-files"/>++ <classpathentry kind="src" path="solr/solrj/src/java"/>++ <classpathentry kind="src" path="solr/solrj/src/test"/>++ <classpathentry kind="src" path="solr/solrj/src/test-files"/>++ <classpathentry kind="src" path="solr/test-framework/src/java"/><classpathentry kind="src" path="solr/contrib/analysis-extras/src/java"/><classpathentry kind="src" path="solr/contrib/analysis-extras/src/test"/><classpathentry kind="src" path="solr/contrib/analysis-extras/src/test-files"/>diff --cc dev-tools/idea/.idea/ant.xmlindex 4f418408f79,047990e1d90..d257ea09b59--- a/dev-tools/idea/.idea/ant.xml+++ b/dev-tools/idea/.idea/ant.xml@@@ -25,11 -25,10 +25,15 @@@<buildFile url="file://$PROJECT_DIR$/modules/join/build.xml" /><buildFile url="file://$PROJECT_DIR$/modules/suggest/build.xml" /><buildFile url="file://$PROJECT_DIR$/solr/build.xml" />++ <buildFile url="file://$PROJECT_DIR$/solr/core/build.xml" /><buildFile url="file://$PROJECT_DIR$/solr/contrib/analysis-extras/build.xml" /><buildFile url="file://$PROJECT_DIR$/solr/contrib/clustering/build.xml" /><buildFile url="file://$PROJECT_DIR$/solr/contrib/dataimporthandler/build.xml" />+ <buildFile url="file://$PROJECT_DIR$/solr/contrib/dataimporthandler-extras/build.xml" /><buildFile url="file://$PROJECT_DIR$/solr/contrib/extraction/build.xml" /><buildFile url="file://$PROJECT_DIR$/solr/contrib/uima/build.xml" />++ <buildFile url="file://$PROJECT_DIR$/solr/solrj/build.xml" />++ <buildFile url="file://$PROJECT_DIR$/solr/test-framework/build.xml" />++ <buildFile url="file://$PROJECT_DIR$/solr/webapp/build.xml" /></component></project>diff --cc dev-tools/idea/solr/contrib/analysis-extras/analysis-extras.imlindex d732a1b56d8,6b22ec63c4c..64a1d8e1324--- a/dev-tools/idea/solr/contrib/analysis-extras/analysis-extras.iml+++ b/dev-tools/idea/solr/contrib/analysis-extras/analysis-extras.iml@@@ -1,8 -1,8 +1,8 @@@<?xml version="1.0" encoding="UTF-8"?><module type="JAVA_MODULE" version="4"><component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="false">- <output url="file://$MODULE_DIR$/../../build/contrib/analysis-extras/classes" />- <output-test url="file://$MODULE_DIR$/../../build/contrib/analysis-extras/test-classes" />- <output url="file://$MODULE_DIR$/build/classes" />- <output-test url="file://$MODULE_DIR$/build/test-classes" />++ <output url="file://$MODULE_DIR$/../../build/contrib/analysis-extras/classes/java" />++ <output-test url="file://$MODULE_DIR$/../../build/contrib/analysis-extras/classes/test" /><exclude-output /><content url="file://$MODULE_DIR$"><sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />diff --cc dev-tools/idea/solr/contrib/clustering/clustering.imlindex d7f90c83b69,c1abea5ff37..65ad3f058e3--- a/dev-tools/idea/solr/contrib/clustering/clustering.iml+++ b/dev-tools/idea/solr/contrib/clustering/clustering.iml@@@ -1,13 -1,14 +1,13 @@@<?xml version="1.0" encoding="UTF-8"?><module type="JAVA_MODULE" version="4"><component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="false">- <output url="file://$MODULE_DIR$/../../build/contrib/clustering/classes" />- <output-test url="file://$MODULE_DIR$/../../build/contrib/clustering/test-classes" />- <output url="file://$MODULE_DIR$/build/classes" />- <output-test url="file://$MODULE_DIR$/build/test-classes" />++ <output url="file://$MODULE_DIR$/../../build/contrib/clustering/classes/java" />++ <output-test url="file://$MODULE_DIR$/../../build/contrib/clustering/classes/test" /><exclude-output /><content url="file://$MODULE_DIR$">- <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />- <sourceFolder url="file://$MODULE_DIR$/src/test/resources" isTestSource="true" />- <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />- <excludeFolder url="file://$MODULE_DIR$/build" />+ <sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />+ <sourceFolder url="file://$MODULE_DIR$/src/test-files" isTestSource="true" />+ <sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" /></content><orderEntry type="inheritedJdk" /><orderEntry type="sourceFolder" forTests="false" />diff --cc dev-tools/idea/solr/contrib/dataimporthandler-extras/dataimporthandler-extras.imlindex 121ed1df81b,7f35a8a24cd..1bec0eec4c1--- a/dev-tools/idea/solr/contrib/dataimporthandler-extras/dataimporthandler-extras.iml+++ b/dev-tools/idea/solr/contrib/dataimporthandler-extras/dataimporthandler-extras.iml@@@ -1,13 -1,13 +1,13 @@@<?xml version="1.0" encoding="UTF-8"?><module type="JAVA_MODULE" version="4"><component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="false">- <output url="file://$MODULE_DIR$/../../build/contrib/dataimporthandler-extras/classes" />- <output-test url="file://$MODULE_DIR$/../../build/contrib/dataimporthandler-extras/test-classes" />- <output url="file://$MODULE_DIR$/../../target/extras/classes" />- <output-test url="file://$MODULE_DIR$/../../target/extras/test-classes" />++ <output url="file://$MODULE_DIR$/../../build/contrib/dataimporthandler-extras/classes/java" />++ <output-test url="file://$MODULE_DIR$/../../build/contrib/dataimporthandler-extras/classes/test" /><exclude-output /><content url="file://$MODULE_DIR$">- <sourceFolder url="file://$MODULE_DIR$/main/java" isTestSource="false" />- <sourceFolder url="file://$MODULE_DIR$/test/java" isTestSource="true" />- <sourceFolder url="file://$MODULE_DIR$/test/resources" isTestSource="true" />+ <sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />+ <sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />+ <sourceFolder url="file://$MODULE_DIR$/src/test-files" isTestSource="true" /></content><orderEntry type="inheritedJdk" /><orderEntry type="sourceFolder" forTests="false" />diff --cc dev-tools/idea/solr/contrib/dataimporthandler/dataimporthandler.imlindex 838f7764eba,96f5c9e32cf..7490d2aeb79--- a/dev-tools/idea/solr/contrib/dataimporthandler/dataimporthandler.iml+++ b/dev-tools/idea/solr/contrib/dataimporthandler/dataimporthandler.iml@@@ -1,14 -1,15 +1,14 @@@<?xml version="1.0" encoding="UTF-8"?><module type="JAVA_MODULE" version="4"><component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="false">- <output url="file://$MODULE_DIR$/../../build/contrib/dataimporthandler/classes" />- <output-test url="file://$MODULE_DIR$/../../build/contrib/dataimporthandler/test-classes" />- <output url="file://$MODULE_DIR$/target/classes" />- <output-test url="file://$MODULE_DIR$/target/test-classes" />++ <output url="file://$MODULE_DIR$/../../build/contrib/dataimporthandler/classes/java" />++ <output-test url="file://$MODULE_DIR$/../../build/contrib/dataimporthandler/classes/test" /><exclude-output /><content url="file://$MODULE_DIR$">- <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />- <sourceFolder url="file://$MODULE_DIR$/src/main/webapp" isTestSource="false" />- <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />- <sourceFolder url="file://$MODULE_DIR$/src/test/resources" isTestSource="true" />- <excludeFolder url="file://$MODULE_DIR$/target" />+ <sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />+ <sourceFolder url="file://$MODULE_DIR$/src/webapp" isTestSource="false" />+ <sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />+ <sourceFolder url="file://$MODULE_DIR$/src/test-files" isTestSource="true" /></content><orderEntry type="inheritedJdk" /><orderEntry type="sourceFolder" forTests="false" />diff --cc dev-tools/idea/solr/contrib/extraction/extraction.imlindex 7f4b785ec41,e5493a86550..f8be7506bfe--- a/dev-tools/idea/solr/contrib/extraction/extraction.iml+++ b/dev-tools/idea/solr/contrib/extraction/extraction.iml@@@ -1,13 -1,14 +1,13 @@@<?xml version="1.0" encoding="UTF-8"?><module type="JAVA_MODULE" version="4"><component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="false">- <output url="file://$MODULE_DIR$/../../build/contrib/extraction/classes" />- <output-test url="file://$MODULE_DIR$/../../build/contrib/extraction/test-classes" />- <output url="file://$MODULE_DIR$/build/classes" />- <output-test url="file://$MODULE_DIR$/build/test-classes" />++ <output url="file://$MODULE_DIR$/../../build/contrib/extraction/classes/java" />++ <output-test url="file://$MODULE_DIR$/../../build/contrib/extraction/classes/test" /><exclude-output /><content url="file://$MODULE_DIR$">- <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />- <sourceFolder url="file://$MODULE_DIR$/src/test/resources" isTestSource="true" />- <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />- <excludeFolder url="file://$MODULE_DIR$/build" />+ <sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />+ <sourceFolder url="file://$MODULE_DIR$/src/test-files" isTestSource="true" />+ <sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" /></content><orderEntry type="inheritedJdk" /><orderEntry type="sourceFolder" forTests="false" />diff --cc dev-tools/idea/solr/contrib/uima/uima.imlindex f8e375a23e0,099f6f614c8..a67a543b5fc--- a/dev-tools/idea/solr/contrib/uima/uima.iml+++ b/dev-tools/idea/solr/contrib/uima/uima.iml@@@ -1,14 -1,15 +1,14 @@@<?xml version="1.0" encoding="UTF-8"?><module type="JAVA_MODULE" version="4"><component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="false">- <output url="file://$MODULE_DIR$/../../build/contrib/uima/classes" />- <output-test url="file://$MODULE_DIR$/../../build/contrib/uima/test-classes" />- <output url="file://$MODULE_DIR$/build/classes" />- <output-test url="file://$MODULE_DIR$/build/test-classes" />++ <output url="file://$MODULE_DIR$/../../build/contrib/uima/classes/java" />++ <output-test url="file://$MODULE_DIR$/../../build/contrib/uima/classes/test" /><exclude-output /><content url="file://$MODULE_DIR$">- <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />- <sourceFolder url="file://$MODULE_DIR$/src/test/resources" isTestSource="true" />- <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />- <sourceFolder url="file://$MODULE_DIR$/src/main/resources" isTestSource="false" />- <excludeFolder url="file://$MODULE_DIR$/build" />+ <sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />+ <sourceFolder url="file://$MODULE_DIR$/src/test-files" isTestSource="true" />+ <sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />+ <sourceFolder url="file://$MODULE_DIR$/src/resources" isTestSource="false" /></content><orderEntry type="inheritedJdk" /><orderEntry type="sourceFolder" forTests="false" />diff --cc dev-tools/idea/solr/solr.imlindex b0cf7128da4,0826b9bbf30..e7dd5db0124--- a/dev-tools/idea/solr/solr.iml+++ b/dev-tools/idea/solr/solr.iml@@@ -1,20 -1,21 +1,19 @@@<?xml version="1.0" encoding="UTF-8"?><module type="JAVA_MODULE" version="4"><component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="false">-- <output url="file://$MODULE_DIR$/build/solr" />-- <output-test url="file://$MODULE_DIR$/build/tests" />++ <output url="file://$MODULE_DIR$/../build/solr-idea/classes/java" />++ <output-test url="file://$MODULE_DIR$/../build/solr-idea/classes/test" /><exclude-output /><content url="file://$MODULE_DIR$">-- <sourceFolder url="file://$MODULE_DIR$/src/solrj" isTestSource="false" />-- <sourceFolder url="file://$MODULE_DIR$/src/common" isTestSource="false" />-- <sourceFolder url="file://$MODULE_DIR$/src/webapp/src" isTestSource="false" />-- <sourceFolder url="file://$MODULE_DIR$/src/webapp/web" isTestSource="false" />-- <sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />-- <sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />-- <sourceFolder url="file://$MODULE_DIR$/src/test-files" isTestSource="true" />-- <sourceFolder url="file://$MODULE_DIR$/src/test-framework" isTestSource="true" />++ <sourceFolder url="file://$MODULE_DIR$/core/src/java" isTestSource="false" />++ <sourceFolder url="file://$MODULE_DIR$/core/src/test" isTestSource="true" />++ <sourceFolder url="file://$MODULE_DIR$/core/src/test-files" isTestSource="true" />++ <sourceFolder url="file://$MODULE_DIR$/solrj/src/java" isTestSource="false" />++ <sourceFolder url="file://$MODULE_DIR$/solrj/src/test" isTestSource="true" />++ <sourceFolder url="file://$MODULE_DIR$/solrj/src/test-files" isTestSource="true" />++ <sourceFolder url="file://$MODULE_DIR$/test-framework/src/java" isTestSource="true" /><excludeFolder url="file://$MODULE_DIR$/build" /><excludeFolder url="file://$MODULE_DIR$/dist" />- <excludeFolder url="file://$MODULE_DIR$/lucene-libs" /><excludeFolder url="file://$MODULE_DIR$/package" /></content><orderEntry type="inheritedJdk" />diff --cc dev-tools/maven/solr/contrib/analysis-extras/pom.xml.templateindex aadefcf6c77,00099314f2c..529a999aa7e--- a/dev-tools/maven/solr/contrib/analysis-extras/pom.xml.template+++ b/dev-tools/maven/solr/contrib/analysis-extras/pom.xml.template@@@ -91,8 -91,8 +91,8 @@@</dependencies><build><directory>${build-directory}</directory>-- <outputDirectory>${build-directory}/classes</outputDirectory>-- <testOutputDirectory>${build-directory}/test-classes</testOutputDirectory>++ <outputDirectory>${build-directory}/classes/java</outputDirectory>++ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory><sourceDirectory>src/java</sourceDirectory><testSourceDirectory>src/test</testSourceDirectory><testResources>@@@ -100,7 -100,7 +100,7 @@@<directory>src/test-files</directory></testResource><testResource>-- <directory>../../src/test-files</directory>++ <directory>../../core/src/test-files</directory></testResource></testResources><plugins>diff --cc dev-tools/maven/solr/contrib/clustering/pom.xml.templateindex 49fc30756e3,010ae80566d..857634d4464--- a/dev-tools/maven/solr/contrib/clustering/pom.xml.template+++ b/dev-tools/maven/solr/contrib/clustering/pom.xml.template@@@ -116,16 -116,14 +116,16 @@@</dependencies><build><directory>${build-directory}</directory>-- <outputDirectory>${build-directory}/classes</outputDirectory>-- <testOutputDirectory>${build-directory}/test-classes</testOutputDirectory>++ <outputDirectory>${build-directory}/classes/java</outputDirectory>++ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory><testResources><testResource>- <directory>src/test/resources</directory>+ <directory>src/test-files</directory></testResource><testResource>-- <directory>../../src/test-files</directory>++ <directory>../../core/src/test-files</directory></testResource></testResources><plugins>diff --cc dev-tools/maven/solr/contrib/dataimporthandler-extras/pom.xml.templateindex 2676cc3f6f0,22bb6f6b558..f01d38550b2--- a/dev-tools/maven/solr/contrib/dataimporthandler-extras/pom.xml.template+++ b/dev-tools/maven/solr/contrib/dataimporthandler-extras/pom.xml.template@@@ -102,16 -102,16 +102,16 @@@</dependencies><build><directory>${build-directory}</directory>-- <outputDirectory>${build-directory}/classes</outputDirectory>-- <testOutputDirectory>${build-directory}/test-classes</testOutputDirectory>- <sourceDirectory>main/java</sourceDirectory>- <testSourceDirectory>test/java</testSourceDirectory>++ <outputDirectory>${build-directory}/classes/java</outputDirectory>++ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory><testResources><testResource>- <directory>test/resources</directory>+ <directory>src/test-files</directory></testResource><testResource>- <directory>../../src/test-files</directory>- <directory>../../../../src/test-files</directory>++ <directory>../../core/src/test-files</directory></testResource></testResources><plugins>diff --cc dev-tools/maven/solr/contrib/dataimporthandler/pom.xml.templateindex ef1e24d5c83,72b5a1ccb0a..3dc69e60b34--- a/dev-tools/maven/solr/contrib/dataimporthandler/pom.xml.template+++ b/dev-tools/maven/solr/contrib/dataimporthandler/pom.xml.template@@@ -27,90 -27,16 +27,90 @@@<relativePath>../../pom.xml</relativePath></parent><groupId>org.apache.solr</groupId>- <artifactId>solr-dataimporthandler-aggregator</artifactId>- <packaging>pom</packaging>- <name>Apache Solr DataImportHandler aggregator POM</name>- <description>Apache Solr DataImportHandler aggregator POM</description>- <modules>- <module>src</module>- <module>src/extras</module>- </modules>+ <artifactId>solr-dataimporthandler</artifactId>+ <packaging>jar</packaging>+ <name>Apache Solr DataImportHandler</name>+ <description>Apache Solr DataImportHandler</description>+ <properties>+ <module-directory>solr/contrib/dataimporthandler</module-directory>+ <build-directory>../../build/contrib/dataimporthandler</build-directory>+ </properties>+ <dependencies>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-core</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.solr</groupId>+ <artifactId>solr-test-framework</artifactId>+ <version>${project.version}</version>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>${project.groupId}</groupId>+ <artifactId>solr-solrj</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-analyzers-common</artifactId>+ <version>${project.version}</version>+ </dependency>+ <dependency>+ <groupId>org.apache.lucene</groupId>+ <artifactId>lucene-test-framework</artifactId>+ <version>${project.version}</version>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>javax.servlet</groupId>+ <artifactId>servlet-api</artifactId>+ <scope>provided</scope>+ </dependency>+ <dependency>+ <groupId>commons-io</groupId>+ <artifactId>commons-io</artifactId>+ </dependency>+ <dependency>+ <groupId>org.slf4j</groupId>+ <artifactId>slf4j-api</artifactId>+ </dependency>+ <dependency>+ <groupId>junit</groupId>+ <artifactId>junit</artifactId>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>org.easymock</groupId>+ <artifactId>easymock</artifactId>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>jetty</artifactId>+ <scope>test</scope>+ </dependency>+ <dependency>+ <groupId>org.mortbay.jetty</groupId>+ <artifactId>jetty-util</artifactId>+ <scope>test</scope>+ </dependency>+ </dependencies><build>- <directory>target/solr-dataimporthandler-aggregator</directory>+ <directory>${build-directory}</directory>- <outputDirectory>${build-directory}/classes</outputDirectory>- <testOutputDirectory>${build-directory}/test-classes</testOutputDirectory>++ <outputDirectory>${build-directory}/classes/java</outputDirectory>++ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory>+ <testResources>+ <testResource>+ <directory>src/test-files</directory>+ </testResource>+ <testResource>- <directory>../../src/test-files</directory>++ <directory>../../core/src/test-files</directory>+ </testResource>+ </testResources><plugins><plugin><groupId>org.apache.maven.plugins</groupId>diff --cc dev-tools/maven/solr/contrib/extraction/pom.xml.templateindex f207ee3f70f,cfab86cba75..14036ef0bf1--- a/dev-tools/maven/solr/contrib/extraction/pom.xml.template+++ b/dev-tools/maven/solr/contrib/extraction/pom.xml.template@@@ -91,16 -91,14 +91,16 @@@</dependencies><build><directory>${build-directory}</directory>-- <outputDirectory>${build-directory}/classes</outputDirectory>-- <testOutputDirectory>${build-directory}/test-classes</testOutputDirectory>++ <outputDirectory>${build-directory}/classes/java</outputDirectory>++ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory><testResources><testResource>- <directory>src/test/resources</directory>+ <directory>src/test-files</directory></testResource><testResource>-- <directory>../../src/test-files</directory>++ <directory>../../core/src/test-files</directory></testResource></testResources><plugins>diff --cc dev-tools/maven/solr/contrib/uima/pom.xml.templateindex 320a537c3e1,58683429b1a..edc0d367fe4--- a/dev-tools/maven/solr/contrib/uima/pom.xml.template+++ b/dev-tools/maven/solr/contrib/uima/pom.xml.template@@@ -103,13 -103,11 +103,13 @@@</dependencies><build><directory>${build-directory}</directory>-- <outputDirectory>${build-directory}/classes</outputDirectory>-- <testOutputDirectory>${build-directory}/test-classes</testOutputDirectory>++ <outputDirectory>${build-directory}/classes/java</outputDirectory>++ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>+ <sourceDirectory>src/java</sourceDirectory>+ <testSourceDirectory>src/test</testSourceDirectory><resources><resource>- <directory>src/main/resources</directory>+ <directory>src/resources</directory></resource></resources><testResources>diff --cc dev-tools/maven/solr/core/pom.xml.templateindex 89a2d6ba41f,89a2d6ba41f..8a883b938e7--- a/dev-tools/maven/solr/core/pom.xml.template+++ b/dev-tools/maven/solr/core/pom.xml.template@@@ -33,7 -33,7 +33,7 @@@<description>Apache Solr Core</description><properties><module-directory>solr</module-directory>-- <build-directory>../build</build-directory>++ <build-directory>../build/solr-maven</build-directory></properties><dependencies><dependency>@@@ -184,34 -184,34 +184,19 @@@</dependencies><build><directory>${build-directory}</directory>-- <outputDirectory>${build-directory}/solr</outputDirectory>-- <testOutputDirectory>${build-directory}/tests</testOutputDirectory>-- <sourceDirectory>java</sourceDirectory>-- <testSourceDirectory>test</testSourceDirectory>++ <outputDirectory>${build-directory}/classes/java</outputDirectory>++ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>++ <sourceDirectory>src/java</sourceDirectory>++ <testSourceDirectory>src/test</testSourceDirectory><testResources><testResource>-- <directory>test-files</directory>++ <directory>src/test-files</directory>++ </testResource>++ <testResource>++ <directory>../solrj/src/test-files</directory></testResource></testResources><plugins>-- <plugin>-- <groupId>org.codehaus.mojo</groupId>-- <artifactId>build-helper-maven-plugin</artifactId>-- <executions>-- <execution>-- <id>add-source</id>-- <phase>generate-sources</phase>-- <goals>-- <goal>add-source</goal>-- </goals>-- <configuration>-- <sources>-- <source>webapp/src</source>-- </sources>-- </configuration>-- </execution>-- </executions>-- </plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId>@@@ -257,14 -257,14 +242,15 @@@<artifactId>build-helper-maven-plugin</artifactId><executions><execution>-- <id>add-test-source</id>++ <id>add-sorlj-and-test-framework</id><phase>generate-test-sources</phase><goals><goal>add-test-source</goal></goals><configuration><sources>-- <source>test-framework</source>++ <source>../test-framework/src/java</source>++ <source>../solrj/src/test</source> <!-- solrj tests are run from solr-core --></sources></configuration></execution>diff --cc dev-tools/maven/solr/pom.xml.templateindex a6b2ae796a9,a6b2ae796a9..681601be182--- a/dev-tools/maven/solr/pom.xml.template+++ b/dev-tools/maven/solr/pom.xml.template@@@ -32,10 -32,10 +32,10 @@@<name>Apache Solr parent POM</name><description>Apache Solr parent POM</description><modules>-- <module>src</module>-- <module>src/solrj</module>-- <module>src/webapp</module>-- <module>src/test-framework</module>++ <module>core</module>++ <module>solrj</module>++ <module>webapp</module>++ <module>test-framework</module><module>contrib</module></modules><properties>diff --cc dev-tools/maven/solr/solrj/pom.xml.templateindex fc6a7c13c7b,fc6a7c13c7b..417e2838960--- a/dev-tools/maven/solr/solrj/pom.xml.template+++ b/dev-tools/maven/solr/solrj/pom.xml.template@@@ -24,7 -24,7 +24,7 @@@<groupId>org.apache.solr</groupId><artifactId>solr-parent</artifactId><version>@version@</version>-- <relativePath>../../pom.xml</relativePath>++ <relativePath>../pom.xml</relativePath></parent><groupId>org.apache.solr</groupId><artifactId>solr-solrj</artifactId>@@@ -32,8 -32,8 +32,8 @@@<name>Apache Solr Solrj</name><description>Apache Solr Solrj</description><properties>-- <module-directory>solr/src/solrj</module-directory>-- <build-directory>../../build/solrj</build-directory>++ <module-directory>solr/solrj</module-directory>++ <build-directory>../build/solr-solrj</build-directory></properties><dependencies><dependency>@@@ -41,6 -41,6 +41,12 @@@<artifactId>lucene-core</artifactId><version>${project.version}</version></dependency>++ <dependency>++ <groupId>org.apache.lucene</groupId>++ <artifactId>lucene-test-framework</artifactId>++ <version>${project.version}</version>++ <scope>test</scope>++ </dependency><dependency><groupId>org.apache.lucene</groupId><artifactId>lucene-analyzers-common</artifactId>@@@ -80,37 -80,37 +86,17 @@@</dependencies><build><directory>${build-directory}</directory>-- <outputDirectory>${build-directory}/classes</outputDirectory>-- <sourceDirectory>.</sourceDirectory>++ <outputDirectory>${build-directory}/classes/java</outputDirectory>++ <testOutputDirectory/>++ <sourceDirectory>src/java</sourceDirectory>++ <testSourceDirectory/><testResources/><plugins>-- <plugin>-- <groupId>org.codehaus.mojo</groupId>-- <artifactId>build-helper-maven-plugin</artifactId>-- <executions>-- <execution>-- <id>add-source</id>-- <phase>generate-sources</phase>-- <goals>-- <goal>add-source</goal>-- </goals>-- <configuration>-- <sources>-- <source>../common</source>-- </sources>-- </configuration>-- </execution>-- </executions>-- </plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><configuration>-- <!-- Solrj tests are run from the solr-core build; -->-- <!-- otherwise there would be a cyclic dependency, -->-- <!-- since Solrj's tests depend on solr-core, and -->-- <!-- solr-core depends on Solrj. -->-- <skipTests>true</skipTests>++ <skip>true</skip> <!-- Tests are run from solr-core module --></configuration></plugin></plugins>diff --cc dev-tools/maven/solr/test-framework/pom.xml.templateindex fd38c7e762b,fd38c7e762b..ee3bbb87a46--- a/dev-tools/maven/solr/test-framework/pom.xml.template+++ b/dev-tools/maven/solr/test-framework/pom.xml.template@@@ -24,7 -24,7 +24,7 @@@<groupId>org.apache.solr</groupId><artifactId>solr-parent</artifactId><version>@version@</version>-- <relativePath>../../pom.xml</relativePath>++ <relativePath>../pom.xml</relativePath></parent><groupId>org.apache.solr</groupId><artifactId>solr-test-framework</artifactId>@@@ -32,8 -32,8 +32,8 @@@<name>Apache Solr Test Framework</name><description>Apache Solr Test Framework</description><properties>-- <module-directory>solr/src/test-framework</module-directory>-- <build-directory>../../build</build-directory>++ <module-directory>solr/test-framework</module-directory>++ <build-directory>../build/solr-test-framework</build-directory></properties><dependencies><dependency>@@@ -53,8 -53,8 +53,10 @@@</dependencies><build><directory>${build-directory}</directory>-- <outputDirectory>${build-directory}/classes/test-framework</outputDirectory>-- <sourceDirectory>.</sourceDirectory>++ <outputDirectory>${build-directory}/classes/java</outputDirectory>++ <testOutputDirectory>${build-directory}/classes/test</testOutputDirectory>++ <sourceDirectory>src/java</sourceDirectory>++ <testSourceDirectory/><resources><resource><directory>.</directory>diff --cc dev-tools/maven/solr/webapp/pom.xml.templateindex 885efeb24be,885efeb24be..6044679a9a5--- a/dev-tools/maven/solr/webapp/pom.xml.template+++ b/dev-tools/maven/solr/webapp/pom.xml.template@@@ -24,7 -24,7 +24,7 @@@<groupId>org.apache.solr</groupId><artifactId>solr-parent</artifactId><version>@version@</version>-- <relativePath>../../pom.xml</relativePath>++ <relativePath>../pom.xml</relativePath></parent><groupId>org.apache.solr</groupId><artifactId>solr</artifactId>@@@ -32,8 -32,8 +32,8 @@@<name>Apache Solr Search Server</name><description>Apache Solr Search Server</description><properties>-- <module-directory>solr/src/webapp</module-directory>-- <build-directory>../../build/web</build-directory>++ <module-directory>solr/webapp</module-directory>++ <build-directory>../build</build-directory></properties><dependencies><dependency>@@@ -107,6 -107,6 +107,11 @@@</exclusion></exclusions></dependency>++ <dependency>++ <groupId>${project.groupId}</groupId>++ <artifactId>solr-solrj</artifactId>++ <version>${project.version}</version>++ </dependency><dependency><groupId>org.codehaus.woodstox</groupId><artifactId>wstx-asl</artifactId>diff --cc lucene/build.xmlindex 434e8f178e7,434e8f178e7..805734bb8da--- a/lucene/build.xml+++ b/lucene/build.xml@@@ -286,7 -286,7 +286,7 @@@<patternset refid="binary.build.dist.patterns"/></zipfileset></zip>-- <lucene-checksum file="${dist.dir}/lucene-${version}.zip"/>++ <make-checksums file="${dist.dir}/lucene-${version}.zip"/></target><!-- ================================================================== -->@@@ -311,7 -311,7 +311,7 @@@<gzip zipfile="${dist.dir}/lucene-${version}.tgz"src="${build.dir}/lucene-${version}.tar"/>-- <lucene-checksum file="${dist.dir}/lucene-${version}.tgz"/>++ <make-checksums file="${dist.dir}/lucene-${version}.tgz"/></target><!-- ================================================================== -->@@@ -340,70 -340,70 +340,21 @@@<mkdir dir="${maven.dist.dir}"/></target>---- <property name="svn.export.dir" location="${build.dir}/svn-export"/>--<!-- ================================================================== --><!-- Packages the sources from "svn export" with tar-gzip --><!-- ================================================================== -->-- <target name="package-tgz-src" depends="init, init-dist, svn-export-source"-- description="--> Generates the Lucene distribution as .tgz">++ <target name="package-tgz-src" depends="init, init-dist"++ description="--> Generates the Lucene source distribution from 'svn export' as .tgz"><property name="source.package.file"value="${dist.dir}/lucene-${version}-src.tgz"/><delete file="${source.package.file}"/>++ <svn-export-source source.dir="."/>++ <build-changes changes.src.dir="${svn.export.dir}/src/site/changes"++ changes.target.dir="${svn.export.dir}/docs/changes"/><tar tarfile="${source.package.file}" compression="gzip" longfile="gnu"><tarfileset prefix="lucene-${version}" dir="${svn.export.dir}"/></tar>-- <lucene-checksum file="${source.package.file}"/>-- </target>---- <!-- ================================================================== -->-- <!-- Runs "svn export" in build/svn-export/ with the same URL -->-- <!-- and revision as the current working copy. -->-- <!-- ================================================================== -->-- <target name="svn-export-source" depends="get-svn-info">-- <delete dir="${svn.export.dir}" includeemptydirs="true" failonerror="false"/>-- <mkdir dir="${build.dir}"/>-- <exec dir="." executable="${svn.exe}" failonerror="true">-- <arg value="export"/>-- <arg value="--native-eol"/>-- <arg value="LF"/>-- <arg value="-r"/>-- <arg value="${svn.Revision}"/>-- <arg value="${svn.URL}"/>-- <arg value="${svn.export.dir}"/>-- </exec>-- <build-changes changes.src.dir="${svn.export.dir}/src/site/changes" changes.target.dir="${svn.export.dir}/docs/changes"/>-- </target>---- <!-- ================================================================== -->-- <!-- Populates properties svn.URL and svn.Revision using "svn info". -->-- <!-- ================================================================== -->-- <target name="get-svn-info" depends="check-svn">-- <exec dir="." executable="${svn.exe}" outputproperty="svn.info" failonerror="true">-- <arg value="info"/>-- </exec>-- <loadproperties>-- <propertyresource name="svn.info"/>-- <filterchain>-- <linecontainsregexp>-- <regexp pattern="(URL|Revision):"/>-- </linecontainsregexp>-- <replacestring from=": " to="="/>-- <prefixlines prefix="svn."/>-- </filterchain>-- </loadproperties>-- </target>---- <target name="check-svn">-- <sequential>-- <exec dir="." executable="${svnversion.exe}" outputproperty="svn.ver"/>-- <fail message="A subversion checkout is required for this target">-- <condition>-- <equals arg1="${svn.ver}" arg2="exported"/>-- </condition>-- </fail>-- </sequential>++ <make-checksums file="${source.package.file}"/></target><!-- ================================================================== -->@@@ -413,28 -413,28 +364,8 @@@<target name="dist-all" depends="dist, dist-src"/>-- <property name="rc" value="rc0"/>-- <property name="remote.staging.dir" value="public_html/staging_area/${rc}/${version}"/>-- <property name="keyfile" value="${user.home}/.ssh/id_rsa"/>-- <property name="scp.user" value="${user.name}"/>-- <!--keys.dir is the location of the https://svn.apache.org/repos/asf/lucene/java/dist/ directory-->-- <property name="keys.dir" value="${common.dir}/../../dist"/><target name="copy-to-stage">-- <sshexec host="people.apache.org"-- username="${scp.user}"-- keyfile="${keyfile}"-- command="mkdir -p ${remote.staging.dir}"/>-- <echo>Uploading artifacts to ${scp.user}@people.apache.org:${remote.staging.dir}</echo>-- <scp todir="${scp.user}@people.apache.org:${remote.staging.dir}"-- username="${scp.user}"-- keyfile="${keyfile}"-- verbose="true"-- >-- <fileset dir="dist"/>-- <fileset dir="${keys.dir}">-- <include name="KEYS"/>-- </fileset>-- </scp>++ <copy-to-stage-macro artifacts.dir="${dist.dir}"/></target><target name="prepare-release" depends="clean, dist-all, generate-maven-artifacts, sign-artifacts"/>@@@ -477,43 -477,43 +408,8 @@@<!-- ================================================================== --><!-- support for signing the artifacts using gpg --><!-- ================================================================== -->-- <target name="clean-dist-signatures">-- <delete failonerror="false">-- <fileset dir="${dist.dir}">-- <include name="**/*.asc"/>-- </fileset>-- </delete>-- </target>---- <target name="sign-artifacts" depends="clean-dist-signatures">-- <available property="gpg.input.handler" classname="org.apache.tools.ant.input.SecureInputHandler"-- value="org.apache.tools.ant.input.SecureInputHandler"/>-- <!--else:--><property name="gpg.input.handler" value="org.apache.tools.ant.input.DefaultInputHandler"/>-- <input message="Enter GPG keystore password: >" addproperty="gpg.passphrase">-- <handler classname="${gpg.input.handler}" />-- </input>---- <apply executable="${gpg.exe}" inputstring="${gpg.passphrase}"-- dest="${dist.dir}" type="file" maxparallel="1" verbose="yes">-- <arg value="--passphrase-fd"/>-- <arg value="0"/>-- <arg value="--batch"/>-- <arg value="--armor"/>-- <arg value="--default-key"/>-- <arg value="${gpg.key}"/>-- <arg value="--output"/>-- <targetfile/>-- <arg value="--detach-sig"/>-- <srcfile/>---- <fileset dir="${dist.dir}">-- <include name="**/*.jar"/>-- <include name="**/*.zip"/>-- <include name="**/*.tgz"/>-- <include name="**/*.pom"/>-- </fileset>-- <globmapper from="*" to="*.asc"/>-- </apply>++ <target name="sign-artifacts">++ <sign-artifacts-macro artifacts.dir="${dist.dir}"/></target><!-- ================================================================== -->@@@ -602,19 -602,19 +498,6 @@@</exec></target>-- <macrodef name="contrib-crawl">-- <attribute name="target" default=""/>-- <attribute name="failonerror" default="true"/>-- <sequential>-- <subant target="@{target}" failonerror="@{failonerror}">-- <property name="core.compiled" value="true"/>-- <fileset dir="."-- includes="contrib/*/build.xml"-- />-- </subant>-- </sequential>-- </macrodef>--<target name="build-contrib" depends="compile-test"description="Builds all contrib modules and their tests"><contrib-crawl target="build-artifacts-and-tests"/>@@@ -624,16 -624,16 +507,6 @@@<contrib-crawl target="test" failonerror="true"/></target>-- <!-- Macro for building checksum files -->-- <macrodef name="lucene-checksum">-- <attribute name="file"/>-- <sequential>-- <echo>Building checksums for '@{file}'</echo>-- <checksum file="@{file}" algorithm="md5" format="MD5SUM" forceoverwrite="yes" readbuffersize="65536"/>-- <checksum file="@{file}" algorithm="sha1" format="MD5SUM" forceoverwrite="yes" readbuffersize="65536"/>-- </sequential>-- </macrodef>--<!--compile changes.txt into an html file-->diff --cc lucene/common-build.xmlindex a026d9f97c5,2af53feb602..ee40b752b7b--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@@ -16,7 -16,7 +16,7 @@@See the License for the specific language governing permissions andlimitations under the License.-->--++<project name="common" xmlns:artifact="antlib:org.apache.maven.artifact.ant"><description>This file is designed for importing into a main build file, and not intended@@@ -26,7 -26,7 +26,7 @@@<dirname file="${ant.file.common}" property="common.dir"/><property name="dev-tools.dir" value="${common.dir}/../dev-tools"/><property name="prettify.dir" value="${common.dir}/src/tools/prettify"/>-- <property name="maven.build.dir" value="${common.dir}/build/maven"/>++ <property name="maven.build.dir" value="${build.dir}/maven"/><!-- Give user a chance to override without editing this file(and without typing -D each time it compiles it -->@@@ -39,6 -39,6 +39,8 @@@<format property="current.year" pattern="yyyy"/><format property="DSTAMP" pattern="yyyy-MM-dd"/><format property="TSTAMP" pattern="HH:mm:ss"/>++ <!-- datetime format that is safe to treat as part of a dotted version -->++ <format property="dateversion" pattern="yyyy.MM.dd.HH.mm.ss" /></tstamp><property name="name" value="${ant.project.name}"/>@@@ -201,6 -201,6 +203,11 @@@</and></condition>++ <propertyset id="uptodate.and.compiled.properties" dynamic="true">++ <propertyref regex=".*\.uptodate$$"/>++ <propertyref regex=".*\.compiled$$"/>++ </propertyset>++<target name="clean"description="Removes contents of build and dist directories"><delete dir="${build.dir}"/>@@@ -325,13 -325,13 +332,14 @@@<macrodef name="m2-deploy" description="Builds a Maven artifact"><element name="artifact-attachments" optional="yes"/><attribute name="pom.xml" default="pom.xml"/>++ <attribute name="jar.file" default="${build.dir}/${final.name}.jar"/><sequential><artifact:install-provider artifactId="wagon-ssh" version="1.0-beta-7"/><artifact:pom id="maven.project" file="@{pom.xml}"/>-- <artifact:deploy file="${build.dir}/${maven.project.build.finalName}.jar">++ <artifact:deploy file="@{jar.file}"><artifact-attachments/><remoteRepository url="${m2.repository.url}">- <authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}"/>+ <authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}" password="${m2.repository.password}"/></remoteRepository><pom refid="maven.project"/></artifact:deploy>@@@ -342,16 -342,16 +350,16 @@@<attribute name="pom.xml"/><attribute name="jar.file"/><sequential>-- <copy file="@{pom.xml}" tofile="${maven.build.dir}/@{pom.xml}">++ <copy file="@{pom.xml}" tofile="${maven.build.dir}/pom.xml"><filterset begintoken="@" endtoken="@"><filter token="version" value="${version}"/></filterset></copy><artifact:install-provider artifactId="wagon-ssh" version="1.0-beta-7"/>-- <artifact:pom id="maven.project" file="${maven.build.dir}/@{pom.xml}" />++ <artifact:pom id="maven.project" file="${maven.build.dir}/pom.xml" /><artifact:deploy file="@{jar.file}"><remoteRepository url="${m2.repository.url}">- <authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}"/>+ <authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}" password="${m2.repository.password}"/></remoteRepository><pom refid="maven.project"/></artifact:deploy>@@@ -359,35 -359,35 +367,58 @@@</macrodef><macrodef name="build-manifest" description="Builds a manifest file">-- <attribute name="title" default="Lucene Search Engine: ${ant.project.name}" />-- <sequential>++ <attribute name="title"/>++ <attribute name="implementation.title"/>++ <attribute name="spec.version"/>++ <sequential><manifest file="${manifest.file}">++ <!--++ http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#JAR%20Manifest++ http://java.sun.com/j2se/1.5.0/docs/guide/versioning/spec/versioning2.html++ http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Package.html++ http://java.sun.com/j2se/1.5.0/docs/api/java/util/jar/package-summary.html++ http://java.sun.com/developer/Books/javaprogramming/JAR/basics/manifest.html++ -->++ <!-- Don't set 'Manifest-Version' it identifies the version of the++ manifest file format, and should always be 1.0 (the default)++++ Don't set 'Created-by' attribute, its purpose is++ to identify the version of java used to build the jar,++ which ant will do by default.++++ Ant will happily override these with bogus strings if you++ tell it to, so don't.++++ NOTE: we don't use section info because all of our manifest data++ applies to the entire jar/war ... no package specific info.++ -->++ <attribute name="Extension-Name" value="@{implementation.title}"/><attribute name="Specification-Title" value="@{title}"/>-- <!-- spec version must match "digit+{.digit+}*" -->-- <attribute name="Specification-Version" value="${spec.version}"/>-- <attribute name="Specification-Vendor"-- value="The Apache Software Foundation"/>-- <attribute name="Implementation-Title" value="org.apache.lucene"/>-- <!-- impl version can be any string -->-- <attribute name="Implementation-Version"-- value="${version} ${svnversion} - ${DSTAMP} ${TSTAMP}"/>-- <attribute name="Implementation-Vendor"-- value="The Apache Software Foundation"/>-- <attribute name="X-Compile-Source-JDK"-- value="${javac.source}"/>-- <attribute name="X-Compile-Target-JDK"-- value="${javac.target}"/>-- </manifest>-- </sequential>++ <!-- spec version must match "digit+{.digit+}*" -->++ <attribute name="Specification-Version" value="@{spec.version}"/>++ <attribute name="Specification-Vendor"++ value="The Apache Software Foundation"/>++ <attribute name="Implementation-Title" value="@{implementation.title}"/>++ <!-- impl version can be any string -->++ <attribute name="Implementation-Version"++ value="${version} ${svnversion} - ${user.name} - ${DSTAMP} ${TSTAMP}"/>++ <attribute name="Implementation-Vendor"++ value="The Apache Software Foundation"/>++ <attribute name="X-Compile-Source-JDK" value="${javac.source}"/>++ <attribute name="X-Compile-Target-JDK" value="${javac.target}"/>++ </manifest>++ </sequential></macrodef><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"/>++ <attribute name="excludes" default="**/pom.xml,**/*.iml"/>++ <attribute name="metainf.source.dir" default="${common.dir}"/>++ <attribute name="implementation.title" default="org.apache.lucene"/>++ <attribute name="spec.version" default="${spec.version}"/>++ <element name="nested" optional="true" implicit="true"/><sequential><!-- If possible, include the svnversion --><exec dir="." executable="${svnversion.exe}"@@@ -395,21 -395,21 +426,16 @@@<arg line="."/></exec>-- <build-manifest title="@{title}"/>++ <build-manifest title="@{title}"++ implementation.title="@{implementation.title}"++ spec.version="@{spec.version}"/>-- <jar-- destfile="@{destfile}"-- basedir="@{basedir}"-- manifest="${manifest.file}"-- excludes="@{excludes}">-- <manifest>-- <manifest-attributes/>-- </manifest>-- <metainf dir="${common.dir}">-- <include name="LICENSE.txt"/>-- <include name="NOTICE.txt"/>-- </metainf>-- <metainf-includes/>++ <jar destfile="@{destfile}"++ basedir="@{basedir}"++ manifest="${manifest.file}"++ excludes="@{excludes}">++ <metainf dir="@{metainf.source.dir}" includes="LICENSE.txt,NOTICE.txt"/>++ <nested /></jar></sequential></macrodef>@@@ -776,7 -770,7 +802,7 @@@<record name="@{destdir}/log_javadoc.txt" action="start" append="no"/><javadocoverview="@{overview}"-- packagenames="org.apache.lucene.*"++ packagenames="org.apache.lucene.*,org.apache.solr.*"destdir="@{destdir}"access="${javadoc.access}"encoding="${build.encoding}"@@@ -830,6 -824,6 +856,16 @@@</sequential></macrodef>++ <macrodef name="contrib-crawl">++ <attribute name="target" default=""/>++ <attribute name="failonerror" default="true"/>++ <sequential>++ <subant target="@{target}" failonerror="@{failonerror}" inheritall="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ <fileset dir="." includes="contrib/*/build.xml"/>++ </subant>++ </sequential>++ </macrodef><!-- VALIDATION work -->@@@ -851,10 -845,10 +887,127 @@@<target name="validate-lucene" depends="check-legal-lucene" unless="validated-lucene"/>--<!-- Generic placeholder target for if we add other validation tasks --><target name="validate" depends="validate-lucene"/>++ <property name="svn.export.dir" location="${build.dir}/svn-export"/>++ <macrodef name="svn-export-source"++ description="Runs 'svn export' with the same URL and revision as the current working copy.">++ <attribute name="source.dir"/>++ <sequential>++ <delete dir="${svn.export.dir}" includeemptydirs="true" failonerror="false"/>++ <get-svn-info directory="@{source.dir}"/>++ <exec dir="@{source.dir}" executable="${svn.exe}" failonerror="true">++ <arg value="export"/>++ <arg value="--native-eol"/>++ <arg value="LF"/>++ <arg value="-r"/>++ <arg value="${svn.Revision}"/>++ <arg value="${svn.URL}"/>++ <arg value="${svn.export.dir}"/>++ </exec>++ </sequential>++ </macrodef>+++ <macrodef name="get-svn-info"++ description="Populates properties svn.URL and svn.Revision using 'svn info'.">++ <attribute name="directory"/>++ <sequential>++ <exec dir="." executable="${svnversion.exe}" outputproperty="svn.ver"/>++ <fail message="A subversion checkout is required for this target">++ <condition>++ <equals arg1="${svn.ver}" arg2="exported"/>++ </condition>++ </fail>++ <exec dir="@{directory}" executable="${svn.exe}" outputproperty="svn.info" failonerror="true">++ <arg value="info"/>++ </exec>++ <loadproperties>++ <propertyresource name="svn.info"/>++ <filterchain>++ <linecontainsregexp>++ <regexp pattern="(URL|Revision):"/>++ </linecontainsregexp>++ <replacestring from=": " to="="/>++ <prefixlines prefix="svn."/>++ </filterchain>++ </loadproperties>++ </sequential>++ </macrodef>++++ <macrodef name="make-checksums" description="Macro for building checksum files">++ <attribute name="file"/>++ <sequential>++ <echo>Building checksums for '@{file}'</echo>++ <checksum file="@{file}" algorithm="md5" format="MD5SUM" forceoverwrite="yes" readbuffersize="65536"/>++ <checksum file="@{file}" algorithm="sha1" format="MD5SUM" forceoverwrite="yes" readbuffersize="65536"/>++ </sequential>++ </macrodef>++++ <macrodef name="sign-artifacts-macro">++ <attribute name="artifacts.dir"/>++ <sequential>++ <delete failonerror="false">++ <fileset dir="@{artifacts.dir}">++ <include name="**/*.asc"/>++ </fileset>++ </delete>++++ <available property="gpg.input.handler" classname="org.apache.tools.ant.input.SecureInputHandler"++ value="org.apache.tools.ant.input.SecureInputHandler"/>++ <!--else:--><property name="gpg.input.handler" value="org.apache.tools.ant.input.DefaultInputHandler"/>++ <input message="Enter GPG keystore password: >" addproperty="gpg.passphrase">++ <handler classname="${gpg.input.handler}" />++ </input>++++ <apply executable="${gpg.exe}" inputstring="${gpg.passphrase}"++ dest="@{artifacts.dir}" type="file" maxparallel="1" verbose="yes">++ <arg value="--passphrase-fd"/>++ <arg value="0"/>++ <arg value="--batch"/>++ <arg value="--armor"/>++ <arg value="--default-key"/>++ <arg value="${gpg.key}"/>++ <arg value="--output"/>++ <targetfile/>++ <arg value="--detach-sig"/>++ <srcfile/>++++ <fileset dir="@{artifacts.dir}">++ <include name="**/*.jar"/>++ <include name="**/*.zip"/>++ <include name="**/*.tgz"/>++ <include name="**/*.pom"/>++ </fileset>++ <globmapper from="*" to="*.asc"/>++ </apply>++ </sequential>++ </macrodef>+++ <property name="rc" value="rc0"/>++ <property name="remote.staging.dir" value="public_html/staging_area/${rc}/${version}"/>++ <property name="keyfile" value="${user.home}/.ssh/id_rsa"/>++ <property name="scp.user" value="${user.name}"/>++ <!--keys.dir is the location of the https://svn.apache.org/repos/asf/lucene/java/dist/ directory-->++ <property name="keys.dir" value="${common.dir}/../../dist"/>++ <macrodef name="copy-to-stage-macro">++ <attribute name="artifacts.dir"/>++ <sequential>++ <sshexec host="people.apache.org"++ username="${scp.user}"++ keyfile="${keyfile}"++ command="mkdir -p ${remote.staging.dir}"/>++ <echo>Uploading artifacts to ${scp.user}@people.apache.org:${remote.staging.dir}</echo>++ <scp todir="${scp.user}@people.apache.org:${remote.staging.dir}"++ username="${scp.user}"++ keyfile="${keyfile}"++ verbose="true">++ <fileset dir="${artifacts.dir}"/>++ <fileset dir="${keys.dir}">++ <include name="KEYS"/>++ </fileset>++ </scp>++ </sequential>++ </macrodef></project>diff --cc lucene/common-build.xml.origindex 00000000000,00000000000..6ee084ca228new file mode 100644--- /dev/null+++ b/lucene/common-build.xml.orig@@@ -1,0 -1,0 +1,860 @@@++<?xml version="1.0"?>++++<!--++ 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.++ -->++++<project name="common" xmlns:artifact="antlib:org.apache.maven.artifact.ant">++ <description>++ This file is designed for importing into a main build file, and not intended++ for standalone use.++ </description>++++ <dirname file="${ant.file.common}" property="common.dir"/>++ <property name="dev-tools.dir" value="${common.dir}/../dev-tools"/>++ <property name="prettify.dir" value="${common.dir}/src/tools/prettify"/>++ <property name="maven.build.dir" value="${common.dir}/build/maven"/>++++ <!-- Give user a chance to override without editing this file++ (and without typing -D each time it compiles it -->++ <property file="${user.home}/lucene.build.properties"/>++ <property file="${user.home}/build.properties"/>++ <property file="${basedir}/build.properties"/>++ <property file="${common.dir}/build.properties"/>++++ <tstamp>++ <format property="current.year" pattern="yyyy"/>++ <format property="DSTAMP" pattern="yyyy-MM-dd"/>++ <format property="TSTAMP" pattern="HH:mm:ss"/>++ </tstamp>++++ <property name="name" value="${ant.project.name}"/>++ <property name="Name" value="Lucene"/>++ <property name="dev.version" value="4.0-SNAPSHOT"/>++ <property name="tests.luceneMatchVersion" value="4.0"/>++ <property name="version" value="${dev.version}"/>++ <property name="spec.version" value="${version}"/>++ <property name="year" value="2000-${current.year}"/>++ <property name="final.name" value="lucene-${name}-${version}"/>++++ <property name="junit.jar" value="junit-4.7.jar"/>++ <property name="junit-location.jar" value="${common.dir}/lib/${junit.jar}"/>++ <path id="junit-path">++ <pathelement location="${junit-location.jar}"/>++ </path>++++ <path id="ant-path">++ <fileset dir="${common.dir}/lib" includes="ant-*.jar"/>++ </path>++++ <path id="tools.runtime.classpath">++ <pathelement location="${common.dir}/build/classes/tools"/>++ </path>++++ <path id="maven-ant-tasks.classpath">++ <fileset dir="${common.dir}/lib">++ <include name="maven-ant-tasks-*.jar"/>++ </fileset>++ </path>++++ <!-- default arguments to pass to JVM executing tests -->++ <property name="testmethod" value=""/>++ <property name="args" value=""/>++ <property name="tests.threadspercpu" value="1" />++ <condition property="tests.sequential">++ <or>++ <isset property="testcase"/>++ <equals arg1="${tests.threadspercpu}" arg2="0"/>++ </or>++ </condition>++ <property name="tests.multiplier" value="1" />++ <property name="tests.codec" value="randomPerField" />++ <property name="tests.codecprovider" value="random" />++ <property name="tests.locale" value="random" />++ <property name="tests.timezone" value="random" />++ <property name="tests.directory" value="random" />++ <property name="tests.linedocsfile" value="europarl.lines.txt.gz" />++ <property name="tests.iter" value="1" />++ <property name="tests.iter.min" value="${tests.iter}" />++ <property name="tests.seed" value="random" />++ <property name="tests.loggingfile" value="/dev/null"/>++ <property name="tests.nightly" value="false" />++++ <property name="javac.deprecation" value="off"/>++ <property name="javac.debug" value="on"/>++ <property name="javac.source" value="1.6"/>++ <property name="javac.target" value="1.6"/>++ <property name="javac.source.backwards" value="1.6"/>++ <property name="javac.target.backwards" value="1.6"/>++ <!-- clover wants to run with -lib, otherwise we prefer a repeatable++ classpath -->++ <property name="javac.includeAntRuntime" value="${run.clover}"/>++++ <property name="javadoc.link" value="http://download.oracle.com/javase/6/docs/api/"/>++ <property name="javadoc.access" value="protected"/>++ <property name="javadoc.charset" value="utf-8"/>++ <property name="javadoc.dir" value="${common.dir}/build/docs/api"/>++ <property name="javadoc.maxmemory" value="512m" />++ <!-- Javadoc classpath -->++ <path id="javadoc.classpath">++ <path refid="classpath"/>++ <pathelement location="${ant.home}/lib/ant.jar"/>++ <fileset dir=".">++ <exclude name="build/**/*.jar"/>++ <include name="**/lib/*.jar"/>++ </fileset>++ </path>++++ <property name="changes.src.dir" value="${common.dir}/src/site/changes"/>++ <property name="changes.target.dir" value="${common.dir}/build/docs/changes"/>++++ <property name="project.name" value="site"/> <!-- todo: is this used by anakia or something else? -->++ <property name="build.encoding" value="utf-8"/>++++ <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"/>++ <!-- Needed in case a contrib needs the original build, also for compile-tools to be called from contrib -->++ <property name="common.build.dir" location="${common.dir}/build"/>++ <property name="dist.dir" location="dist"/>++ <property name="maven.dist.dir" location="dist/maven"/>++ <property name="m2.repository.url" value="file://${maven.dist.dir}"/>++ <property name="m2.repository.private.key" value="${user.home}/.ssh/id_dsa"/>++++ <property name="javacc.home" location="${common.dir}"/>++ <property name="jflex.home" location="${common.dir}"/>++++ <path id="jflex.classpath">++ <fileset dir="${jflex.home}/">++ <!-- for a JFlex trunk checkout: -->++ <include name="jflex/target/*.jar"/>++ <!-- for a JFlex distribution (not yet available): -->++ <include name="lib/*.jar"/>++ </fileset>++ </path>++++ <path id="javacc.classpath">++ <fileset dir="${javacc.home}/">++ <include name="bin/lib/*.jar"/>++ </fileset>++ </path>++++ <property name="backwards.dir" location="backwards"/>++ <property name="build.dir.backwards" location="${build.dir}/backwards"/>++++ <property name="junit.output.dir" location="${build.dir}/test"/>++ <property name="junit.output.dir.backwards" location="${build.dir.backwards}/test"/>++ <property name="junit.reports" location="${build.dir}/test/reports"/>++ <property name="junit.reports.backwards" location="${build.dir.backwards}/test/reports"/>++ <property name="junit.excludes" value=""/>++ <condition property="junit.details.formatter"++ value="org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"++ else="org.apache.lucene.util.LuceneJUnitResultFormatter">++ <isset property="tests.sequential"/>++ </condition>++ <property name="junit.parallel.selector" value="org.apache.lucene.util.LuceneJUnitDividingSelector"/>++++ <property name="manifest.file" location="${common.dir}/build/MANIFEST.MF"/>++++ <!--++ we attempt to exec svnversion to get details build information++ for jar manifests. this property can be set at runtime to an++ explicit path as needed, or ant will just try to find it in the++ default PATH. (this is useful for Hudson)++ -->++ <property name="svnversion.exe" value="svnversion" />++ <property name="svn.exe" value="svn" />++++ <property name="hg.exe" value="hg" />++ <property name="moman.url" value="https://bitbucket.org/jpbarrette/moman" />++ <property name="moman.rev" value="115" />++ <property name="python.exe" value="python" />++++ <property name="gpg.exe" value="gpg" />++ <property name="gpg.key" value="CODE SIGNING KEY" />++++ <property name="clover.db.dir" location="${common.dir}/build/test/clover/db"/>++ <property name="clover.report.dir" location="${common.dir}/build/test/clover/reports"/>++++ <available++ property="clover.present"++ classname="com.cenqua.clover.tasks.CloverReportTask"++ />++ <condition property="clover.enabled">++ <and>++ <isset property="run.clover"/>++ <isset property="clover.present"/>++ </and>++ </condition>++++ <target name="clean"++ description="Removes contents of build and dist directories">++ <delete dir="${build.dir}"/>++ <delete dir="${dist.dir}"/>++ <delete file="velocity.log"/>++ </target>++++ <!-- TODO: maybe make JavaCC checking specific to only the projects++ that use it (Lucene core and contrib/misc++ -->++ <target name="javacc-uptodate-check">++ <uptodate property="javacc.files.uptodate">++ <srcfiles dir="${src.dir}" includes="**/*.jj" />++ <mapper type="glob" from="*.jj" to="*.java"/>++ </uptodate>++ </target>++++ <target name="javacc-notice" depends="javacc-uptodate-check" unless="javacc.files.uptodate">++ <echo>++ One or more of the JavaCC .jj files is newer than its corresponding++ .java file. Run the "javacc" target to regenerate the artifacts.++ </echo>++ </target>++++ <target name="init">++ <!-- currently empty -->++ </target>++++ <target name="jflex-uptodate-check">++ <uptodate property="jflex.files.uptodate">++ <srcfiles dir="${src.dir}" includes="**/*.jflex" />++ <mapper type="glob" from="*.jflex" to="*.java"/>++ </uptodate>++ </target>++++ <target name="jflex-notice" depends="jflex-uptodate-check" unless="jflex.files.uptodate">++ <echo>++ One or more of the JFlex .jflex files is newer than its corresponding++ .java file. Run the "jflex" target to regenerate the artifacts.++ </echo>++ </target>++++ <target name="javacc-check">++ <available property="javacc.present" classname="org.javacc.parser.Main">++ <classpath refid="javacc.classpath"/>++ </available>++ <fail unless="javacc.present">++ ##################################################################++ JavaCC not found.++ JavaCC Home: ${javacc.home}++++ Please download and install JavaCC 4.1 from:++++ <http://javacc.dev.java.net>++++ Then, create a build.properties file either in your home++ directory, or within the Lucene directory and set the javacc.home++ property to the path where JavaCC is installed. For example,++ if you installed JavaCC in /usr/local/java/javacc-4.1, then set the++ javacc.home property to:++++ javacc.home=/usr/local/java/javacc-4.1++++ If you get an error like the one below, then you have not installed++ things correctly. Please check all your paths and try again.++++ java.lang.NoClassDefFoundError: org.javacc.parser.Main++ ##################################################################++ </fail>++++ </target>++++ <target name="jflex-check">++ <available property="jflex.present" classname="jflex.anttask.JFlexTask">++ <classpath refid="jflex.classpath"/>++ </available>++ <fail unless="jflex.present">++ ##################################################################++ JFlex not found.++ JFlex Home: ${jflex.home}++++ Please install the jFlex 1.5 version (currently not released)++ from its SVN repository:++++ svn co http://jflex.svn.sourceforge.net/svnroot/jflex/trunk jflex++ cd jflex++ mvn install++++ Then, create a build.properties file either in your home++ directory, or within the Lucene directory and set the jflex.home++ property to the path where the JFlex trunk checkout is located++ (in the above example its the directory called "jflex").++++ ##################################################################++ </fail>++ </target>++++ <target name="compile-core" depends="init, clover"++ description="Compiles core classes">++ <compile++ srcdir="${src.dir}"++ destdir="${build.dir}/classes/java">++ <classpath refid="classpath"/>++ </compile>++++ <!-- Copy the resources folder (if existent) -->++ <copy todir="${build.dir}/classes/java" includeEmptyDirs="false">++ <globmapper from="resources/*" to="*" handledirsep="yes"/>++ <fileset dir="src" includes="resources/**"/>++ </copy>++ </target>++++ <target name="compile" depends="compile-core">++ <!-- convenience target to compile core -->++ </target>++++ <target name="jar-core" depends="compile-core"++ description="Packages the JAR file">++ <jarify/>++ </target>++++ <macrodef name="m2-deploy" description="Builds a Maven artifact">++ <element name="artifact-attachments" optional="yes"/>++ <attribute name="pom.xml" default="pom.xml"/>++ <sequential>++ <artifact:install-provider artifactId="wagon-ssh" version="1.0-beta-7"/>++ <artifact:pom id="maven.project" file="@{pom.xml}"/>++ <artifact:deploy file="${build.dir}/${maven.project.build.finalName}.jar">++ <artifact-attachments/>++ <remoteRepository url="${m2.repository.url}">++ <authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}" password="${m2.repository.password}"/>++ </remoteRepository>++ <pom refid="maven.project"/>++ </artifact:deploy>++ </sequential>++ </macrodef>++++ <macrodef name="m2-deploy-with-pom-template" description="Builds a Maven artifact given a POM template">++ <attribute name="pom.xml"/>++ <attribute name="jar.file"/>++ <sequential>++ <copy file="@{pom.xml}" tofile="${maven.build.dir}/@{pom.xml}">++ <filterset begintoken="@" endtoken="@">++ <filter token="version" value="${version}"/>++ </filterset>++ </copy>++ <artifact:install-provider artifactId="wagon-ssh" version="1.0-beta-7"/>++ <artifact:pom id="maven.project" file="${maven.build.dir}/@{pom.xml}" />++ <artifact:deploy file="@{jar.file}">++ <remoteRepository url="${m2.repository.url}">++ <authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}" password="${m2.repository.password}"/>++ </remoteRepository>++ <pom refid="maven.project"/>++ </artifact:deploy>++ </sequential>++ </macrodef>++++ <macrodef name="build-manifest" description="Builds a manifest file">++ <attribute name="title" default="Lucene Search Engine: ${ant.project.name}" />++ <sequential>++ <manifest file="${manifest.file}">++ <attribute name="Specification-Title" value="@{title}"/>++ <!-- spec version must match "digit+{.digit+}*" -->++ <attribute name="Specification-Version" value="${spec.version}"/>++ <attribute name="Specification-Vendor"++ value="The Apache Software Foundation"/>++ <attribute name="Implementation-Title" value="org.apache.lucene"/>++ <!-- impl version can be any string -->++ <attribute name="Implementation-Version"++ value="${version} ${svnversion} - ${DSTAMP} ${TSTAMP}"/>++ <attribute name="Implementation-Vendor"++ value="The Apache Software Foundation"/>++ <attribute name="X-Compile-Source-JDK"++ value="${javac.source}"/>++ <attribute name="X-Compile-Target-JDK"++ value="${javac.target}"/>++ </manifest>++ </sequential>++ </macrodef>++++ <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>++ <!-- If possible, include the svnversion -->++ <exec dir="." executable="${svnversion.exe}"++ outputproperty="svnversion" failifexecutionfails="false">++ <arg line="."/>++ </exec>++++ <build-manifest title="@{title}"/>++++ <jar++ destfile="@{destfile}"++ basedir="@{basedir}"++ manifest="${manifest.file}"++ excludes="@{excludes}">++ <manifest>++ <manifest-attributes/>++ </manifest>++ <metainf dir="${common.dir}">++ <include name="LICENSE.txt"/>++ <include name="NOTICE.txt"/>++ </metainf>++ <metainf-includes/>++ </jar>++ </sequential>++ </macrodef>++++ <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-tools">++ <compile++ srcdir="${common.dir}/src/tools/java"++ destdir="${common.build.dir}/classes/tools">++ <classpath refid="classpath"/>++ </compile>++ </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>++++ <property name="tests.verbose" value="false"/>++++ <macrodef name="compile-test-macro" description="Compiles junit tests.">++ <attribute name="srcdir"/>++ <attribute name="destdir"/>++ <attribute name="test.classpath"/>++ <attribute name="javac.source" default="${javac.source}"/>++ <attribute name="javac.target" default="${javac.target}"/>++ <sequential>++ <compile++ srcdir="@{srcdir}"++ destdir="@{destdir}"++ javac.source="@{javac.source}"++ javac.target="@{javac.source}">++ <classpath refid="@{test.classpath}"/>++ </compile>++++ <!-- Copy any data files present to the classpath -->++ <copy todir="@{destdir}">++ <fileset dir="@{srcdir}" excludes="**/*.java"/>++ </copy>++ </sequential>++ </macrodef>++++ <macrodef name="test-macro" description="Executes junit tests.">++ <attribute name="junit.output.dir" default="${junit.output.dir}"/>++ <attribute name="junit.classpath" default="junit.classpath"/>++ <attribute name="dataDir" default="${tests.src.dir}"/>++ <attribute name="tempDir" default="${build.dir}/test"/>++ <attribute name="threadNum" default="1"/>++ <attribute name="threadTotal" default="1"/>++++ <sequential>++ <condition property="runall">++ <not><or>++ <isset property="testcase" />++ <isset property="testpackage" />++ <isset property="testpackageroot" />++ </or></not>++ </condition>++ <!-- <mkdir dir="@{tempDir}/@{pattern}"/>++ This is very loud and obnoxious. abuse touch instead for a "quiet" mkdir++ -->++ <touch file="@{tempDir}/@{threadNum}/quiet.ant" verbose="false" mkdirs="true"/>++ <junit printsummary="off" haltonfailure="no" maxmemory="512M" tempdir="@{tempDir}/@{threadNum}"++ errorProperty="tests.failed" failureProperty="tests.failed" forkmode="perBatch" dir="@{tempDir}/@{threadNum}">++ <classpath refid="@{junit.classpath}"/>++ <assertions>++ <enable package="org.apache.lucene"/>++ <enable package="org.apache.solr"/>++ </assertions>++++ <jvmarg line="${args}"/>++++ <!-- allow tests to control debug prints -->++ <sysproperty key="tests.verbose" value="${tests.verbose}"/>++ <!-- set the codec tests should run with -->++ <sysproperty key="tests.codec" value="${tests.codec}"/>++ <!-- set the codec provider tests should run with -->++ <sysproperty key="tests.codecprovider" value="${tests.codecprovider}"/>++ <!-- set the locale tests should run with -->++ <sysproperty key="tests.locale" value="${tests.locale}"/>++ <!-- set the timezone tests should run with -->++ <sysproperty key="tests.timezone" value="${tests.timezone}"/>++ <!-- set the directory tests should run with -->++ <sysproperty key="tests.directory" value="${tests.directory}"/>++ <!-- set the line file source for oal.util.LineFileDocs -->++ <sysproperty key="tests.linedocsfile" value="${tests.linedocsfile}"/>++ <!-- set the number of times tests should run -->++ <sysproperty key="tests.iter" value="${tests.iter}"/>++ <!-- set the minimum number of times tests should run unless failure -->++ <sysproperty key="tests.iter.min" value="${tests.iter.min}"/>++ <!-- set the test seed -->++ <sysproperty key="tests.seed" value="${tests.seed}"/>++ <!-- set the Version that tests should run against -->++ <sysproperty key="tests.luceneMatchVersion" value="${tests.luceneMatchVersion}"/>++ <!-- for lucene we can be strict, and we don't want false fails even across methods++ make this a param so lucene-core/contrib tests use it only?++ <sysproperty key="tests.cleanthreads" value="perMethod"/>++ -->++ <sysproperty key="tests.cleanthreads" value="perClass"/>++ <!-- logging config file -->++ <sysproperty key="java.util.logging.config.file" value="${tests.loggingfile}"/>++ <!-- set whether or not nightly tests should run -->++ <sysproperty key="tests.nightly" value="${tests.nightly}"/>++++ <!-- TODO: create propertyset for test properties, so each project can have its own set -->++ <sysproperty key="tests.multiplier" value="${tests.multiplier}"/>++ <sysproperty key="tempDir" file="@{tempDir}/@{threadNum}"/>++++ <sysproperty key="lucene.version" value="${dev.version}"/>++++ <sysproperty key="testmethod" value="${testmethod}"/>++ <sysproperty key="jetty.testMode" value="1"/>++ <sysproperty key="jetty.insecurerandom" value="1"/>++++ <sysproperty key="solr.directoryFactory" value="org.apache.solr.core.MockDirectoryFactory"/>++++ <formatter type="xml"/>++ <formatter classname="${junit.details.formatter}" usefile="false"/>++ <batchtest fork="yes" todir="@{junit.output.dir}" if="runall">++ <fileset dir="@{dataDir}" includes="**/Test*.java,**/*Test.java" excludes="${junit.excludes}">++ <custom classname="${junit.parallel.selector}" classpathref="@{junit.classpath}">++ <param name="divisor" value="@{threadTotal}" />++ <param name="part" value="@{threadNum}" />++ </custom>++ </fileset>++ </batchtest>++ <batchtest fork="yes" todir="@{junit.output.dir}" if="testpackage">++ <fileset dir="@{dataDir}" includes="**/${testpackage}/**/Test*.java,**/${testpackage}/**/*Test.java" excludes="${junit.excludes}">++ <custom classname="${junit.parallel.selector}" classpathref="@{junit.classpath}">++ <param name="divisor" value="@{threadTotal}" />++ <param name="part" value="@{threadNum}" />++ </custom>++ </fileset>++ </batchtest>++ <batchtest fork="yes" todir="@{junit.output.dir}" if="testpackageroot">++ <fileset dir="@{dataDir}" includes="**/${testpackageroot}/Test*.java,**/${testpackageroot}/*Test.java" excludes="${junit.excludes}">++ <custom classname="${junit.parallel.selector}" classpathref="@{junit.classpath}">++ <param name="divisor" value="@{threadTotal}" />++ <param name="part" value="@{threadNum}" />++ </custom>++ </fileset>++ </batchtest>++ <batchtest fork="yes" todir="@{junit.output.dir}" if="testcase">++ <fileset dir="@{dataDir}" includes="**/${testcase}.java"/>++ </batchtest>++ </junit>++ <fail if="tests.failed">Tests failed!</fail>++ </sequential>++ </macrodef>++++ <target name="test" depends="compile-test,validate-lucene,junit-mkdir,junit-sequential,junit-parallel" description="Runs unit tests"/>++++ <target name="junit-mkdir">++ <mkdir dir="${junit.output.dir}"/>++ </target>++++ <target name="junit-sequential" if="tests.sequential">++ <test-macro/>++ </target>++++ <target name="junit-parallel" unless="tests.sequential">++ <parallel threadsPerProcessor="${tests.threadspercpu}">++ <test-macro threadNum="1" threadTotal="8"/>++ <test-macro threadNum="2" threadTotal="8"/>++ <test-macro threadNum="3" threadTotal="8"/>++ <test-macro threadNum="4" threadTotal="8"/>++ <test-macro threadNum="5" threadTotal="8"/>++ <test-macro threadNum="6" threadTotal="8"/>++ <test-macro threadNum="7" threadTotal="8"/>++ <test-macro threadNum="8" threadTotal="8"/>++ </parallel>++ </target>++++++ <!--++ If you want clover test code coverage, run this before the tests. You need clover.jar and the license in your ANT classspath and you need to specify -Drun.clover=true on the command line.++++ See http://issues.apache.org/jira/browse/LUCENE-721++ -->++ <target name="clover" depends="clover.setup, clover.info" description="Instrument the Unit tests using Clover. Requires a Clover 2.x license and clover.jar in the ANT classpath. To use, specify -Drun.clover=true on the command line."/>++++ <target name="clover.setup" if="clover.enabled">++ <taskdef resource="cloverlib.xml"/>++ <mkdir dir="${clover.db.dir}"/>++ <clover-setup initString="${clover.db.dir}/lucene_coverage.db" encoding="${build.encoding}">++ <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>++ </clover-setup>++ </target>++++ <target name="clover.info" unless="clover.present">++ <echo>++ Clover not found. Code coverage reports disabled.++ </echo>++ </target>++++ <target name="clover.check">++ <fail unless="clover.present">++ ##################################################################++ Clover not found.++ Please make sure clover.jar is in ANT_HOME/lib, or made available++ to Ant using other mechanisms like -lib or CLASSPATH.++ ##################################################################++ </fail>++ </target>++ <!--++ Run after Junit tests.++ -->++ <target name="generate-clover-reports" depends="clover.check, clover">++ <mkdir dir="${clover.report.dir}"/>++ <!-- This extra path is needed, because from a top-level ant run, the contrib tests would be not visible (report generation is only done on top-level not via subants) -->++ <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>++ <fileset dir="${build.dir}" id="clover.test.result.files">++ <include name="**/test/TEST-*.xml" />++ <!-- do not include BW tests -->++ <exclude name="backwards/**"/>++ </fileset>++ <clover-report>++ <current outfile="${clover.report.dir}" title="${final.name}" numThreads="0">++ <format type="html" filter="assert"/>++ <testsources refid="clover.test.src.files"/>++ <testsources refid="clover.contrib.test.src.files"/>++ <testresults refid="clover.test.result.files"/>++ </current>++ <current outfile="${clover.report.dir}/clover.xml" title="${final.name}">++ <format type="xml" filter="assert"/>++ <testsources refid="clover.test.src.files"/>++ <testsources refid="clover.contrib.test.src.files"/>++ <testresults refid="clover.test.result.files"/>++ </current>++ </clover-report>++ </target>++++ <target name="generate-test-reports" description="Generates test reports">++ <mkdir dir="${junit.reports}"/>++ <junitreport todir="${junit.output.dir}">++ <!-- this fileset let's the task work for individual contribs,++ as well as the project as a whole++ -->++ <fileset dir="${build.dir}">++ <include name="**/test/TEST-*.xml"/>++ </fileset>++ <report format="frames" todir="${junit.reports}"/>++ </junitreport>++++ <mkdir dir="${junit.reports.backwards}"/>++ <junitreport todir="${junit.output.dir.backwards}">++ <!-- this fileset let's the task work for individual contribs,++ as well as the project as a whole++ -->++ <fileset dir="${build.dir.backwards}">++ <include name="**/test/TEST-*.xml"/>++ </fileset>++ <report format="frames" todir="${junit.reports.backwards}"/>++ </junitreport>++ </target>++++ <target name="jar" depends="jar-core">++ <!-- convenience target to package core JAR -->++ </target>++++ <target name="jar-src" depends="init">++ <jarify basedir="${src.dir}" destfile="${build.dir}/${final.name}-src.jar"/>++ </target>++++ <target name="default" depends="jar-core"/>++++ <target name="rat-sources-typedef">++ <typedef resource="org/apache/rat/anttasks/antlib.xml" uri="antlib:rat.anttasks">++ <classpath>++ <fileset dir="." includes="rat*.jar"/>++ </classpath>++ </typedef>++ </target>++++ <target name="rat-sources" depends="rat-sources-typedef"++ 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>++++ <!--+++ | M A C R O S++ +-->++ <macrodef name="compile">++ <attribute name="srcdir"/>++ <attribute name="destdir"/>++ <attribute name="javac.source" default="${javac.source}"/>++ <attribute name="javac.target" default="${javac.target}"/>++ <element name="nested" implicit="yes" optional="yes"/>++++ <sequential>++ <mkdir dir="@{destdir}"/>++ <javac++ includeAntRuntime="${javac.includeAntRuntime}"++ encoding="${build.encoding}"++ srcdir="@{srcdir}"++ destdir="@{destdir}"++ deprecation="${javac.deprecation}"++ debug="${javac.debug}"++ source="@{javac.source}"++ target="@{javac.target}">++ <nested/>++ <!-- <compilerarg line="-Xmaxwarns 10000000"/>++ <compilerarg line="-Xmaxerrs 10000000"/> -->++ <!-- for generics in Java 1.5: -->++ <compilerarg line="-Xlint -Xlint:-deprecation -Xlint:-serial"/>++ </javac>++ </sequential>++ </macrodef>++++ <macrodef name="invoke-javacc">++ <attribute name="target"/>++ <attribute name="outputDir"/>++ <sequential>++ <mkdir dir="@{outputDir}"/>++ <javacc++ target="@{target}"++ outputDirectory="@{outputDir}"++ debugTokenManager="${javacc.debug.tokenmgr}"++ debugParser="${javacc.debug.parser}"++ debuglookahead="${javacc.debug.lookahead}"++ javacchome="${javacc.home}"++ jdkversion="${javac.source}"++ />++ <fixcrlf srcdir="@{outputDir}" includes="*.java" encoding="UTF-8">++ <containsregexp expression="Generated.*By.*JavaCC"/>++ </fixcrlf>++ </sequential>++ </macrodef>++++ <property name="failonjavadocwarning" value="true"/>++ <macrodef name="invoke-javadoc">++ <element name="sources" optional="yes"/>++ <attribute name="destdir"/>++ <attribute name="title" default="${Name} ${version} API"/>++ <attribute name="overview" default="${src.dir}/overview.html"/>++ <sequential>++ <copy todir="@{destdir}/../prettify" overwrite="false">++ <fileset dir="${prettify.dir}"/>++ </copy>++ <record name="@{destdir}/log_javadoc.txt" action="start" append="no"/>++ <javadoc++ overview="@{overview}"++ packagenames="org.apache.lucene.*"++ destdir="@{destdir}"++ access="${javadoc.access}"++ encoding="${build.encoding}"++ charset="${javadoc.charset}"++ docencoding="${javadoc.charset}"++ author="true"++ version="true"++ use="true"++ failonerror="true"++ source="${ant.java.version}"++ link="${javadoc.link}"++ windowtitle="${Name} ${version} API"++ doctitle="@{title}"++ stylesheetfile="@{destdir}/../prettify/stylesheet+prettify.css"++ maxmemory="${javadoc.maxmemory}"++ bottom="Copyright &copy; ${year} Apache Software Foundation. All Rights Reserved.">++ <tag name="lucene.experimental"++ description="WARNING: This API is experimental and might change in incompatible ways in the next release."/>++ <tag name="lucene.internal"++ description="NOTE: This API is for Lucene internal purposes only and might change in incompatible ways in the next release."/>++ <link offline="true" packagelistLoc="${javadoc.dir}"/>++ <header><![CDATA[++ <script src="{@docRoot}/../prettify/prettify.js" type="text/javascript"></script>++ <script language="JavaScript">window.onload=function(){windowTitle();prettyPrint();}</script>++ ]]></header>++++ <sources />++++ <classpath refid="javadoc.classpath"/>++ </javadoc>++ <record name="@{destdir}/log_javadoc.txt" action="stop"/>++++ <delete>++ <fileset file="@{destdir}/log_javadoc.txt">++ <not>++ <containsregexp expression="\[javadoc\]\s*[1-9][0-9]*[\s]*warning"/>++ </not>++ </fileset>++ </delete>++++ <fail message="Javadocs warnings were found!">++ <condition>++ <and>++ <available file="@{destdir}/log_javadoc.txt"/>++ <istrue value="${failonjavadocwarning}"/>++ </and>++ </condition>++ </fail>++++++ </sequential>++ </macrodef>++++++ <!-- VALIDATION work -->++++ <target name="check-legal-lucene" depends="compile-tools">++ <java classname="org.apache.lucene.validation.DependencyChecker" failonerror="true" fork="true">++ <classpath>++ <path refid="tools.runtime.classpath" />++ </classpath>++ <!-- TODO: it might be better to just automatically find all directories that contain jar files, but that could take a++ long time. This should be faster, but we could miss a directory++ -->++ <!-- Lucene -->++ <arg value="-c" />++ <arg value="${basedir}/lib" />++ </java>++ </target>++++ <target name="check-legal" depends="check-legal-lucene"/>++++ <target name="validate-lucene" depends="check-legal-lucene" unless="validated-lucene"/>++++++ <!-- Generic placeholder target for if we add other validation tasks -->++ <target name="validate" depends="validate-lucene"/>++++++++</project>diff --cc lucene/contrib/contrib-build.xmlindex 5b287c5a7e2,5b287c5a7e2..cf6acca1cfb--- a/lucene/contrib/contrib-build.xml+++ b/lucene/contrib/contrib-build.xml@@@ -55,7 -55,7 +55,9 @@@</path><target name="build-lucene" unless="core.compiled">-- <ant dir="${common.dir}" target="compile-test" inheritAll="false"/>++ <ant dir="${common.dir}" target="compile-test" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant><!-- set the property for this ant execution to speed up later tasks depending on this --><property name="core.compiled" value="true"/></target>@@@ -74,7 -74,7 +76,7 @@@file="pom.xml"property="pom.xml.present"></available>--++<target name="dist-maven" if="pom.xml.present" depends="jar-core, jar-src, javadocs"><taskdef resource="org/apache/maven/artifact/ant/antlib.xml"uri="antlib:org.apache.maven.artifact.ant"diff --cc lucene/contrib/demo/build.xmlindex be1fcd03816,be1fcd03816..c85e1272664--- a/lucene/contrib/demo/build.xml+++ b/lucene/contrib/demo/build.xml@@@ -37,7 -37,7 +37,9 @@@</uptodate></target><target name="jar-lucene" depends="build-lucene" unless="lucene.jar.uptodate">-- <ant dir="${common.dir}" target="jar-core" inheritAll="false"/>++ <ant dir="${common.dir}" target="jar-core" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant></target><target name="init" depends="contrib-build.init,lucene-jar-uptodate,jar-lucene"/>diff --cc lucene/contrib/highlighter/build.xmlindex 8eaa8feaf76,8eaa8feaf76..33d1c7be616--- a/lucene/contrib/highlighter/build.xml+++ b/lucene/contrib/highlighter/build.xml@@@ -38,11 -38,11 +38,15 @@@<target name="build-memory" unless="memory.uptodate"><echo>Highlighter building dependency contrib/memory</echo>-- <ant antfile="../memory/build.xml" target="default" inheritall="false" dir="../memory" />++ <ant antfile="../memory/build.xml" target="default" inheritall="false" dir="../memory">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant></target><target name="build-queries" unless="queries.uptodate"><echo>Highlighter building dependency contrib/queries</echo>-- <ant antfile="../queries/build.xml" target="default" inheritall="false" dir="../queries" />++ <ant antfile="../queries/build.xml" target="default" inheritall="false" dir="../queries">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant></target></project>diff --cc lucene/contrib/spatial/build.xmlindex 169d390bffb,169d390bffb..b11296c2c73--- a/lucene/contrib/spatial/build.xml+++ b/lucene/contrib/spatial/build.xml@@@ -36,7 -36,7 +36,10 @@@<target name="build-queries" unless="queries.uptodate"><echo>Misc building dependency ${queries.jar}</echo>-- <ant antfile="../queries/build.xml" target="default" inheritall="false" dir="../queries" />++ <ant antfile="../queries/build.xml" target="default" inheritall="false" dir="../queries">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>++ <property name="queries.uptodate" value="true"/></target></project>diff --cc lucene/contrib/xml-query-parser/build.xmlindex d985f99d731,d985f99d731..ebe4a96d90f--- a/lucene/contrib/xml-query-parser/build.xml+++ b/lucene/contrib/xml-query-parser/build.xml@@@ -47,7 -47,7 +47,10 @@@<target name="build-queries" unless="queries.uptodate"><echo>XML Parser building dependency ${queries.jar}</echo>-- <ant antfile="../queries/build.xml" target="default" inheritall="false" dir="../queries" />++ <ant antfile="../queries/build.xml" target="default" inheritall="false" dir="../queries">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>++ <property name="queries.uptodate" value="true"/></target><!-- override contrib-build.xml target to also build web demo -->diff --cc modules/analysis/icu/build.xmlindex 483be1e4706,483be1e4706..6989bd40e01--- a/modules/analysis/icu/build.xml+++ b/modules/analysis/icu/build.xml@@@ -60,7 -60,7 +60,9 @@@<target name="build-analyzers-common" unless="analyzers-common.uptodate"><echo>ICU building dependency ${analyzers-common.jar}</echo>-- <ant antfile="../common/build.xml" target="default" inheritall="false" dir="../common" />++ <ant antfile="../common/build.xml" target="default" inheritall="false" dir="../common">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant></target><property name="gennorm2.src.dir" value="src/data/utr30"/>diff --cc modules/analysis/phonetic/build.xmlindex e8625d49221,e8625d49221..af728d05912--- a/modules/analysis/phonetic/build.xml+++ b/modules/analysis/phonetic/build.xml@@@ -59,6 -59,6 +59,8 @@@<target name="build-analyzers-common" unless="analyzers-common.uptodate"><echo>phonetic building dependency ${analyzers-common.jar}</echo>-- <ant antfile="../common/build.xml" target="default" inheritall="false" dir="../common" />++ <ant antfile="../common/build.xml" target="default" inheritall="false" dir="../common">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant></target></project>diff --cc modules/analysis/smartcn/build.xmlindex 075f8f497e6,075f8f497e6..29de24ad99e--- a/modules/analysis/smartcn/build.xml+++ b/modules/analysis/smartcn/build.xml@@@ -49,6 -49,6 +49,8 @@@<target name="build-analyzers-common" unless="analyzers-common.uptodate"><echo>Smartcn building dependency ${analyzers-common.jar}</echo>-- <ant antfile="../common/build.xml" target="default" inheritall="false" dir="../common" />++ <ant antfile="../common/build.xml" target="default" inheritall="false" dir="../common">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant></target></project>diff --cc modules/analysis/stempel/build.xmlindex 517591f2727,517591f2727..a7c4f114205--- a/modules/analysis/stempel/build.xml+++ b/modules/analysis/stempel/build.xml@@@ -48,6 -48,6 +48,9 @@@<target name="build-analyzers-common" unless="analyzers-common.uptodate"><echo>Stempel building dependency ${analyzers-common.jar}</echo>-- <ant antfile="../common/build.xml" target="default" inheritall="false" dir="../common" />++ <ant antfile="../common/build.xml" target="default" inheritall="false" dir="../common">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>++ <property name="analyzers-common.uptodate" value="true"/></target></project>diff --cc solr/build.xmlindex a99a4fd7512,c17940c6679..d3a8fa1a138--- a/solr/build.xml+++ b/solr/build.xml@@@ -1,5 -1,5 +1,4 @@@--<!-- Solr build file -->--++<?xml version="1.0"?><!--Licensed to the Apache Software Foundation (ASF) under one or morecontributor license agreements. See the NOTICE file distributed with@@@ -16,161 -16,1175 +15,472 @@@See the License for the specific language governing permissions andlimitations under the License.-->- <project name="solr-core" default="usage">--<project name="solr" default="usage" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">-- <property name="solr-path" value="." />-- <import file="common-build.xml"/>++<project name="solr" default="usage">+ <description>Solr</description>-- <property name="src.dir" location="src/java"/>-- <!-- solr uses this as the test working directory: nocommit classpath -->- <property name="tests.userdir" value="src/test-files"/>-- <path id="additional.dependencies">- <fileset dir="lib" includes="**/*.jar"/>- <fileset dir="example/lib" includes="**/*.jar"/>- </path>-- <import file="common-build.xml"/>-- <!-- add some descriptions to some inherited targets -->- <target name="compile" description="Compile the source code."- depends="compile-core, build-contrib"/>- <target name="test" description="Validate, then run core and contrib unit tests."- depends="validate-solr, common-solr.test, test-contrib"/>- <target name="test-core" description="Runs the core unit tests."- depends="common.test"/>- <target name="compile-test" description="Compile unit tests."- depends="compile-test-framework, common.compile-test"/>- <target name="javadocs" description="Generate javadocs for core, client, test-framework, and contrib"- depends="contrib-build.javadocs, javadocs-solrj, javadocs-test-framework, javadocs-contrib"/>- <target name="javadocs-core" description="Generate javadocs for core."- depends="contrib-build.javadocs"/>-- <!-- hackish we have to call init/clover here, but solr core depends upon solrj? -->- <target name="compile-core" depends="init, clover, compile-analyzers-common,- compile-analyzers-phonetic, compile-suggest, compile-highlighter,- compile-memory, compile-misc, compile-queries-contrib, compile-spatial,- compile-grouping, compile-queries, compile-solrj, common.compile-core,- compile-webapp"- unless="solr-core.compiled">- </target>-- <target name="compile-webapp" depends="compile-solrj">- <compile srcdir="src/webapp/src"- destdir="${build.dir}/classes/webapp">- <classpath refid="classpath"/>- </compile>- </target>-- <!-- TODO: factor solrj into a separate dir so its a normal module?- we have to reinvent wheels the way it is now -->-- <target name="compile-solrj" description="Compile the java client.">- <compile srcdir="src/common:src/solrj"- destdir="${build.dir}/classes/solrj">- <classpath refid="classpath"/>- </compile>- </target>-- <!-- hacky? -->- <target name="compile-test-framework" depends="compile-core">- <compile srcdir="src/test-framework" destdir="${build.dir}/classes/test-framework">- <classpath refid="test.base.classpath"/>- </compile>- </target>-- <target name="javadocs-solrj" depends="compile-solrj" description="Generates solrj javadoc documentation.">- <sequential>- <mkdir dir="${javadoc.dir}/solrj"/>- <invoke-javadoc- destdir="${javadoc.dir}/solrj"- title="${Name}-j ${version} API (${specversion})">- <sources>- <packageset dir="src/common"/>- <packageset dir="src/solrj"/>- </sources>- </invoke-javadoc>- </sequential>- </target>-- <target name="javadocs-test-framework" depends="compile-test-framework"- description="Generates javadoc documentation for the Solr test-framework.">- <sequential>- <mkdir dir="${build.javadoc}/test-framework"/>- <path id="javadoc.classpath">- <path refid="test.classpath"/> <!-- nocommit switch to testframework.compile.classpath -->- </path>- <invoke-javadoc- destdir="${javadoc.dir}/test-framework"- title="${Name} ${version} Test Framework API (${specversion})">- <sources>- <packageset dir="src/test-framework" />- </sources>- </invoke-javadoc>- </sequential>- </target>-- <!-- Default target: usage. Prints out instructions. -->- <target name="usage"- description="Prints out instructions">+- <!-- 3rd party libraries for compilation -->- <property name="lib" location="lib" />-- <!-- solr source files -->- <property name="src" location="src" />- <property name="web.xml" location="${src}/webapp/web/WEB-INF/web.xml"/>-- <!-- Destination for distribution files (demo WAR, contrib JARs, etc.) -->- <property name="dist" location="dist" />-- <property name="clover.db.dir" location="${dest}/tests/clover/db"/>- <property name="clover.report.dir" location="${dest}/tests/clover/reports"/>-- <available- property="clover.present"- classname="com.cenqua.clover.tasks.CloverReportTask"- />- <condition property="clover.enabled">- <and>- <isset property="run.clover"/>- <isset property="clover.present"/>- </and>- </condition>-- <!-- Default target: usage. Prints out instructions. -->- <target name="usage"- description="Prints out instructions">++ <target name="usage" description="Prints out instructions"><echo message="Welcome to the Solr project!" /><echo message="Use 'ant example' to create a runnable example configuration." /><echo message="Use 'ant run-example' to create and run the example." />-- <echo message="And for developers:"/>++ <echo message="And for developers:"/><echo message="Use 'ant clean' to clean compiled files." /><echo message="Use 'ant compile' to compile the source code." /><echo message="Use 'ant dist' to build the project WAR and JAR files." />-- <echo message="Use 'ant javadoc' to build javadoc under build/docs/api" />++ <echo message="Use 'ant javadocs' to build javadocs under build/docs/api" /><echo message="Use 'ant generate-maven-artifacts' to generate maven artifacts." /><echo message="Use 'ant package' to generate zip, tgz for distribution." /><echo message="Use 'ant luke' to start luke. see: http://luke.googlecode.com" /><echo message="Use 'ant test' to run unit tests." /></target>--- <!-- TODO: lucene/solr could share these -->- <target name="build-contrib" depends="compile-test"- description="Builds all contrib modules and their tests">- <contrib-crawl target="build-artifacts-and-tests"/>- <!-- Clean: cleans compiled files and other temporary artifacts. -->- <target name="clean" depends="clean-contrib"- description="Cleans compiled files and other temporary artifacts.">- <delete dir="${dest}" />- <delete dir="${dist}" />- <delete dir="${package.dir}" />- <delete dir="example/solr/lib" />- <delete dir="${lucene-libs}" />- </target>-- <target name="clean-dest"- description="Cleans out ${dest} but leaves ${dist} and ${package.dir} alone. This allows us to run nightly and clover together in Hudson">- <delete includeemptydirs="true" >- <fileset dir="${dest}">- <exclude name="docs/"/>- </fileset>- </delete>- </target>-- <!-- ========================================================================= -->- <!-- ===================== COMPILATION-RELATED TASKS ========================= -->- <!-- ========================================================================= -->+- <!-- The compilation classpath -->- <path id="compile.classpath">- <fileset dir="${lib}">- <include name="*.jar" />- </fileset>- <path refid="lucene.classpath"/>- </path>-- <target name="compile-solrj"- description="Compile the java client."- depends="compile-lucene">-- <solr-javac destdir="${dest}/solrj"- classpathref="compile.classpath">- <src path="${src}/common" />- <src path="${src}/solrj" />- </solr-javac>- </target>--- <!-- This depend on all of solr -->- <path id="compile.classpath.solrj">- <path refid="compile.classpath" />- <pathelement location="${dest}/solrj"/>- <!-- jetty -->- <fileset dir="example/lib">- <include name="**/*.jar" />- </fileset>- </path>-- <!-- Compile the project. -->- <target name="compile"- description="Compile the source code."- depends="compile-solrj">-- <solr-javac destdir="${dest}/solr"- classpathref="compile.classpath.solrj">- <src path="${src}/java" />- <src path="${src}/webapp/src" />- </solr-javac>- </target>-- <target name="javadoc-dep">- <copy failonerror="false" todir="${build.docs}">- <fileset dir="site" />- </copy>- </target>-- <target name="javadoc-solrj" depends="compile-solrj,javadoc-dep" description="Generates solrj javadoc documentation.">- <sequential>- <mkdir dir="${build.javadoc}/solrj"/>-- <path id="javadoc.classpath">- <path refid="compile.classpath"/>- </path>-- <invoke-javadoc- destdir="${build.javadoc}/solrj"- title="${Name}-j ${version} API (${specversion})">- <sources>- <packageset dir="${src}/common"/>- <packageset dir="${src}/solrj"/>- </sources>- </invoke-javadoc>- </sequential>- </target>++ <import file="common-build.xml"/>+- <target name="javadoc-core" depends="compile,javadoc-dep" description="Generates javadoc documentation for core.">-- <sequential>- <mkdir dir="${build.javadoc}/solr"/>-- <path id="javadoc.classpath">- <path refid="compile.classpath"/>- <path refid="compile.classpath.solrj"/>- <pathelement location="${dest}/solrj"/>- </path>-- <invoke-javadoc- destdir="${build.javadoc}/solr"- title="${Name} ${version} core API (${specversion})">- <sources>- <packageset dir="${src}/java" />- <packageset dir="${src}/webapp/src"/>- </sources>- </invoke-javadoc>- </sequential>- </target>-- <target name="javadoc-test-framework" depends="compileTestFramework,javadoc-dep"- description="Generates javadoc documentation for the Solr test-framework.">- <sequential>- <mkdir dir="${build.javadoc}/test-framework"/>-- <path id="javadoc.classpath">- <path refid="testframework.compile.classpath"/>- </path>-- <invoke-javadoc- destdir="${build.javadoc}/test-framework"- title="${Name} ${version} Test Framework API (${specversion})">- <sources>- <packageset dir="${src}/test-framework" />- </sources>- </invoke-javadoc>- </sequential>- </target>-- <target name="javadoc-all" depends="compile,javadoc-dep" description="Generate javadoc for core, client and contrib">- <sequential>- <mkdir dir="${build.javadoc}"/>-- <path id="javadoc.classpath">- <path refid="compile.classpath"/>- <path refid="compile.classpath.solrj"/>- <fileset dir="contrib">- <include name="**/lib/**/*.jar"/>- <include name="**/lucene-libs/**/*.jar"/>- <exclude name="**/analysis-extras/lib/**/*icu4j*.jar"/> <!-- extraction/lib/ has this one -->- </fileset>- <pathelement location="${dest}/client/solrj"/>- </path>-- <invoke-javadoc destdir="${build.javadoc}">- <sources>- <packageset dir="${src}/common" />- <packageset dir="${src}/solrj" />- <packageset dir="${src}/java" />- <packageset dir="${src}/webapp/src" />- <packageset dir="contrib/dataimporthandler/src/main/java" />- <packageset dir="contrib/dataimporthandler/src/extras/main/java" />- <packageset dir="contrib/clustering/src/main/java" />- <packageset dir="contrib/extraction/src/main/java" />- <packageset dir="contrib/uima/src/main/java" />- <packageset dir="contrib/analysis-extras/src/java" />- <group title="Core" packages="org.apache.*" />- <group title="Common" packages="org.apache.solr.common.*" />- <group title="SolrJ" packages="org.apache.solr.client.solrj*" />- <group title="contrib: DataImportHandler" packages="org.apache.solr.handler.dataimport*" />- <group title="contrib: Clustering" packages="org.apache.solr.handler.clustering*" />- <group title="contrib: Solr Cell" packages="org.apache.solr.handler.extraction*" />- <group title="contrib: Solr UIMA" packages="org.apache.solr.uima*" />- </sources>- </invoke-javadoc>- </sequential>- </target>-- <target name="javadoc-contrib" description="Generate javadoc for contrib classes" depends="build-contrib,javadoc-dep">- <contrib-crawl target="javadoc"- failonerror="true"/>- </target>-- <target name="javadoc" depends="javadoc-core, javadoc-test-framework, javadoc-contrib, javadoc-solrj, javadoc-all">- </target>- <target name="javadocs" depends="javadoc"/>-- <target name="stub-factories" depends="dist-jar"- description="Generates stub factories as needed">-- <path id="stub.jars">- <!-- this needs to be a list of all jars that might contain- classes we want to build factories for- -->- <fileset dir="${lib}">- <include name="lucene-*.jar"/>- </fileset>- <fileset dir="${dist}">- <include name="*.jar"/>- <exclude name="*solrj*.jar"/>- </fileset>- </path>- <pathconvert property="jar.list" pathsep=" " refid="stub.jars" />- <property name="stub.list" value="${dest}/need-stub-factories.txt" />- <java fork="false"- classname="org.apache.solr.util.SuggestMissingFactories"- logError="true"- failonerror="true"- classpathref="test.run.classpath"- output="${stub.list}">- <arg line="${jar.list}" />- </java>- <fail unless="stub.src.path">...-- This task requires that the property 'stub.src.path' be set.-- It must contain a "path" listing directories containing source- files that this task should use when looking for classes that- need factories created, the format is platform specific --- typically it is colon seperated in Unix, semi-colon seperated- on windows, ie:-- ant stub-factories -Dstub.src.path="./src:../lucene/contrib:../lucene/src/java"-- FYI: The file ${stub.list} contains a list of classes- that seem to need stub factories. (if java files can be found to- use as guides for creating them).- </fail>-- <pathconvert pathsep=" " property="stub.src.dirs">- <path>- <pathelement path="${stub.src.path}"/>- </path>- </pathconvert>- <exec executable="${basedir}/src/dev-tools/stub-analysis-factory-maker.pl"- dir="src/java/org/apache/solr/analysis/"- failonerror="true">- <redirector input="${stub.list}">- <!-- place to put special case classes we want to ignore -->- <inputfilterchain>- <linecontainsregexp negate="true">- <!-- only for internal Solr highlighting purposes -->- <regexp pattern="TokenOrderingFilter"/>- </linecontainsregexp>- <linecontainsregexp negate="true">- <!-- no way to leverage this in Solr -->- <regexp pattern="CachingTokenFilter"/>- </linecontainsregexp>- <linecontainsregexp negate="true">- <!-- no way to leverage this in Solr -->- <regexp pattern="HyphenationCompoundWordTokenFilter"/>- </linecontainsregexp>- <linecontainsregexp negate="true">- <!-- no way to leverage these in Solr (yet) -->- <regexp pattern="Sink|Tee"/>- </linecontainsregexp>- <linecontainsregexp negate="true">- <!-- Solr already has a different impl for this -->- <regexp pattern="SynonymTokenFilter"/>- </linecontainsregexp>- <linecontainsregexp negate="true">- <!-- solr and lucene both have one? ? ? ? -->- <regexp pattern="LengthFilter"/>- </linecontainsregexp>- <linecontainsregexp negate="true">- <!-- solr provides it's own SnowballPorterFilter variant -->- <regexp pattern="SnowballFilter"/>- </linecontainsregexp>- </inputfilterchain>- </redirector>- <arg line="${stub.src.dirs}"/>- </exec>- </target>--+ <!-- ========================================================================= -->- <!-- ===================== TESTING-RELATED TASKS ============================= -->++ <!-- ============================== USER TASKS =============================== -->+ <!-- ========================================================================= -->--- <!-- Classpath for unit test compilation. -->- <!-- For now, it's the same as main classpath. Later it will have JUnit, Clover, etc. -->- <path id="testframework.compile.classpath">- <path refid="compile.classpath" />- <path refid="compile.classpath.solrj" />- <pathelement location="${dest}/solr"/>- <pathelement location="${dest}/solrj"/> <!-- include solrj -->- <pathelement location="${common-solr.dir}/../lucene/build/classes/test-framework" /> <!-- include some lucene test code -->- </path>-- <path id="test.compile.classpath">- <path refid="testframework.compile.classpath"/>- <pathelement location="${dest}/test-framework"/> <!-- include some solr test code -->- </path>-- <path id="test.run.classpath">- <path refid="test.compile.classpath" />- <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-framework" /> <!-- include some lucene test code -->- <pathelement path="${java.class.path}"/>- </path>-- <target name="compileTestFramework" depends="compile,compile-solrj">- <mkdir dir="${dest}/test-framework"/>- <solr-javac- destdir="${dest}/test-framework"- classpathref="testframework.compile.classpath">- <src path="${src}/test-framework"/>- </solr-javac>- </target>-- <!-- Compile unit tests. -->- <target name="compileTests"- description="Compile unit tests."- depends="compileTestFramework">-- <mkdir dir="${dest}/tests" />- <solr-javac- destdir="${dest}/tests"- classpathref="test.compile.classpath">- <src path="${src}/test" />- </solr-javac>- <!-- Copy any data files present to the classpath -->- <copy todir="${dest}/tests">- <fileset dir="${src}/test-files" excludes="**/*.java"/>- </copy>- </target>-- <!-- Run core unit tests. -->- <target name="test-core"- description="Runs the core unit tests."- depends="compileTests, junit" />-- <!-- Run contrib unit tests. -->- <target name="test"- description="Runs the core unit tests."- depends="validate-solr, test-core, test-contrib, test-jsp" />-- <target name="junit" depends="compileTests,junit-mkdir,junit-sequential,junit-parallel"/>-- <target name="junit-sequential" if="tests.sequential">- <junit-macro/>- </target>-- <target name="junit-parallel" unless="tests.sequential">- <parallel threadsPerProcessor="${tests.threadspercpu}">- <junit-macro threadNum="1" threadTotal="8"/>- <junit-macro threadNum="2" threadTotal="8"/>- <junit-macro threadNum="3" threadTotal="8"/>- <junit-macro threadNum="4" threadTotal="8"/>- <junit-macro threadNum="5" threadTotal="8"/>- <junit-macro threadNum="6" threadTotal="8"/>- <junit-macro threadNum="7" threadTotal="8"/>- <junit-macro threadNum="8" threadTotal="8"/>- </parallel>- </target>-- <target name="junit-mkdir">- <mkdir dir="${junit.output.dir}"/>- </target>-- <macrodef name="junit-macro">- <attribute name="threadNum" default="1"/>- <attribute name="threadTotal" default="1"/>- <attribute name="tempDir" default="${junit.output.dir}/temp"/>- <sequential>- <!-- no description so it doesn't show up in -projecthelp -->- <condition property="runall">- <not>- <or>- <isset property="testcase"/>- <isset property="testpackage"/>- <isset property="testpackageroot"/>- </or>- </not>- </condition>- <!-- <mkdir dir="@{tempDir}/@{pattern}"/>- This is very loud and obnoxious. abuse touch instead for a "quiet" mkdir- -->- <touch file="@{tempDir}/@{threadNum}/quiet.ant" verbose="false" mkdirs="true"/>- <property name="dir.prop" value=""/>- <junit printsummary="no"- haltonfailure="no"- maxmemory="512M"- errorProperty="tests.failed"- failureProperty="tests.failed"- dir="@{tempDir}/@{threadNum}"- tempdir="@{tempDir}/@{threadNum}"- forkmode="perBatch"- >- <sysproperty key="java.util.logging.config.file" value="${common-solr.dir}/testlogging.properties"/>- <sysproperty key="tests.luceneMatchVersion" value="${tests.luceneMatchVersion}"/>- <sysproperty key="tests.codecprovider" value="${tests.codecprovider}"/>- <sysproperty key="tests.codec" value="${tests.codec}"/>- <sysproperty key="tests.locale" value="${tests.locale}"/>- <sysproperty key="tests.timezone" value="${tests.timezone}"/>- <sysproperty key="tests.multiplier" value="${tests.multiplier}"/>- <sysproperty key="tests.iter" value="${tests.iter}"/>- <sysproperty key="tests.seed" value="${tests.seed}"/>- <sysproperty key="tests.verbose" value="${tests.verbose}"/>- <sysproperty key="jetty.testMode" value="1"/>- <sysproperty key="tempDir" file="@{tempDir}/@{threadNum}"/>- <sysproperty key="testmethod" value="${testmethod}"/>- <!-- set whether or not nightly tests should run -->- <sysproperty key="tests.nightly" value="${tests.nightly}"/>- <sysproperty key="tests.directory" value="${tests.directory}"/>- <sysproperty key="solr.directoryFactory" value="org.apache.solr.core.MockDirectoryFactory"/>- <jvmarg line="${args}"/>-- <formatter classname="${junit.details.formatter}" usefile="false" if="junit.details"/>- <classpath refid="test.run.classpath"/>- <assertions>- <enable package="org.apache.lucene"/>- <enable package="org.apache.solr"/>- </assertions>- <formatter type="${junit.formatter}"/>- <batchtest fork="yes" todir="${junit.output.dir}" if="runall">- <fileset dir="src/test" includes="**/Test*.java,**/*Test.java">- <custom classname="${junit.parallel.selector}" classpathref="test.run.classpath">- <param name="divisor" value="@{threadTotal}" />- <param name="part" value="@{threadNum}" />- </custom>- </fileset>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testpackage">- <fileset dir="src/test" includes="**/${testpackage}/**/Test*.java,**/${testpackage}/**/*Test.java">- <custom classname="${junit.parallel.selector}" classpathref="test.run.classpath">- <param name="divisor" value="@{threadTotal}" />- <param name="part" value="@{threadNum}" />- </custom>- </fileset>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testpackageroot">- <fileset dir="src/test" includes="**/${testpackageroot}/Test*.java,**/${testpackageroot}/*Test.java">- <custom classname="${junit.parallel.selector}" classpathref="test.run.classpath">- <param name="divisor" value="@{threadTotal}" />- <param name="part" value="@{threadNum}" />- </custom>- </fileset>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testcase">- <fileset dir="src/test" includes="**/${testcase}.java"/>- </batchtest>- </junit>-- <fail if="tests.failed">Tests failed!</fail>- </sequential>- </macrodef>--- <target name="test-reports"- description="Generates HTML test reports.">- <mkdir dir="${junit.reports}"/>- <junitreport todir="${junit.output.dir}">- <fileset dir="${junit.output.dir}">- <include name="TEST-*.xml"/>- </fileset>- <report format="frames" todir="${junit.reports}"/>- </junitreport>- </target>-- <target name="clover" depends="clover.setup, clover.info"- description="Instrument the Unit tests using Clover. Requires a Clover license and clover.jar in the ANT classpath. To use, specify -Drun.clover=true on the command line."/>-- <target name="clover.setup" if="clover.enabled">- <taskdef resource="cloverlib.xml"/>- <mkdir dir="${clover.db.dir}"/>- <clover-setup initString="${clover.db.dir}/solr_coverage.db">- <fileset dir="src/common"/>- <fileset dir="src/solrj"/>- <fileset dir="src/java"/>- <fileset dir="src/webapp/src"/>- <fileset dir="contrib/dataimporthandler/src/main/java" />- <fileset dir="contrib/clustering/src/main/java" />- <fileset dir="contrib/extraction/src/main/java" />- <fileset dir="contrib/uima/src/main/java" />- <fileset dir="contrib/analysis-extras/src/java" />- </clover-setup>- </target>-- <target name="clover.info" unless="clover.present">- <echo>- Clover not found. Code coverage reports disabled.- </echo>- </target>-- <target name="clover.check">- <fail unless="clover.present">- ##################################################################- Clover not found.- Please make sure clover.jar is in ANT_HOME/lib, or made available- to Ant using other mechanisms like -lib or CLASSPATH.- ##################################################################- </fail>- </target>- <!--- Run after Junit tests.- -->- <target name="generate-clover-reports" depends="clover.check, clover">- <mkdir dir="${clover.report.dir}"/>- <clover-report>- <current outfile="${clover.report.dir}/clover.xml"- title="${fullnamever}">- <format type="xml"/>- </current>- <current outfile="${clover.report.dir}" title="${fullnamever}">- <format type="html"/>- </current>- </clover-report>- </target>-- <!-- ========================================================================= -->-- <!-- Checks that all JSP files in the webapp compile successfully using Jetty's Jasper -->- <target name="test-jsp" depends="compile">- <property name="jsp.target" location="${dest}/jsp-temp" />- <taskdef classname="org.apache.jasper.JspC" name="jasper" >- <classpath>- <fileset dir="example/lib" includes="**/*.jar" />- </classpath>- </taskdef>- <delete dir="${jsp.target}" />- <mkdir dir="${jsp.target}" />- <jasper- uriroot="${src}/webapp/web"- outputDir="${jsp.target}"- compile="false"- verbose="1"- package="j"- />- <javac- srcdir="${jsp.target}"- destdir="${jsp.target}"- target="${java.compat.version}"- source="${java.compat.version}"- debug="off"- encoding="utf8"- includeAntRuntime="${javac.includeAntRuntime}"- classpathref="test.compile.classpath"- />- </target>--- <!-- ========================================================================= -->- <!-- ===================== DISTRIBUTION-RELATED TASKS ======================== -->- <!-- ========================================================================= -->--- <!-- Creates the Solr distribution files. -->- <target name="dist"- description="Creates the Solr distribution files."- depends="dist-solrj, dist-jar, dist-test-framework, dist-contrib, dist-war" />-- <!-- Creates the Solr WAR file. -->- <target name="dist-war"- description="Creates the Solr WAR Distribution file."- depends="compile, test-jsp, make-manifest, dist-jar, dist-solrj, lucene-jars-to-solr">- <mkdir dir="${dist}" />- <war destfile="${dist}/${fullnamever}.war"- webxml="${web.xml}"- filesetmanifest="skip"- manifest="${dest}/META-INF/MANIFEST.MF">- <lib dir="${lib}">- <exclude name="servlet-api*.jar" />- <exclude name="easymock-*.jar" />- <exclude name="junit-*.jar" />- <exclude name="*.txt" />- <exclude name="*.template" />- </lib>-- <lib dir="${lucene-libs}"/>-- <lib dir="${dist}">- <include name="${fullname}-solrj-${version}.jar" />- <include name="${fullname}-core-${version}.jar" />- </lib>- <fileset dir="${src}/webapp/web" />-- <!-- Include anything put in by contrib projects -->- <fileset dir="${dest}/web" />-- <metainf dir="${basedir}" includes="LICENSE.txt,NOTICE.txt"/>- </war>- </target>-- <target name="dist-src" description="Creates the Solr source distribution files for maven"- depends="make-manifest">- <mkdir dir="${dist}" />-- <solr-jar destfile="${dist}/${fullname}-solrj-src-${version}.jar">- <fileset dir="${src}/common" />- <fileset dir="${src}/solrj"/>- </solr-jar>-- <solr-jar destfile="${dist}/${fullname}-core-src-${version}.jar">- <fileset dir="${src}/java" />- <fileset dir="${src}/webapp/src"/>- </solr-jar>-- <solr-jar destfile="${dist}/${fullname}-test-framework-src-${version}.jar"- basedir="${src}/test-framework" />-- <solr-jar destfile="${dist}/apache-solr-dataimporthandler-src-${version}.jar"- basedir="contrib/dataimporthandler/src/main/java" />- <solr-jar destfile="${dist}/apache-solr-dataimporthandler-extras-src-${version}.jar"- basedir="contrib/dataimporthandler/src/extras/main/java" />-- <solr-jar destfile="${dist}/apache-solr-cell-src-${version}.jar"- basedir="contrib/extraction/src" />- <solr-jar destfile="${dist}/apache-solr-clustering-src-${version}.jar"- basedir="contrib/clustering/src" />- <solr-jar destfile="${dist}/apache-solr-analysis-extras-src-${version}.jar"- basedir="contrib/analysis-extras/src" />- <solr-jar destfile="${dist}/apache-solr-uima-src-${version}.jar"- basedir="contrib/uima/src/main/java" >- <fileset dir="contrib/uima/src/main/resources" />- </solr-jar>- </target>-- <target name="dist-javadoc" description="Creates the Solr javadoc distribution files for maven"- depends="make-manifest, javadoc">- <mkdir dir="${dist}" />-- <solr-jar destfile="${dist}/${fullname}-core-docs-${version}.jar"- basedir="${build.javadoc}/solr" />- <solr-jar destfile="${dist}/${fullname}-solrj-docs-${version}.jar"- basedir="${build.javadoc}/solrj" />- <solr-jar destfile="${dist}/${fullname}-test-framework-docs-${version}.jar"- basedir="${build.javadoc}/test-framework" />- <solr-jar destfile="${dist}/apache-solr-dataimporthandler-docs-${version}.jar"- basedir="${build.javadoc}/contrib-solr-dataimporthandler" />- <solr-jar destfile="${dist}/apache-solr-clustering-docs-${version}.jar"- basedir="${build.javadoc}/contrib-solr-clustering" />- <solr-jar destfile="${dist}/apache-solr-cell-docs-${version}.jar"- basedir="${build.javadoc}/contrib-solr-cell" />- <solr-jar destfile="${dist}/apache-solr-analysis-extras-docs-${version}.jar"- basedir="${build.javadoc}/contrib-solr-analysis-extras" />- <solr-jar destfile="${dist}/apache-solr-uima-docs-${version}.jar"- basedir="${build.javadoc}/contrib-solr-uima" />- </target>-- <!-- Creates the solr jar. -->- <target name="dist-jar"- description="Creates the Solr JAR Distribution file."- depends="compile, make-manifest">- <mkdir dir="${dist}" />- <solr-jar destfile="${dist}/${fullname}-core-${version}.jar">- <fileset dir="${dest}/solr" />- </solr-jar>-- </target>-- <!-- Creates the test-framework jar -->- <target name="dist-test-framework"- description="Creates the Solr test-framework JAR."- depends="compileTestFramework">- <mkdir dir="${dist}" />- <solr-jar destfile="${dist}/${fullname}-test-framework-${version}.jar">- <fileset dir="${dest}/test-framework" />- </solr-jar>- </target>-- <!-- Creates the solr jar. -->- <target name="dist-solrj"- description="Creates the Solr JAR Distribution file."- depends="compile-solrj, make-manifest">- <mkdir dir="${dist}" />- <solr-jar- destfile="${dist}/${fullname}-solrj-${version}.jar"- basedir="${dest}/solrj" />-- <mkdir dir="${dist}/solrj-lib" />- <copy todir="${dist}/solrj-lib">- <fileset dir="${lib}">- <include name="commons-codec-*.jar"/>- <include name="commons-io-*.jar"/>- <include name="commons-httpclient-*.jar"/>- <include name="*stax-*.jar" />- <include name="wstx-*.jar" />- <include name="jcl-over-slf4j-*.jar" />- <include name="slf4j-api-*.jar" />- </fileset>- </copy>-- </target>-- <target name="example"- description="Creates a runnable example configuration."- depends="compile-lucene,dist-contrib,dist-war,example-contrib">++++ <target name="example" description="Creates a runnable example configuration."++ depends="prep-lucene-jars,dist-contrib,dist-war,build-contrib">+ <copy file="${dist}/${fullnamever}.war"+ tofile="${example}/webapps/${ant.project.name}.war"/>+ <jar destfile="${example}/exampledocs/post.jar"- basedir="${dest}/solr"- filesetmanifest="skip"++ basedir="${dest}/solr-core/classes/java"+ includes="org/apache/solr/util/SimplePostTool*.class">- <manifest>- <attribute name="Main-Class"- value="org.apache.solr.util.SimplePostTool"/>- </manifest>++ <manifest>++ <attribute name="Main-Class" value="org.apache.solr.util.SimplePostTool"/>++ </manifest>+ </jar>-+ <delete includeemptydirs="true">+ <fileset dir="${example}/work" includes="**/*"/>+ </delete>+ <echo>See ${example}/README.txt for how to run the Solr example configuration.</echo></target>-- <target name="javadocs-contrib" description="Generate javadocs for contrib classes"- depends="build-contrib">- <contrib-crawl target="javadocs" failonerror="true"/>-+++ <target name="run-example" depends="example"+ description="Run Solr interactively, via Jetty. -Dexample.debug=true to enable JVM debugger">+ <property name="example.solr.home" location="example/solr"/>+ <property name="example.data.dir" location="example/solr/data"/>+ <property name="example.debug.suspend" value="n"/>+ <property name="example.jetty.port" value="8983"/>+ <condition property="example.jvm.line" value="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=${example.debug.suspend},address=5005">+ <isset property="example.debug"/>+ </condition>+ <property name="example.jvm.line" value=""/>+ <property name="example.heap.size" value="512M"/>+ <java jar="${example}/start.jar" fork="true" dir="${example}" maxmemory="${example.heap.size}">+ <jvmarg line="${example.jvm.line}"/>+ <sysproperty key="solr.solr.home" file="${example.solr.home}"/>+ <sysproperty key="solr.data.dir" file="${example.data.dir}"/>+ <sysproperty key="jetty.port" value="${example.jetty.port}"/>+ </java>-+ </target>-++++ <!-- setup proxy for download tasks -->++ <condition property="proxy.specified">++ <or>++ <isset property="proxy.host"/>++ <isset property="proxy.port"/>++ <isset property="proxy.user"/>++ </or>++ </condition>++++ <target name="proxy.setup" if="proxy.specified">++ <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}" proxyuser="${proxy.user}" proxypassword="${proxy.password}"/>++ </target>++++ <property name="luke.version" value="1.0.1"/>++ <available file="luke/luke-${luke.version}.jar" property="luke.jar.exists" />++ <target name="luke-download" unless="luke.jar.exists" depends="proxy.setup,compile-xml-query-parser">++ <mkdir dir="luke"/>++ <get src="http://luke.googlecode.com/files/luke-${luke.version}.jar"++ dest="luke/luke-${luke.version}.jar"/>++ </target>++ <path id="luke.classpath">++ <pathelement location="${common.dir}/build/classes/java" />++ <pathelement location="${common.dir}/build/contrib/xml-query-parser/classes/java" />++ </path>++ <target name="luke" depends="luke-download">++ <java fork="true"++ classname="org.getopt.luke.Luke"++ logError="true"++ failonerror="true">++ <classpath>++ <fileset dir="luke">++ <include name="luke-${luke.version}.jar"/>++ </fileset>++ <path refid="classpath"/>++ <path refid="luke.classpath"/>++ <path refid="test.classpath"/>++ </classpath>++ </java>++ </target>++++ <!-- ========================================================================= -->++ <!-- ========================== BUILD/TEST TASKS ============================= -->++ <!-- ========================================================================= -->++++ <target name="compile" description="Compile the source code."++ depends="compile-core, build-contrib"/>++ <target name="test" description="Validate, then run core, solrj, and contrib unit tests."++ depends="validate-solr, test-core, test-jsp, test-contrib"/>++ <target name="test-core" description="Runs the core and solrj unit tests."++ depends="test-solr-core, test-solrj"/>++ <target name="compile-test" description="Compile unit tests."++ depends="compile-solr-test-framework, compile-test-solr-core, compile-test-solrj"/>++ <target name="javadocs" description="Calls javadocs-all" depends="javadocs-all"/>++ <target name="compile-core" depends="compile-solr-core" unless="solr.core.compiled"/>++++ <!-- Solr core targets -->++ <target name="test-solr-core" description="Test solr core">++ <ant dir="core" target="test" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>++ </target>++++ <!-- Solrj targets -->++ <target name="test-solrj" description="Test java client">++ <ant dir="solrj" target="test" inheritAll="false"/>++ </target>++++ <!-- Solr contrib targets -->+ <target name="test-contrib" description="Run contrib unit tests."- depends="build-contrib">++ depends="build-contrib">+ <contrib-crawl target="test" failonerror="true"/>+ </target>-- <target name="compile-analyzers-common" unless="analyzers-common.uptodate">- <ant dir="${common.dir}/../modules/analysis/common" target="default" inheritAll="false"/>++++ <!-- Webapp targets -->++ <target name="test-jsp">++ <ant dir="webapp" target="test" inheritall="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>+ </target>- <target name="compile-analyzers-phonetic" unless="analyzers-phonetic.uptodate">- <ant dir="${common.dir}/../modules/analysis/phonetic" target="default" inheritAll="false"/>++++ <!-- Clean targets -->++ <target name="clean" description="Cleans compiled files and other temporary artifacts.">++ <delete dir="build" />++ <delete dir="dist" />++ <delete dir="package" />++ <delete dir="example/solr/lib" />+ </target>- <target name="compile-suggest" unless="suggest.uptodate">- <ant dir="${common.dir}/../modules/suggest" target="default" inheritAll="false"/>++++ <target name="clean-dest"++ description="Cleans out build/ but leaves build/docs/, dist/ and package/ alone. This allows us to run nightly and clover together in Hudson">++ <delete includeemptydirs="true" >++ <fileset dir="build">++ <exclude name="docs/"/>++ </fileset>++ </delete>+ </target>- <target name="compile-grouping" unless="grouping.uptodate">- <ant dir="${common.dir}/../modules/grouping" target="default" inheritAll="false"/>++++ <!-- ========================================================================= -->++ <!-- ===================== DISTRIBUTION-RELATED TASKS ======================== -->++ <!-- ========================================================================= -->++++ <target name="copy-to-stage">++ <copy-to-stage-macro artifacts.dir="${package.dir}"/>+ </target>- <target name="compile-queries" unless="queries.uptodate">- <ant dir="${common.dir}/../modules/queries" target="default" inheritAll="false"/>++++ <target name="dist"++ description="Creates the Solr distribution files."++ depends="dist-solrj, dist-core, dist-test-framework, dist-contrib, dist-war" />++++ <target name="dist-test-framework" depends="init-dist"++ description="Creates the Solr test-framework JAR.">++ <ant dir="test-framework" target="dist" inheritall="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>+ </target>- <target name="compile-highlighter" unless="highlighter.uptodate">- <ant dir="${common.dir}/contrib/highlighter" target="default" inheritAll="false"/>++++ <target name="dist-contrib" depends="init-dist"++ description="Make the contribs ready for distribution">++ <contrib-crawl target="dist" failonerror="true" /></target>- <target name="compile-memory" unless="memory.uptodate">- <ant dir="${common.dir}/contrib/memory" target="default" inheritAll="false"/>+++ <target name="dist-war"++ description="Creates the Solr WAR Distribution file.">++ <ant dir="webapp" target="dist" inheritall="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>+ </target>- <target name="compile-misc" unless="misc.uptodate">- <ant dir="${common.dir}/contrib/misc" target="default" inheritAll="false"/>++++ <target name="prepare-release"++ depends="clean, package, generate-maven-artifacts, sign-artifacts"/>+++ <!-- make a distribution -->- <target name="package" depends="package-src,create-package"/>-- <property name="svn.export.dir" location="${dest}/svn-export"/>-++ <target name="package" depends="package-src-tgz,create-package"/>+++ <!-- Makes a tarball from running "svn export" at the root level. -->+ <!-- Copies NOTICE.txt and LICENSE.txt from solr/ to the root level. -->- <target name="package-src" depends="svn-export-source"++ <target name="package-src-tgz" depends="init-dist"+ description="Packages the Solr Source Distribution">- <mkdir dir="${package.dir}"/>+ <property name="source.package.file"+ value="${package.dir}/${fullnamever}-src.tgz"/>+ <delete file="${source.package.file}" failonerror="false" />++ <svn-export-source source.dir=".."/>+ <tar destfile="${source.package.file}" compression="gzip" longfile="gnu">- <tarfileset dir="${svn.export.dir}" prefix="${fullnamever}"/>++ <tarfileset dir="${svn.export.dir}"++ prefix="${fullnamever}"++ excludes="example/**/*.sh example/**/bin/"/>++ <tarfileset dir="${svn.export.dir}"++ prefix="${fullnamever}"++ filemode="755"++ includes="example/**/*.sh example/**/bin/"/>+ <tarfileset dir="${svn.export.dir}/solr" prefix="${fullnamever}"+ includes="NOTICE.txt,LICENSE.txt"/>+ </tar>- <solr-checksum file="${source.package.file}"/>- </target>-- <!-- Runs "svn export" in build/svn-export/ with the same root-level URL -->- <!-- and revision as the current working copy. -->- <target name="svn-export-source" depends="get-svn-info">- <delete dir="${svn.export.dir}" includeemptydirs="true" failonerror="false"/>- <mkdir dir="${dest}"/>- <exec dir="." executable="${svn.exe}" failonerror="true">- <arg value="export"/>- <arg value="--native-eol"/>- <arg value="LF"/>- <arg value="-r"/>- <arg value="${svn.Revision}"/>- <arg value="${svn.URL}"/>- <arg value="${svn.export.dir}"/>- </exec>++ <make-checksums file="${source.package.file}"/></target>- <target name="compile-queries-contrib" unless="queries-contrib.uptodate">- <ant dir="${common.dir}/contrib/queries" target="default" inheritAll="false"/>-- <!-- Populates properties svn.URL and svn.Revision using "svn info" -->- <target name="get-svn-info">- <exec dir=".." executable="${svn.exe}" outputproperty="svn.info" failonerror="true">- <arg value="info"/>- </exec>- <loadproperties>- <propertyresource name="svn.info"/>- <filterchain>- <linecontainsregexp>- <regexp pattern="(URL|Revision):"/>- </linecontainsregexp>- <replacestring from=": " to="="/>- <prefixlines prefix="svn."/>- </filterchain>- </loadproperties>- </target>-+++ <target name="create-package"+ description="Packages the Solr Binary Distribution"- depends="dist, example, javadoc">- <mkdir dir="${package.dir}"/>-++ depends="init-dist, dist, example, javadocs">++ <mkdir dir="${dest}/${fullnamever}"/>+ <delete includeemptydirs="true">+ <fileset dir="${example}/work" includes="**/*"/>- </delete>-- <delete includeemptydirs="true" failonerror="false">+ <fileset dir="${dest}/${fullnamever}" includes="**/*"/>+ </delete>-+++ <delete file="${package.dir}/${fullnamever}.tgz" failonerror="false" />+ <delete file="${package.dir}/${fullnamever}.zip" failonerror="false" />-++++ <mkdir dir="${dest}/contrib-lucene-libs-to-package"/>++ <delete dir="${dest}/contrib-lucene-libs-to-package" includes="**/*"/>++ <contrib-crawl target="add-lucene-libs-to-package"/>+++ <tar destfile="${package.dir}/${fullnamever}.tgz" compression="gzip" longfile="gnu">+ <tarfileset dir="."- prefix="${fullnamever}"- includes="LICENSE.txt NOTICE.txt CHANGES.txt README.txt example/** client/** contrib/**/lib/ contrib/**/lucene-libs/ contrib/**/README.txt contrib/**/CHANGES.txt"- excludes="${dist}/** ${dest}/** lib/README.committers.txt **/data/ **/logs/* **/classes/ **/*.sh **/bin/ src/scripts/** src/site/build/** **/target/** client/ruby/flare/** client/python/** client/javascript/** contrib/**/build/** **/*.iml **/*.ipr **/*.iws **/*pom.xml.template" />++ prefix="${fullnamever}"++ includes="LICENSE.txt NOTICE.txt CHANGES.txt README.txt example/**++ client/README.txt client/ruby/solr-ruby/** contrib/**/lib/**++ contrib/**/README.txt contrib/**/CHANGES.txt"++ excludes="lib/README.committers.txt **/data/ **/logs/* **/classes/ **/*.sh++ **/bin/ **/*.iml **/*.ipr **/*.iws **/pom.xml **/*pom.xml.template" />++ <tarfileset dir="${dest}/contrib-lucene-libs-to-package"++ prefix="${fullnamever}"++ includes="**" />+ <tarfileset dir="."- mode="755"- prefix="${fullnamever}"- includes="example/**/*.sh example/**/bin/" />++ filemode="755"++ prefix="${fullnamever}"++ includes="example/**/*.sh example/**/bin/" />+ <tarfileset dir="."- prefix="${fullnamever}"- includes="dist/*.jar dist/*.war dist/solrj-lib/*"- excludes="**/*.tgz **/*.zip **/*.md5 **/*src*.jar **/*docs*.jar" />- <!-- hack: the javadocs are built twice since maven needs separate packages... exclude those -->- <tarfileset dir="${build.docs}"- prefix="${fullnamever}/docs/"- excludes="api/solr/** api/contrib-*/**"- />++ prefix="${fullnamever}"++ includes="dist/*.jar dist/*.war dist/solrj-lib/*"++ excludes="**/*.tgz **/*.zip **/*.md5 **/*src*.jar **/*docs*.jar" />++ <tarfileset dir="${dest}/docs"++ prefix="${fullnamever}/docs" />+ </tar>- <solr-checksum file="${package.dir}/${fullnamever}.tgz"/>-- <gunzip src="${package.dir}/${fullnamever}.tgz" dest="${dest}/${fullnamever}.tar"/>- <untar src="${dest}/${fullnamever}.tar" dest="${dest}"/>-++ <make-checksums file="${package.dir}/${fullnamever}.tgz"/>++++ <untar compression="gzip" src="${package.dir}/${fullnamever}.tgz" dest="${dest}"/>+++ <!--- This is a list of text file patterns to convert to CRLF line-ending style.- Shell scripts and files included in shell scripts should not be converted.- NB: The line-ending conversion process will mangle non-UTF8-encoded files.- -->++ This is a list of text file patterns to convert to CRLF line-ending style.++ Shell scripts and files included in shell scripts should not be converted.++ NB: The line-ending conversion process will mangle non-UTF8-encoded files.++ -->+ <fixcrlf srcdir="${dest}/${fullnamever}"- encoding="UTF-8"- eol="crlf"- includes="**/*.alg **/*.cfg **/*.cgi **/*.cpp **/*.css **/*.csv **/*.dtd- **/*.erb **/*.fcgi **/.htaccess **/*.htm **/*.html **/*.incl- **/*.java **/*.javacc **/*.jflex **/*.jflex-macro **/*.jj- **/*.js **/*.json **/*.jsp **/*LICENSE **/package-list **/*.pl- **/*.pom **/*pom.xml.template **/*.properties **/*.py- **/*.rake **/Rakefile **/*.rb **/*.rbbi **/README* **/*.rhtml- **/*.rslp **/*.rxml **/*.script **/*.svg **/*.tsv **/*.txt- **/UPGRADING **/USAGE **/*.uxf **/*.vm **/*.xcat **/*.xml- **/*.xsl **/*.xslt **/*.yml"- excludes="**/stopwordsWrongEncoding.txt **/gb18030-example.xml"- />-++ encoding="UTF-8"++ eol="crlf"++ includes="**/*.alg **/*.cfg **/*.cgi **/*.cpp **/*.css **/*.csv **/*.dtd++ **/*.erb **/*.fcgi **/.htaccess **/*.htm **/*.html **/*.incl++ **/*.java **/*.javacc **/*.jflex **/*.jflex-macro **/*.jj++ **/*.js **/*.json **/*.jsp **/*LICENSE **/package-list **/*.pl++ **/*.pom **/*pom.xml.template **/*.properties **/*.py++ **/*.rake **/Rakefile **/*.rb **/*.rbbi **/README* **/*.rhtml++ **/*.rslp **/*.rxml **/*.script **/*.svg **/*.tsv **/*.txt++ **/UPGRADING **/USAGE **/*.uxf **/*.vm **/*.xcat **/*.xml++ **/*.xsl **/*.xslt **/*.yml"++ excludes="**/stopwordsWrongEncoding.txt **/gb18030-example.xml"++ />+++ <zip destfile="${package.dir}/${fullnamever}.zip">+ <zipfileset dir="${dest}/${fullnamever}"- prefix="${fullnamever}"- excludes="**/*.sh **/bin/ src/scripts/" />++ prefix="${fullnamever}"++ excludes="**/*.sh **/bin/ src/scripts/" />+ <zipfileset dir="${dest}/${fullnamever}"- prefix="${fullnamever}"- includes="**/*.sh **/bin/ src/scripts/"- filemode="755" />++ prefix="${fullnamever}"++ includes="**/*.sh **/bin/ src/scripts/"++ filemode="755" />+ </zip>- <solr-checksum file="${package.dir}/${fullnamever}.zip"/>-++ <make-checksums file="${package.dir}/${fullnamever}.zip"/></target>- <target name="compile-spatial" unless="spatial.uptodate">- <ant dir="${common.dir}/contrib/spatial" target="default" inheritAll="false"/>--- <target name="build-site" depends="svn-up"- description="Prototype Helper for Committers. Assumes SVN is in the path">- <delete dir="src/site/build"/>- <exec executable="forrest" dir="src/site"/>- <copy todir="site">- <fileset dir="src/site/build/site"/>- </copy>- <antcall target="svn-up"/>-++++ <target name="sign-artifacts">++ <sign-artifacts-macro artifacts.dir="${package.dir}"/>+ </target>- <target name="svn-up">- <exec executable="${svn.exe}">- <arg value="update"/>- </exec>- </target>-- <target name="clean-package-signatures">- <delete failonerror="false">- <fileset dir="${package.dir}">- <include name="**/*.asc"/>- </fileset>- </delete>- </target>- <target name="sign-artifacts" depends="clean-package-signatures">- <!--<property file="${user.home}/.solr/build.properties" />-->- <input message="password:>" addproperty="gpg.passphrase">- <handler classname="org.apache.tools.ant.input.SecureInputHandler" />- </input>- <sign-artifact input.file="${package.dir}/${fullnamever}.tgz" output.file="${package.dir}/${fullnamever}.tgz.asc" gpg.passphrase="${gpg.passphrase}"/>- <sign-artifact input.file="${package.dir}/${fullnamever}.zip" output.file="${package.dir}/${fullnamever}.zip.asc" gpg.passphrase="${gpg.passphrase}"/>- <sign-artifact input.file="${package.dir}/${fullnamever}-src.tgz" output.file="${package.dir}/${fullnamever}-src.tgz.asc" gpg.passphrase="${gpg.passphrase}"/>-- <!-- Maven artifacts -->- <sign-maven-dependency-artifacts artifact.id="solr-commons-csv" gpg.passphrase="${gpg.passphrase}"/>- <sign-maven-dependency-artifacts artifact.id="solr-noggit" gpg.passphrase="${gpg.passphrase}"/>- <sign-maven-dependency-artifacts artifact.id="solr-uima-an-alchemy" gpg.passphrase="${gpg.passphrase}"/>- <sign-maven-dependency-artifacts artifact.id="solr-uima-an-calais" gpg.passphrase="${gpg.passphrase}"/>- <sign-maven-dependency-artifacts artifact.id="solr-uima-an-tagger" gpg.passphrase="${gpg.passphrase}"/>- <sign-maven-dependency-artifacts artifact.id="solr-uima-an-wst" gpg.passphrase="${gpg.passphrase}"/>- <sign-maven-war-artifacts artifact.id="solr" gpg.passphrase="${gpg.passphrase}"/>- <sign-maven-artifacts artifact.id="solr-analysis-extras" gpg.passphrase="${gpg.passphrase}"/>- <sign-maven-artifacts artifact.id="solr-cell" gpg.passphrase="${gpg.passphrase}"/>- <sign-maven-artifacts artifact.id="solr-clustering" gpg.passphrase="${gpg.passphrase}"/>- <sign-maven-artifacts artifact.id="solr-core" gpg.passphrase="${gpg.passphrase}"/>- <sign-maven-artifacts artifact.id="solr-dataimporthandler" gpg.passphrase="${gpg.passphrase}"/>- <sign-maven-artifacts artifact.id="solr-dataimporthandler-extras" gpg.passphrase="${gpg.passphrase}"/>- <sign-maven-artifacts artifact.id="solr-solrj" gpg.passphrase="${gpg.passphrase}"/>- <sign-maven-artifacts artifact.id="solr-uima" gpg.passphrase="${gpg.passphrase}"/>- <sign-maven-artifacts artifact.id="solr-test-framework" gpg.passphrase="${gpg.passphrase}"/>-- <!-- These are special since there are no jars, just poms -->- <sign-artifact input.file="${maven.dist.prefix}/solr-parent/${version}/solr-parent-${version}.pom" gpg.passphrase="${gpg.passphrase}"/>++++ <target name="javadocs-dep">++ <copy failonerror="false" todir="${dest}/docs">++ <fileset dir="${common-solr.dir}/site" />++ </copy>+ </target>-- <property name="rc" value="rc0"/>- <property name="remote.staging.dir" value="public_html/staging_area/${rc}/${version}"/>- <property name="keyfile" value="${user.home}/.ssh/id_rsa"/>- <property name="scp.user" value="${user.name}"/>- <!--keys.dir is the location of the https://svn.apache.org/repos/asf/lucene/java/dist/ directory-->- <property name="keys.dir" value="${common-solr.dir}/../../dist"/>- <target name="copy-to-stage">- <sshexec host="people.apache.org"- username="${scp.user}"- keyfile="${keyfile}"- command="mkdir -p ${remote.staging.dir}"/>- <echo>Uploading artifacts to ${scp.user}@people.apache.org:${remote.staging.dir}</echo>- <scp todir="${scp.user}@people.apache.org:${remote.staging.dir}"- username="${scp.user}"- keyfile="${keyfile}"- verbose="true"- >- <fileset dir="package"/>- <fileset dir="${keys.dir}">- <include name="KEYS"/>- </fileset>- </scp>++++ <target name="javadocs-all" depends="compile,javadocs-dep"++ description="Generate javadoc for core, java client and contrib">++ <sequential>++ <mkdir dir="${dest}/docs/api"/>++++ <path id="javadoc.classpath">++ <path refid="classpath"/>++ <fileset dir="${dest}/contrib">++ <include name="**/lucene-libs/**/*.jar"/>++ </fileset>++ <fileset dir="contrib">++ <include name="**/lib/**/*.jar"/>++ <exclude name="**/analysis-extras/lib/**/*icu4j*.jar"/> <!-- extraction/lib/ has this one -->++ </fileset>++ <pathelement location="${dest}/solr-solrj/classes/java"/>++ </path>++++ <invoke-javadoc destdir="${dest}/docs/api"++ overview="core/src/java/overview.html">++ <sources>++ <packageset dir="core/src/java" />++ <packageset dir="solrj/src/java" />++ <packageset dir="contrib/analysis-extras/src/java"/>++ <packageset dir="contrib/clustering/src/java"/>++ <packageset dir="contrib/dataimporthandler/src/java"/>++ <packageset dir="contrib/dataimporthandler-extras/src/java"/>++ <packageset dir="contrib/extraction/src/java"/>++ <packageset dir="contrib/uima/src/java"/>++ <group title="Core" packages="org.apache.*" />++ <group title="SolrJ" packages="org.apache.solr.common.*,org.apache.solr.client.solrj*" />++ <group title="contrib: Clustering" packages="org.apache.solr.handler.clustering*" />++ <group title="contrib: DataImportHandler" packages="org.apache.solr.handler.dataimport*" />++ <group title="contrib: Solr Cell" packages="org.apache.solr.handler.extraction*" />++ <group title="contrib: Solr UIMA" packages="org.apache.solr.uima*" />++ </sources>++ </invoke-javadoc>++ </sequential>+ </target>-- <target name="prepare-release" depends="clean, svn-up, package, generate-maven-artifacts, sign-artifacts"- description="Prototype helper for Committers. Assumes gpg is in the path"/>-- <target name="stage" depends="prepare-release, copy-to-stage"/>-- <target name="generate-maven-artifacts" depends="dist,dist-src,dist-javadoc">++++ <target name="generate-maven-artifacts">+ <taskdef uri="antlib:org.apache.maven.artifact.ant"+ resource="org/apache/maven/artifact/ant/antlib.xml"+ classpathref="maven-ant-tasks.classpath" />+ <sequential>- <ant target="get-maven-poms" dir=".."/>-- <!---- !!!!!!!!!!- NOTE: If you add new artifacts, please make sure you also add to the sign-artifacts target- so that they get signed during release.- !!!!!!!- -->-- <mkdir dir="${maven.build.dir}"/>- <mkdir dir="${maven.dist.dir}"/>-- <!-- ========== SOLR PARENT POM ========== -->-- <m2-deploy pom.xml="pom.xml"/>-- <!-- ========== SOLR SPECIFIC NON-MAVENIZED DEPENDENCIES ========== -->- <m2-deploy-with-pom-template pom.xml="lib/solr-commons-csv-pom.xml.template"- jar.file="lib/commons-csv-1.0-SNAPSHOT-r966014.jar" />-- <m2-deploy-with-pom-template pom.xml="lib/apache-solr-noggit-pom.xml.template"- jar.file="lib/apache-solr-noggit-r1099557.jar" />-- <m2-deploy-with-pom-template pom.xml="contrib/uima/lib/solr-uima-an-alchemy-pom.xml.template"- jar.file="contrib/uima/lib/uima-an-alchemy-2.3.1-SNAPSHOT-r1062868.jar" />-- <m2-deploy-with-pom-template pom.xml="contrib/uima/lib/solr-uima-an-calais-pom.xml.template"- jar.file="contrib/uima/lib/uima-an-calais-2.3.1-SNAPSHOT-r1062868.jar" />-- <m2-deploy-with-pom-template pom.xml="contrib/uima/lib/solr-uima-an-tagger-pom.xml.template"- jar.file="contrib/uima/lib/uima-an-tagger-2.3.1-SNAPSHOT-r1062868.jar" />-- <m2-deploy-with-pom-template pom.xml="contrib/uima/lib/solr-uima-an-wst-pom.xml.template"- jar.file="contrib/uima/lib/uima-an-wst-2.3.1-SNAPSHOT-r1076132.jar" />-- <!-- ========== SOLR ARTIFACTS ========== -->-- <m2-deploy pom.xml="contrib/dataimporthandler/src/pom.xml"- jar.file="${dist}/apache-solr-dataimporthandler-${version}.jar">- <artifact-attachments>- <attach file="${dist}/apache-solr-dataimporthandler-src-${version}.jar" classifier="sources"/>- <attach file="${dist}/apache-solr-dataimporthandler-docs-${version}.jar" classifier="javadoc"/>- </artifact-attachments>- </m2-deploy>-- <m2-deploy pom.xml="contrib/dataimporthandler/src/extras/pom.xml"- jar.file="${dist}/apache-solr-dataimporthandler-extras-${version}.jar">- <artifact-attachments>- <attach file="${dist}/apache-solr-dataimporthandler-extras-src-${version}.jar" classifier="sources"/>- <attach file="${dist}/apache-solr-dataimporthandler-docs-${version}.jar" classifier="javadoc"/>- </artifact-attachments>- </m2-deploy>-- <m2-deploy pom.xml="contrib/extraction/pom.xml"- jar.file="${dist}/apache-solr-cell-${version}.jar">- <artifact-attachments>- <attach file="${dist}/apache-solr-cell-src-${version}.jar" classifier="sources"/>- <attach file="${dist}/apache-solr-cell-docs-${version}.jar" classifier="javadoc"/>- </artifact-attachments>- </m2-deploy>-- <m2-deploy pom.xml="contrib/clustering/pom.xml"- jar.file="${dist}/apache-solr-clustering-${version}.jar">- <artifact-attachments>- <attach file="${dist}/apache-solr-clustering-src-${version}.jar" classifier="sources"/>- <attach file="${dist}/apache-solr-clustering-docs-${version}.jar" classifier="javadoc"/>- </artifact-attachments>- </m2-deploy>-- <m2-deploy pom.xml="contrib/analysis-extras/pom.xml"- jar.file="${dist}/apache-solr-analysis-extras-${version}.jar">- <artifact-attachments>- <attach file="${dist}/apache-solr-analysis-extras-src-${version}.jar" classifier="sources"/>- <attach file="${dist}/apache-solr-analysis-extras-docs-${version}.jar" classifier="javadoc"/>- </artifact-attachments>- </m2-deploy>-- <m2-deploy pom.xml="contrib/uima/pom.xml"- jar.file="${dist}/apache-solr-uima-${version}.jar">- <artifact-attachments>- <attach file="${dist}/apache-solr-uima-src-${version}.jar" classifier="sources"/>- <attach file="${dist}/apache-solr-uima-docs-${version}.jar" classifier="javadoc"/>- </artifact-attachments>- </m2-deploy>-- <m2-deploy pom.xml="src/pom.xml"- jar.file="${dist}/apache-solr-core-${version}.jar">- <artifact-attachments>- <attach file="${dist}/apache-solr-core-src-${version}.jar" classifier="sources"/>- <attach file="${dist}/apache-solr-core-docs-${version}.jar" classifier="javadoc"/>- </artifact-attachments>- </m2-deploy>-- <m2-deploy pom.xml="src/solrj/pom.xml"- jar.file="${dist}/apache-solr-solrj-${version}.jar">- <artifact-attachments>- <attach file="${dist}/apache-solr-solrj-src-${version}.jar" classifier="sources"/>- <attach file="${dist}/apache-solr-solrj-docs-${version}.jar" classifier="javadoc"/>- </artifact-attachments>- </m2-deploy>-- <m2-deploy pom.xml="src/webapp/pom.xml"- jar.file="${dist}/apache-solr-${version}.war"/>-- <m2-deploy pom.xml="${src}/test-framework/pom.xml"- jar.file="${dist}/${fullname}-test-framework-${version}.jar">- <artifact-attachments>- <attach file="${dist}/${fullname}-test-framework-src-${version}.jar" classifier="sources"/>- <attach file="${dist}/${fullname}-test-framework-docs-${version}.jar" classifier="javadoc"/>- </artifact-attachments>- </m2-deploy>++ <ant target="get-maven-poms" dir=".." inheritall="false"/>++ <m2-deploy pom.xml="pom.xml"/> <!-- Solr parent POM -->++ <subant target="dist-maven" inheritall="false" >++ <fileset dir="core" includes="build.xml"/>++ <fileset dir="solrj" includes="build.xml"/>++ <fileset dir="test-framework" includes="build.xml"/>++ <fileset dir="webapp" includes="build.xml"/>++ </subant>++ <contrib-crawl target="dist-maven"/>+ </sequential>+ </target>-- <target name="set-fsdir">- <property name="use.fsdir" value="true"/>- </target>-- <target name="-taskdef">- <typedef resource="org/apache/rat/anttasks/antlib.xml" uri="antlib:rat.anttasks">- <classpath>- <fileset dir="." includes="rat*.jar"/>- </classpath>- </typedef>- </target>- <target name="rat-sources" depends="-taskdef"- description="runs the tasks over src/java excluding the license directory">- <rat:report xmlns:rat="antlib:org.apache.rat.anttasks">- <fileset dir="src/java"/>- <fileset dir="src/test"/>- <fileset dir="src/webapp"/>- <fileset dir="src/common"/>- <fileset dir="src/solrj"/>- <fileset dir="client">- <exclude name="**/CHANGES.*"/>- </fileset>- <fileset dir="contrib/dataimporthandler/src/main/java"/>- <fileset dir="contrib/dataimporthandler/src/test/java"/>- <fileset dir="contrib/dataimporthandler/src/extras/main/java"/>- <fileset dir="contrib/dataimporthandler/src/extras/test/java"/>- <fileset dir="contrib/clustering/src/main/java"/>- <fileset dir="contrib/clustering/src/test/java"/>- <fileset dir="contrib/extraction/src/main/java"/>- <fileset dir="contrib/extraction/src/test/java"/>- <fileset dir="contrib/analysis-extras/src/test"/>- <fileset dir="contrib/analysis-extras/src/test"/>- <fileset dir="contrib/uima/src/main/java"/>- <fileset dir="contrib/uima/src/test/java"/>- </rat:report>- </target>--+++++ <!-- ========================================================================= -->- <!-- ===================== Runtime: luke ============================= -->++ <!-- ========================= COMMITTERS' HELPERS =========================== -->+ <!-- ========================================================================= -->- <property name="luke.version" value="1.0.1"/>- <available file="luke/luke-${luke.version}.jar" property="luke.jar.exists" />- <target name="luke-download" unless="luke.jar.exists" depends="proxy.setup">- <mkdir dir="luke"/>- <get src="http://luke.googlecode.com/files/luke-${luke.version}.jar"- dest="luke/luke-${luke.version}.jar"/>- </target>- <path id="luke.classpath">- <pathelement location="${common-solr.dir}/../lucene/build/classes/java" />- <pathelement location="${common-solr.dir}/../lucene/build/contrib/xml-query-parser/classes/java" />-- </path>- <target name="luke" depends="luke-download">- <java fork="true"- classname="org.getopt.luke.Luke"++++ <target name="stub-factories" depends="dist-core,lucene-jars-to-solr"++ description="Generates stub factories as needed">++++ <path id="stub.jars">++ <!-- this needs to be a list of all jars that might contain++ classes we want to build factories for++ -->++ <fileset dir="${lucene-libs}">++ <include name="*.jar"/>++ </fileset>++ <fileset dir="${dist}">++ <include name="*.jar"/>++ <exclude name="*solrj*.jar"/>++ </fileset>++ </path>++ <pathconvert property="jar.list" pathsep=" " refid="stub.jars" />++ <path id="missing.factories.classpath">++ <pathelement path="${common.dir}/contrib/queries/lib/jakarta-regexp-1.4.jar"/>++ <path refid="test.classpath"/>++ </path>++ <property name="stub.list" value="${dest}/need-stub-factories.txt" />++ <java fork="false"++ classname="org.apache.solr.util.SuggestMissingFactories"+ logError="true"- failonerror="true">- <classpath>- <fileset dir="luke">- <include name="luke-${luke.version}.jar"/>- </fileset>- <path refid="lucene.classpath"/>- <path refid="luke.classpath"/>- <path refid="test.run.classpath"/>- </classpath>++ failonerror="true"++ classpathref="missing.factories.classpath"++ output="${stub.list}">++ <arg line="${jar.list}" />+ </java>++ <fail unless="stub.src.path">...++++ This task requires that the property 'stub.src.path' be set.++++ It must contain a "path" listing directories containing source++ files that this task should use when looking for classes that++ need factories created, the format is platform specific --++ typically it is colon seperated in Unix, semi-colon seperated++ on windows, ie:++++ ant stub-factories -Dstub.src.path="core/src:../lucene/contrib:../lucene/src/java:../modules/analysis"++++ FYI: The file ${stub.list} contains a list of classes++ that seem to need stub factories. (if java files can be found to++ use as guides for creating them).++ </fail>++++ <pathconvert pathsep=" " property="stub.src.dirs">++ <path>++ <pathelement path="${stub.src.path}"/>++ </path>++ </pathconvert>++ <exec executable="perl"++ dir="core/src/java/org/apache/solr/analysis/"++ failonerror="true">++ <arg value="${common-solr.dir}/dev-tools/stub-analysis-factory-maker.pl"/>++ <redirector input="${stub.list}">++ <!-- place to put special case classes we want to ignore -->++ <inputfilterchain>++ <linecontainsregexp negate="true">++ <!-- only for internal Solr highlighting purposes -->++ <regexp pattern="TokenOrderingFilter"/>++ </linecontainsregexp>++ <linecontainsregexp negate="true">++ <!-- no way to leverage this in Solr -->++ <regexp pattern="CachingTokenFilter"/>++ </linecontainsregexp>++ <linecontainsregexp negate="true">++ <!-- no way to leverage this in Solr -->++ <regexp pattern="HyphenationCompoundWordTokenFilter"/>++ </linecontainsregexp>++ <linecontainsregexp negate="true">++ <!-- no way to leverage these in Solr (yet) -->++ <regexp pattern="Sink|Tee"/>++ </linecontainsregexp>++ <linecontainsregexp negate="true">++ <!-- Solr already has a different impl for this -->++ <regexp pattern="SynonymTokenFilter"/>++ </linecontainsregexp>++ <linecontainsregexp negate="true">++ <!-- solr and lucene both have one? ? ? ? -->++ <regexp pattern="LengthFilter"/>++ </linecontainsregexp>++ <linecontainsregexp negate="true">++ <!-- solr provides it's own SnowballPorterFilter variant -->++ <regexp pattern="SnowballFilter"/>++ </linecontainsregexp>++ </inputfilterchain>++ </redirector>++ <arg line="${stub.src.dirs}"/>++ </exec>++ </target>++++ <target name="build-site" depends="svn-up"++ description="Committers' Helper: build the site and copy to site/.">++ <delete dir="site-src/build"/>++ <exec executable="forrest" dir="site-src"/>++ <copy todir="site">++ <fileset dir="site-src/build/site"/>++ </copy>++ <antcall target="svn-up"/>++ </target>++++ <target name="svn-up">++ <exec executable="${svn.exe}">++ <arg value="update"/>++ </exec></target>--</project>--diff --cc solr/common-build.xmlindex f49b2f3c330,ae3ce3bf43f..917a54189c6--- a/solr/common-build.xml+++ b/solr/common-build.xml@@@ -23,109 -23,591 +23,166 @@@<dirname file="${ant.file.common-solr}" property="common-solr.dir"/>- <!-- change this together with the default and test's solrconfig.xml after starting a new development branch: -->- <property name="tests.luceneMatchVersion" value="4.0"/>-- <!-- Initialize property values: allow easy customization via build.properties -->- <property file="build.properties" />-<property name="Name" value="Solr" />-- <property name="name" value="${ant.project.name}"/>-- <property name="dev-tools.dir" value="${solr-path}/../dev-tools"/>- <property name="prettify.dir" value="${solr-path}/../lucene/src/tools/prettify"/>- <property name="package.dir" location="package"/>-- <tstamp>- <format property="year" pattern="yyyy"/>- <format property="DSTAMP" pattern="yyyy-MM-dd"/>- <format property="TSTAMP" pattern="HH:mm:ss"/>- <!-- datetime format that is safe to treat as part of a dotted version -->- <format property="dateversion" pattern="yyyy.MM.dd.HH.mm.ss" />- </tstamp>-- <property name="junit.details" value="1"/>-- <!-- default arguments to pass to jvm executing tests -->- <property name="args" value="" />-- <!-- TODO: measure toning this down by default to 1 -->+ <property name="version" value="4.0-SNAPSHOT"/>- <property name="final.name" value="apache-${name}-${version}"/>-++ <property name="fullname" value="apache-${ant.project.name}"/>++ <property name="fullnamever" value="${fullname}-${version}"/>++ <property name="final.name" value="${fullnamever}"/>+++ <!-- solr uses 1.6 -->+ <property name="javac.source" value="1.6"/>+ <property name="javac.target" value="1.6"/>-- <!-- solr uses its own build/dist directories -->- <property name="build.dir" location="${common-solr.dir}/build"/>- <property name="dist.dir" location="${common-solr.dir}/dist"/>- <property name="tests.userdir" value="${common-solr.dir}/src/test-files"/>- <property name="javadoc.dir" location="${common-solr.dir}/build/docs/api"/>- <property name="javadoc.link" value="http://download.oracle.com/javase/6/docs/api/"/>++++ <property name="dest" value="${common-solr.dir}/build" />++ <property name="build.dir" location="${dest}/${ant.project.name}"/>++ <property name="dist" location="${common-solr.dir}/dist"/>++ <property name="package.dir" location="${common-solr.dir}/package"/>++ <property name="maven.dist.dir" location="${package.dir}/maven"/>++ <property name="lucene-libs" location="${dest}/lucene-libs" />++ <property name="manifest.file" location="${dest}/META-INF/MANIFEST.MF"/>++ <property name="tests.userdir" value="src/test-files"/>++ <property name="example" value="${common-solr.dir}/example" />++ <property name="javadoc.dir" location="${build.dir}/docs/api"/>++ <property name="javadoc.link" value="http://java.sun.com/javase/6/docs/api/"/>++ <property name="tests.loggingfile" value="${common-solr.dir}/testlogging.properties"/>+ <property name="tests.threadspercpu" value="2"/>- <condition property="tests.sequential">- <or>- <isset property="testcase"/>- <equals arg1="${tests.threadspercpu}" arg2="0"/>- </or>- </condition>- <property name="tests.multiplier" value="1" />- <property name="tests.codecprovider" value="random" />- <property name="tests.codec" value="randomPerField" />- <property name="tests.locale" value="random" />- <property name="tests.timezone" value="random" />- <property name="tests.iter" value="1" />- <property name="tests.seed" value="random" />- <property name="tests.nightly" value="false" />- <property name="tests.verbose" value="false" />- <property name="tests.directory" value="random" />-- <condition property="dir.prop" value="-Dsolr.directoryFactory=solr.StandardDirectoryFactory">- <isset property="use.fsdir"/>- </condition>-- <!-- Example directory -->- <property name="example" value="${common-solr.dir}/example" />- <!--- we attempt to exec svnversion to get details build information- for jar manifests. this property can be set at runtime to an- explicit path as needed, or ant will just try to find it in the- default PATH. (this is useful for Hudson)- -->- <property name="svnversion.exe" value="svnversion" />- <property name="svn.exe" value="svn" />+ <path id="additional.dependencies">+ <fileset dir="${common-solr.dir}/lib" includes="**/*.jar"/>+ <fileset dir="${common-solr.dir}/example/lib" includes="**/*.jar"/>+ <fileset dir="lib" includes="**/*.jar" erroronmissingdir="false"/>+ </path>- <!-- Java Version we are compatible with -->- <property name="java.compat.version" value="1.6" />+ <pathconvert property="project.classpath" targetos="unix" refid="additional.dependencies"/>- <property name="tests.loggingfile" value="${common-solr.dir}/testlogging.properties"/>- <!-- clover wants to run with -lib, otherwise we prefer a repeatable- classpath -->- <property name="javac.includeAntRuntime" value="${run.clover}"/>++ <import file="${common-solr.dir}/../lucene/contrib/contrib-build.xml"/>- <property name="tests.threadspercpu" value="2"/>- <!-- Solr Implementation Version -->- <!--- This can be any string value that does not include spaces- This will be used when creating build artifact file names.++ <!-- Solr Specification Version+- By default, this should be set to "X.Y.N-SNAPSHOT" where X.Y.N is- "1 greater" then the last version released (on this branch).- -->- <property name="version" value="4.0-SNAPSHOT" />-- <!-- Solr Specification Version -->- <!--+ This will be used in the Manifest file, and therefore must+ match the pattern "digit+{.digit+}*"-+- <import file="../lucene/contrib/contrib-build.xml"/>- <property name="tests.directory" value="random" />+ By default, this should be set to "X.Y.M.${dateversion}"+ where X.Y.M is the last version released (on this branch).+ -->- <property name="specversion" value="4.0.0.${dateversion}" />--- <!-- Type of checksum to compute for distribution files -->- <property name="checksum.algorithm" value="md5" />-- <property name="fullname" value="apache-${ant.project.name}"/>- <property name="fullnamever" value="apache-${ant.project.name}-${version}"/>-- <!-- Destination for compiled classes and binaries -->- <property name="dest" value="build" />-- <!-- Destination for Lucene jars -->- <property name="lucene-libs" location="lucene-libs" />-- <!-- Javadoc properties -->- <property name="javadoc.years" value="2006 - ${year}" />- <property name="javadoc.access" value="protected"/>- <property name="javadoc.link.java"- value="http://download.oracle.com/javase/6/docs/api/"/>- <property name="javadoc.link.junit"- value="http://junit.sourceforge.net/javadoc/"/>- <property name="javadoc.link.lucene"- value="https://builds.apache.org/job/Lucene-trunk/javadoc/all/"/>- <property name="javadoc.packages" value="org.apache.solr.*"/>- <property name="build.docs" value="${dest}/docs"/>- <property name="build.javadoc" value="${common-solr.dir}/${build.docs}/api"/>- <property name="build.javadoc.solrj" value="${build.docs}/api-solrj"/>-- <!-- JUnit properties -->- <property name="testmethod" value=""/>- <property name="junit.includes" value="**/Test*.java,**/*Test.java"/>- <property name="junit.output.dir" location="${common-solr.dir}/${dest}/test-results"/>- <property name="junit.reports" location="${common-solr.dir}/${dest}/test-results/reports"/>- <property name="junit.formatter" value="plain"/>- <condition property="junit.details.formatter"- value="org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"- else="org.apache.lucene.util.LuceneJUnitResultFormatter">- <isset property="tests.sequential"/>- </condition>- <property name="junit.parallel.selector" value="org.apache.lucene.util.LuceneJUnitDividingSelector"/>-- <!-- Maven properties -->- <property name="maven.build.dir" value="${basedir}/build/maven"/>- <property name="maven.dist.dir" value="${package.dir}/maven"/>-- <property name="maven.dist.prefix" value="${maven.dist.dir}/org/apache/solr"/>-- <!-- By default, "deploy" to a temporary directory (as well as installing- into your local repository). If you wish to deploy to a remote- repository, set this property to the URL of that repository. In- addition, if the repository requires authentication, you can set- properties "m2.repository.username" and either- "m2.repository.private.key" or "m2.repository.password" to define- your credentials.- -->- <property name="m2.repository.url" value="file://${maven.dist.dir}"/>- <property name="m2.repository.private.key" value="${user.home}/.ssh/id_dsa"/>-- <path id="maven-ant-tasks.classpath">- <fileset dir="${common-solr.dir}/../lucene/lib">- <include name="maven-ant-tasks-*.jar"/>- </fileset>- </path>-- <!-- End Maven Properties -->-- <available property="clover.present"- classname="com.cenqua.clover.tasks.CloverReportTask"- />- <condition property="clover.enabled">- <and>- <isset property="run.clover"/>- <isset property="clover.present"/>- </and>- </condition>-- <!-- Lucene -->-- <path id="lucene.classpath">- <pathelement location="${common-solr.dir}/../lucene/build/classes/java" />- <pathelement location="${common-solr.dir}/../modules/analysis/build/common/classes/java" />- <pathelement location="${common-solr.dir}/../modules/analysis/build/phonetic/classes/java" />- <pathelement location="${common-solr.dir}/../modules/suggest/build/classes/java" />- <pathelement location="${common-solr.dir}/../lucene/build/contrib/highlighter/classes/java" />- <pathelement location="${common-solr.dir}/../lucene/build/contrib/memory/classes/java" />- <pathelement location="${common-solr.dir}/../lucene/build/contrib/misc/classes/java" />- <pathelement location="${common-solr.dir}/../lucene/build/contrib/queries-contrib/classes/java" />- <pathelement location="${common-solr.dir}/../lucene/build/contrib/spatial/classes/java" />- <pathelement location="${common-solr.dir}/../modules/grouping/build/classes/java" />- <pathelement location="${common-solr.dir}/../modules/queries/build/classes/java" />- </path>-- <target name="prep-lucene-jars">- <sequential>- <subant target="jar-core" inheritall="false" failonerror="true">- <fileset dir="../lucene/" includes="build.xml" />- </subant>- <subant target="jar" inheritall="false" failonerror="true">- <fileset dir="../modules/analysis/common" includes="build.xml" />- <fileset dir="../modules/analysis/phonetic" includes="build.xml" />- <fileset dir="../modules/suggest" includes="build.xml" />- <fileset dir="../lucene/contrib/highlighter" includes="build.xml" />- <fileset dir="../lucene/contrib/memory" includes="build.xml" />- <fileset dir="../lucene/contrib/misc" includes="build.xml" />- <fileset dir="../lucene/contrib/queries" includes="build.xml" />- <fileset dir="../lucene/contrib/spatial" includes="build.xml" />- <fileset dir="../modules/grouping" includes="build.xml" />- </subant>- </sequential>++ <property name="solr.spec.version" value="4.0.0.${dateversion}" />++ <!-- solr depends on the following modules/contribs -->+ <module-uptodate name="analysis/common" jarfile="${common.dir}/../modules/analysis/build/common/lucene-analyzers-common-${version}.jar"+ property="analyzers-common.uptodate" classpath.property="analyzers-common.jar"/>+ <module-uptodate name="analysis/phonetic" jarfile="${common.dir}/../modules/analysis/build/phonetic/lucene-analyzers-phonetic-${version}.jar"+ property="analyzers-phonetic.uptodate" classpath.property="analyzers-phonetic.jar"/>+ <module-uptodate name="suggest" jarfile="${common.dir}/../modules/suggest/build/lucene-suggest-${version}.jar"+ property="suggest.uptodate" classpath.property="suggest.jar"/>+ <module-uptodate name="grouping" jarfile="${common.dir}/../modules/grouping/build/lucene-grouping-${version}.jar"+ property="grouping.uptodate" classpath.property="grouping.jar"/>+ <module-uptodate name="queries" jarfile="${common.dir}/../modules/queries/build/lucene-queries-${version}.jar"+ property="queries.uptodate" classpath.property="queries.jar"/>+ <contrib-uptodate name="highlighter" property="highlighter.uptodate" classpath.property="highlighter.jar"/>+ <contrib-uptodate name="memory" property="memory.uptodate" classpath.property="memory.jar"/>+ <contrib-uptodate name="misc" property="misc.uptodate" classpath.property="misc.jar"/>+ <contrib-uptodate name="queries-contrib" contrib-src-name="queries" property="queries-contrib.uptodate" classpath.property="queries-contrib.jar"/>+ <contrib-uptodate name="spatial" property="spatial.uptodate" classpath.property="spatial.jar"/>+++ <target name="compile-analyzers-common" unless="analyzers-common.uptodate">++ <ant dir="${common.dir}/../modules/analysis/common" target="default" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>+ </target>-- <target name="lucene-jars-to-solr" depends="prep-lucene-jars">- <mkdir dir="${lucene-libs}"/>- <copy todir="${lucene-libs}" preservelastmodified="true" flatten="true" failonerror="true" overwrite="true">- <fileset dir="../lucene/build/">- <include name="lucene-core-${version}.jar" />- </fileset>- <fileset dir="../modules/analysis/build/common">- <include name="lucene-analyzers-common-${version}.jar" />- </fileset>- <fileset dir="../modules/analysis/build/phonetic">- <include name="lucene-analyzers-phonetic-${version}.jar" />- </fileset>- <fileset dir="../modules/suggest/build">- <include name="lucene-suggest-${version}.jar" />- </fileset>- <fileset dir="../lucene/build/contrib/highlighter">- <include name="lucene-highlighter-${version}.jar" />- </fileset>- <fileset dir="../lucene/build/contrib/memory">- <include name="lucene-memory-${version}.jar" />- </fileset>- <fileset dir="../lucene/build/contrib/misc">- <include name="lucene-misc-${version}.jar" />- </fileset>- <fileset dir="../lucene/build/contrib/queries-contrib">- <include name="lucene-queries-contrib-${version}.jar" />- </fileset>- <fileset dir="../lucene/build/contrib/spatial">- <include name="lucene-spatial-${version}.jar" />- </fileset>- <fileset dir="../modules/grouping/build">- <include name="lucene-grouping-${version}.jar" />- </fileset>- <fileset dir="../modules/queries/build">- <include name="lucene-queries-${version}.jar" />- </fileset>- </copy>- </target>-- <target name="compile-lucene" unless="lucene-compiled">- <property name="lucene-compiled" value="true"/>- <subant target="default">- <fileset dir="../modules/analysis/common" includes="build.xml"/>- <fileset dir="../modules/analysis/phonetic" includes="build.xml"/>- <fileset dir="../modules/suggest" includes="build.xml"/>- <fileset dir="../lucene/contrib/highlighter" includes="build.xml"/>- <fileset dir="../lucene/contrib/memory" includes="build.xml"/>- <fileset dir="../lucene/contrib/misc" includes="build.xml"/>- <fileset dir="../lucene/contrib/queries" includes="build.xml"/>- <fileset dir="../lucene/contrib/spatial" includes="build.xml"/>- <fileset dir="../modules/grouping" includes="build.xml"/>- <fileset dir="../modules/queries" includes="build.xml"/>- </subant>++ <target name="compile-analyzers-phonetic" unless="analyzers-phonetic.uptodate">++ <ant dir="${common.dir}/../modules/analysis/phonetic" target="default" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>+ </target>--- <!-- Macro for compilation -->- <macrodef name="solr-javac">- <attribute name="destdir" />- <attribute name="classpathref" />- <element name="nested" optional="true" implicit="true" />- <sequential>- <mkdir dir="@{destdir}" />- <javac destdir="@{destdir}"- target="${java.compat.version}"- source="${java.compat.version}"- debug="on"- encoding="utf8"- includeAntRuntime="${javac.includeAntRuntime}"- sourcepath=""- classpathref="@{classpathref}">- <compilerarg line="-Xlint -Xlint:-deprecation -Xlint:-serial"/>- <nested />- </javac>- </sequential>- </macrodef>-- <!-- Macro for building Jars -->- <macrodef name="solr-jar">- <attribute name="destfile" />- <attribute name="basedir" default="." />- <attribute name="includes" default="org/apache/**" />- <attribute name="excludes" default="" />- <attribute name="manifest" default="${common-solr.dir}/${dest}/META-INF/MANIFEST.MF" />- <element name="nested" optional="true" implicit="true" />- <sequential>- <jar destfile="@{destfile}"- basedir="@{basedir}"- includes="@{includes}"- excludes="@{excludes}"- filesetmanifest="skip"- manifest="@{manifest}">- <metainf dir="${common-solr.dir}" includes="LICENSE.txt,NOTICE.txt"/>- <nested />- </jar>- </sequential>- </macrodef>-- <!-- Macro for building checksum files- This is only needed until the "format" option is supported- by ant's built in checksum task- -->- <macrodef name="solr-checksum">- <attribute name="file"/>- <sequential>- <echo>Building checksums for '@{file}'</echo>- <checksum file="@{file}" algorithm="md5" format="MD5SUM" forceoverwrite="yes" readbuffersize="65536"/>- <checksum file="@{file}" algorithm="sha1" format="MD5SUM" forceoverwrite="yes" readbuffersize="65536"/>- </sequential>- </macrodef>--- <macrodef name="contrib-crawl">- <attribute name="target" default=""/>- <attribute name="failonerror" default="true"/>- <sequential>- <subant target="@{target}" failonerror="@{failonerror}">- <property name="lucene-compiled" value="${lucene-compiled}"/>- <fileset dir="."- includes="contrib/*/build.xml"- />- </subant>- </sequential>- </macrodef>-- <property name="failonjavadocwarning" value="true"/>- <macrodef name="invoke-javadoc">- <element name="sources" optional="yes"/>- <attribute name="destdir"/>- <attribute name="title" default="${Name} ${version} API (${specversion})"/>- <sequential>- <mkdir dir="@{destdir}"/>- <copy todir="@{destdir}/prettify" overwrite="false">- <fileset dir="${prettify.dir}"/>- </copy>- <record name="@{destdir}/log_javadoc.txt" action="start" append="no"/>- <javadoc- packagenames="org.apache.solr.*"- failonerror="true"- destdir="@{destdir}"- access="${javadoc.access}"- encoding="utf-8"- author="true"- version="true"- use="true"- source="${ant.java.version}"- link="${javadoc.link.java}"- windowtitle="${Name} ${version} API"- doctitle="@{title}"- stylesheetfile="@{destdir}/prettify/stylesheet+prettify.css"- bottom="Copyright &copy; ${year} Apache Software Foundation. All Rights Reserved.">- <tag name="todo" description="To Do:"/>- <tag name="uml.property" description="UML Property:"/>- <tag name="lucene.experimental"- description="WARNING: This API is experimental and might change in incompatible ways in the next release."/>- <tag name="lucene.internal"- description="NOTE: This API is for Lucene internal purposes only and might change in incompatible ways in the next release."/>- <link offline="true" packagelistLoc="${build.javadoc}"/>- <link href="${javadoc.link.java}"/>- <link href="${javadoc.link.junit}"/>- <link href="${javadoc.link.lucene}"/>- <header><![CDATA[- <script src="{@docRoot}/prettify/prettify.js" type="text/javascript"></script>- <script language="JavaScript">window.onload=function(){windowTitle();prettyPrint();}</script>- ]]></header>-- <sources />-- <classpath refid="javadoc.classpath"/>- </javadoc>- <record name="@{destdir}/log_javadoc.txt" action="stop"/>-- <delete>- <fileset file="@{destdir}/log_javadoc.txt">- <not>- <containsregexp expression="\[javadoc\]\s*[1-9][0-9]*[\s]*warning"/>- </not>- </fileset>- </delete>-- <fail message="Javadocs warnings were found!" >- <condition>- <and>- <available file="@{destdir}/log_javadoc.txt"/>- <istrue value="${failonjavadocwarning}"/>- </and>- </condition>- </fail>- </sequential>- </macrodef>-- <!-- NOTE, the pom.xml MUST be a relative path. An absolute path may break the build on windows -->- <macrodef name="m2-deploy" description="Builds a Maven artifact">- <element name="artifact-attachments" optional="yes"/>- <attribute name="pom.xml" default="pom.xml"/>- <attribute name="jar.file" default="${jar.file}"/>- <sequential>- <artifact:install-provider artifactId="wagon-ssh" version="1.0-beta-7"/>- <artifact:pom id="maven.project" file="@{pom.xml}"/>- <artifact:deploy file="@{jar.file}">- <artifact-attachments/>- <remoteRepository url="${m2.repository.url}">- <authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}" password="${m2.repository.password}"/>- </remoteRepository>- <pom refid="maven.project"/>- </artifact:deploy>- </sequential>- </macrodef>-- <macrodef name="m2-deploy-with-pom-template" description="Builds a Maven artifact given a POM template">- <attribute name="pom.xml"/>- <attribute name="jar.file"/>- <sequential>- <copy file="@{pom.xml}" tofile="${maven.build.dir}/@{pom.xml}">- <filterset begintoken="@" endtoken="@">- <filter token="version" value="${version}"/>- </filterset>- </copy>- <artifact:install-provider artifactId="wagon-ssh" version="1.0-beta-7"/>- <artifact:pom id="maven.project" file="${maven.build.dir}/@{pom.xml}" />- <artifact:deploy file="@{jar.file}">- <remoteRepository url="${m2.repository.url}">- <authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}" password="${m2.repository.password}"/>- </remoteRepository>- <pom refid="maven.project"/>- </artifact:deploy>- </sequential>- </macrodef>-- <property name="gpg.exe" value="gpg" />- <property name="gpg.key" value="CODE SIGNING KEY" />- <macrodef name="sign-artifact" description="Signs the artifact">- <attribute name="input.file"/>- <attribute name="output.file" default="@{input.file}.asc"/>- <attribute name="gpg.passphrase"/>- <sequential>- <echo >Signing @{input.file} Sig File: @{output.file}</echo>-- <exec executable="${gpg.exe}" >- <arg value="--batch"/>- <arg value="--armor"/>- <arg value="--output"/>- <arg value="@{output.file}"/>- <arg value="--default-key"/>- <arg value="${gpg.key}"/>- <arg value="--passphrase"/>- <arg value="@{gpg.passphrase}"/>- <arg value="--detach-sig"/>- <arg value="@{input.file}"/>- </exec>- </sequential>- </macrodef>-- <!--- We need to sign:- The POM- The library jar- The sources jar- the javadoc jar- -->- <macrodef name="sign-maven-artifacts" description="Signs maven artifacts">- <attribute name="artifact.id"/>- <attribute name="prefix.dir" default="${maven.dist.prefix}"/>- <attribute name="gpg.passphrase"/>- <sequential>- <sign-artifact input.file="@{prefix.dir}/@{artifact.id}/${version}/@{artifact.id}-${version}.jar" gpg.passphrase="@{gpg.passphrase}"/>- <sign-artifact input.file="@{prefix.dir}/@{artifact.id}/${version}/@{artifact.id}-${version}-javadoc.jar" gpg.passphrase="@{gpg.passphrase}"/>- <sign-artifact input.file="@{prefix.dir}/@{artifact.id}/${version}/@{artifact.id}-${version}-sources.jar" gpg.passphrase="@{gpg.passphrase}"/>- <sign-artifact input.file="@{prefix.dir}/@{artifact.id}/${version}/@{artifact.id}-${version}.pom" gpg.passphrase="@{gpg.passphrase}"/>- </sequential>- </macrodef>-- <macrodef name="sign-maven-war-artifacts" description="Signs maven artifacts">- <attribute name="artifact.id"/>- <attribute name="prefix.dir" default="${maven.dist.prefix}"/>- <attribute name="gpg.passphrase"/>- <sequential>- <sign-artifact input.file="@{prefix.dir}/@{artifact.id}/${version}/@{artifact.id}-${version}.war" gpg.passphrase="@{gpg.passphrase}"/>- <sign-artifact input.file="@{prefix.dir}/@{artifact.id}/${version}/@{artifact.id}-${version}.pom" gpg.passphrase="@{gpg.passphrase}"/>- </sequential>- </macrodef>-- <macrodef name="sign-maven-dependency-artifacts" description="Signs a maven artifact and its POM">- <attribute name="artifact.id"/>- <attribute name="prefix.dir" default="${maven.dist.prefix}"/>- <attribute name="gpg.passphrase"/>- <sequential>- <sign-artifact input.file="@{prefix.dir}/@{artifact.id}/${version}/@{artifact.id}-${version}.jar" gpg.passphrase="@{gpg.passphrase}"/>- <sign-artifact input.file="@{prefix.dir}/@{artifact.id}/${version}/@{artifact.id}-${version}.pom" gpg.passphrase="@{gpg.passphrase}"/>- </sequential>- </macrodef>-- <!-- setup proxy for download tasks -->- <condition property="proxy.specified">- <or>- <isset property="proxy.host"/>- <isset property="proxy.port"/>- <isset property="proxy.user"/>- </or>- </condition>-- <target name="proxy.setup" if="proxy.specified">- <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}" proxyuser="${proxy.user}" proxypassword="${proxy.password}"/>++ <target name="compile-suggest" unless="suggest.uptodate">++ <ant dir="${common.dir}/../modules/suggest" target="default" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>+ </target>--- <target name="clean-contrib"- description="Cleans all contrib modules and their tests">- <contrib-crawl target="clean"/>++ <target name="compile-grouping" unless="grouping.uptodate">++ <ant dir="${common.dir}/../modules/grouping" target="default" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>+ </target>-- <target name="build-contrib"- description="Builds all contrib modules and their tests">- <contrib-crawl target="build"/>++ <target name="compile-queries" unless="queries.uptodate">++ <ant dir="${common.dir}/../modules/queries" target="default" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>+ </target>-- <target name="test-contrib" depends="build-contrib">- <contrib-crawl target="test" failonerror="true"/>++ <target name="compile-highlighter" unless="highlighter.uptodate">++ <ant dir="${common.dir}/contrib/highlighter" target="default" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>+ </target>-- <target name="compile-test-contrib" depends="build-contrib">- <contrib-crawl target="compileTests" failonerror="true"/>++ <target name="compile-memory" unless="memory.uptodate">++ <ant dir="${common.dir}/contrib/memory" target="default" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>+ </target>-- <target name="dist-contrib" description="Make the contribs ready for distribution">- <contrib-crawl target="dist" failonerror="true" />++ <target name="compile-misc" unless="misc.uptodate">++ <ant dir="${common.dir}/contrib/misc" target="default" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>+ </target>-- <target name="example-contrib" description="Tell the contrib to add their stuff to examples">- <contrib-crawl target="example" failonerror="true" />++ <target name="compile-queries-contrib" unless="queries-contrib.uptodate">++ <ant dir="${common.dir}/contrib/queries" target="default" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>++ </target>++ <target name="compile-spatial" unless="spatial.uptodate">++ <ant dir="${common.dir}/contrib/spatial" target="default" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>++ </target>++ <!-- xml-query-parser contrib is required by the "luke" target -->++ <target name="compile-xml-query-parser" unless="xml-query-parser.uptodate">++ <ant dir="${common.dir}/contrib/xml-query-parser" target="compile-core" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>+ </target>+- <!-- Creates a Manifest file for Jars and WARs -->- <target name="make-manifest">- <!-- If possible, include the svnversion -->- <exec dir="." executable="${svnversion.exe}" outputproperty="svnversion" failifexecutionfails="false">- <arg line="."/>- </exec>-- <!-- no description, don't advertise -->- <mkdir dir="${dest}/META-INF/" />- <manifest mode="replace" file="${dest}/META-INF/MANIFEST.MF">- <!--- http://java.sun.com/j2se/1.6.0/docs/guide/jar/jar.html#JAR%20Manifest- http://java.sun.com/j2se/1.6.0/docs/guide/versioning/spec/versioning2.html- http://java.sun.com/j2se/1.6.0/docs/api/java/lang/Package.html- http://java.sun.com/j2se/1.6.0/docs/api/java/util/jar/package-summary.html- http://java.sun.com/developer/Books/javaprogramming/JAR/basics/manifest.html- -->- <!-- Don't set 'Manifest-Version' it identifies the version of the- manifest file format, and should always be 1.0 (the default)-- Don't set 'Created-by' attribute, its purpose is- to identify the version of java used to build the jar,- which ant will do by default.+ <path id="solr.base.classpath">+ <pathelement path="${analyzers-common.jar}"/>+ <pathelement path="${analyzers-phonetic.jar}"/>+ <pathelement path="${highlighter.jar}"/>+ <pathelement path="${memory.jar}"/>+ <pathelement path="${misc.jar}"/>+ <pathelement path="${queries-contrib.jar}"/>+ <pathelement path="${spatial.jar}"/>+ <pathelement path="${suggest.jar}"/>+ <pathelement path="${grouping.jar}"/>+ <pathelement path="${queries.jar}"/>- <pathelement location="${common-solr.dir}/build/classes/solrj"/>- <pathelement location="${common-solr.dir}/build/classes/webapp"/>- <pathelement location="${common-solr.dir}/build/classes/java"/>- <path refid="base.classpath"/>++ <pathelement location="${common-solr.dir}/build/solr-solrj/classes/java"/>++ <pathelement location="${common-solr.dir}/build/solr-core/classes/java"/>++ <path refid="base.classpath"/>+ </path>- Ant will happily override these with bogus strings if you- tell it to, so don't.+ <path id="classpath" refid="solr.base.classpath"/>- NOTE: we don't use section info because all of our manifest data- applies to the entire jar/war ... no package specific info.- -->- <attribute name="Extension-Name"- value="org.apache.solr"/>- <attribute name="Specification-Title"- value="Apache Solr Search Server"/>- <!-- spec version must match "digit+{.digit+}*" -->- <attribute name="Specification-Version"- value="${specversion}"/>- <attribute name="Specification-Vendor"- value="The Apache Software Foundation"/>- <attribute name="Implementation-Title"- value="org.apache.solr"/>- <!-- impl version can be any string -->- <attribute name="Implementation-Version"- value="${version} ${svnversion} - ${user.name} - ${DSTAMP} ${TSTAMP}"/>- <attribute name="Implementation-Vendor"- value="The Apache Software Foundation"/>- <attribute name="X-Compile-Source-JDK"- value="${java.compat.version}"/>- <attribute name="X-Compile-Target-JDK"- value="${java.compat.version}"/>- </manifest>- </target>+ <path id="solr.test.base.classpath">- <pathelement path="${common-solr.dir}/build/classes/test-framework"/>- <pathelement path="${common-solr.dir}/build/classes/test"/>++ <pathelement path="${common-solr.dir}/build/solr-test-framework/classes/java"/>++ <pathelement path="${common-solr.dir}/build/solr-core/classes/test"/>+ <pathelement path="${tests.userdir}"/>+ <path refid="test.base.classpath"/>+ </path>++ <path id="test.classpath" refid="solr.test.base.classpath"/>+- <!-- TODO: lucene and solr should share this macro -->- <macrodef name="contrib-crawl">- <attribute name="target" default=""/>- <attribute name="failonerror" default="true"/>- <sequential>- <subant target="@{target}" failonerror="@{failonerror}">- <property name="core.compiled" value="true"/>- <property name="solr.core.compiled" value="true"/>- <fileset dir="." includes="contrib/*/build.xml"/>- </subant>- </sequential>- </macrodef>-+ <macrodef name="solr-contrib-uptodate">+ <attribute name="name"/>+ <attribute name="property" default="@{name}.uptodate"/>+ <attribute name="classpath.property" default="@{name}.jar"/>+ <!-- set jarfile only, if the target jar file has no generic name -->+ <attribute name="jarfile" default="${common-solr.dir}/build/contrib/@{name}/@{name}-${version}.jar"/>+ <sequential>+ <!--<echo message="Checking '@{jarfile}' against source folder '${common.dir}/contrib/@{name}/src/java'"/>-->+ <property name="@{classpath.property}" location="@{jarfile}"/>+ <uptodate property="@{property}" targetfile="@{jarfile}">+ <srcfiles dir="${common-solr.dir}/contrib/@{name}/src/java" includes="**/*.java"/>+ </uptodate>+ </sequential>+ </macrodef>- <!-- Validation --><target name="validate" depends="validate-solr"/><target name="validate-solr" depends="check-legal-solr" unless="validated-solr"/>@@@ -139,40 -621,38 +196,163 @@@--><!-- Solr --><arg value="-c" />-- <arg value="${basedir}/lib" />++ <arg value="${common-solr.dir}/lib" />+ <arg value="-c" />- <arg value="${basedir}/contrib/analysis-extras/lib" />++ <arg value="${common-solr.dir}/contrib/analysis-extras/lib" /><arg value="-c" />- <arg value="${basedir}/contrib/clustering/lib" />- <arg value="${basedir}/contrib/analysis-extras/lib" />++ <arg value="${common-solr.dir}/contrib/clustering/lib" /><arg value="-c" />- <arg value="${basedir}/contrib/dataimporthandler/lib" />- <arg value="${basedir}/contrib/clustering/lib" />++ <arg value="${common-solr.dir}/contrib/dataimporthandler/lib" /><arg value="-c" />- <arg value="${basedir}/contrib/dataimporthandler-extras/lib" />- <arg value="${basedir}/contrib/dataimporthandler/lib" />++ <arg value="${common-solr.dir}/contrib/dataimporthandler-extras/lib" /><arg value="-c" />-- <arg value="${basedir}/contrib/extraction/lib" />++ <arg value="${common-solr.dir}/contrib/extraction/lib" /><arg value="-c" />-- <arg value="${basedir}/contrib/uima/lib" />++ <arg value="${common-solr.dir}/contrib/uima/lib" /><arg value="-c" />-- <arg value="${basedir}/example/example-DIH/solr/db/lib" />++ <arg value="${common-solr.dir}/example/example-DIH/solr/db/lib" /><arg value="-c" />-- <arg value="${basedir}/example/example-DIH/solr/mail/lib" />++ <arg value="${common-solr.dir}/example/example-DIH/solr/mail/lib" /><arg value="-c" />-- <arg value="${basedir}/example/example/lib" />++ <arg value="${common-solr.dir}/example/example/lib" /><arg value="-c" />-- <arg value="${basedir}/src/test-files/solr/lib" />++ <arg value="${common-solr.dir}/core/src/test-files/solr/lib" /></java>++ <property name="validated-solr" value="true"/></target>-<path id="tools.runtime.classpath">-- <pathelement location="${common-solr.dir}/../lucene/build/classes/tools"/>++ <pathelement location="${common.dir}/build/classes/tools"/></path>-- <target name="compile-tools" description="Compile the Test Framework and Validation tools">-- <sequential>-- <subant target="compile-tools" inheritall="false" failonerror="true">-- <fileset dir="${common-solr.dir}/../lucene" includes="build.xml" />-- </subant>-- </sequential>++++ <target name="init-dist" >++ <mkdir dir="${build.dir}"/>++ <mkdir dir="${package.dir}"/>++ <mkdir dir="${dist}"/>++ <mkdir dir="${maven.dist.dir}"/>+ </target>+- <target name="test" depends="compile-test,validate-solr,junit-mkdir,junit-sequential,junit-parallel" description="Runs unit tests"/>-++ <target name="prep-lucene-jars"++ depends="compile-analyzers-common, compile-analyzers-phonetic, compile-suggest,++ compile-highlighter, compile-memory, compile-misc, compile-queries-contrib,++ compile-spatial, compile-grouping, compile-queries">++ <ant dir="${common.dir}" target="default" inheritall="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>++ </target>++++ <target name="lucene-jars-to-solr" depends="prep-lucene-jars">++ <copy todir="${lucene-libs}" preservelastmodified="true" flatten="true" failonerror="true" overwrite="true">++ <fileset file="${common.dir}/build/lucene-core-${version}.jar" />++ <fileset file="${analyzers-common.jar}" />++ <fileset file="${analyzers-phonetic.jar}" />++ <fileset file="${suggest.jar}" />++ <fileset file="${grouping.jar}" />++ <fileset file="${common-module.jar}" />++ <fileset file="${queries.jar}" />++ <fileset file="${highlighter.jar}" />++ <fileset file="${memory.jar}" />++ <fileset file="${misc.jar}" />++ <fileset file="${queries-contrib.jar}" />++ <fileset file="${spatial.jar}" />++ </copy>++ </target>++++ <!-- Shared core/solrj/test-framework/contrib targets -->++ <target name="jar-core" depends="compile-core">++ <mkdir dir="${dest}/META-INF/"/>++ <jarify title="Apache Solr Search Server: ${ant.project.name}"++ metainf.source.dir="${common-solr.dir}"++ implementation.title="org.apache.solr"++ spec.version="${solr.spec.version}"/>++ </target>++++ <target name="dist" depends="jar-core">++ <copy file="${build.dir}/${fullnamever}.jar" todir="${dist}"/>+ </target>+++ <target name="javadocs" depends="compile-core">++ <sequential>++ <mkdir dir="${javadoc.dir}"/>++ <invoke-javadoc destdir="${javadoc.dir}"++ title="${Name} ${version} ${name} API">++ <sources>++ <link href=""/>++ <packageset dir="${src.dir}"/>++ </sources>++ </invoke-javadoc>++ <jarify basedir="${javadoc.dir}"++ destfile="${build.dir}/${final.name}-javadoc.jar"++ title="Apache Solr Search Server: ${ant.project.name}"++ metainf.source.dir="${common-solr.dir}"++ implementation.title="org.apache.solr"++ spec.version="${solr.spec.version}"/>++ </sequential>++ </target>+++ <target name="jar-src" depends="init">++ <jarify basedir="${src.dir}"++ destfile="${build.dir}/${final.name}-src.jar"++ implementation.title="org.apache.solr"++ metainf.source.dir="${common-solr.dir}"++ spec.version="${solr.spec.version}"/>++ </target>++++ <!-- Solr core targets -->++ <target name="compile-solr-core" description="Compile Solr core." unless="solr.core.compiled">++ <ant dir="${common-solr.dir}/core" target="compile-core" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>++ <property name="solr.core.compiled" value="true"/>++ </target>++ <target name="compile-test-solr-core" description="Compile solr core tests">++ <ant dir="${common-solr.dir}/core" target="compile-test" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>++ <property name="solr.core.compiled" value="true"/>++ </target>++ <target name="dist-core" depends="init-dist"++ description="Creates the Solr JAR Distribution file.">++ <ant dir="${common-solr.dir}/core" target="dist" inheritall="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>++ </target>++++ <!-- Solrj targets -->++ <target name="compile-solrj" description="Compile the java client." unless="solrj.compiled">++ <ant dir="${common-solr.dir}/solrj" target="compile-core" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>++ <property name="solrj.compiled" value="true"/>++ </target>++ <target name="compile-test-solrj" description="Compile java client tests">++ <ant dir="${common-solr.dir}/solrj" target="compile-test" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>++ <property name="solrj.compiled" value="true"/>++ </target>++ <target name="dist-solrj" depends="init-dist"++ description="Creates the Solr-J JAR Distribution file.">++ <ant dir="${common-solr.dir}/solrj" target="dist" inheritall="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>++ </target>++++ <!-- Solr test-framework targets -->++ <target name="compile-solr-test-framework" description="Compile the Solr test-framework" unless="solr.test.framework.compiled">++ <ant dir="${common-solr.dir}/test-framework" target="compile-core" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>++ <property name="solr.test.framework.compiled" value="true"/>++ </target>++++ <!-- Solr contrib targets -->++ <target name="build-contrib" depends="compile-test"++ description="Builds all contrib modules and their tests">++ <contrib-crawl target="build-artifacts-and-tests"/>++ </target>++ <target name="contribs-add-to-war">++ <mkdir dir="${dest}/web"/>++ <delete dir="${dest}/web" includes="**/*" failonerror="false"/>++ <contrib-crawl target="add-to-war"/>++ </target></project>diff --cc solr/contrib/analysis-extras/build.xmlindex d4c455e4186,9717b8a3fac..d8081793139--- a/solr/contrib/analysis-extras/build.xml+++ b/solr/contrib/analysis-extras/build.xml@@@ -23,37 -27,203 +23,49 @@@Additional analysis components</description>- <property name="src.dir" location="src/java"/>- <property name="tests.src.dir" location="src/test"/>- <property name="tests.userdir" location="src/test-files"/>-- <property name="example.local" value="example"/>-- <!-- support for the additional analyzers modules -->- <path id="modules.classpath">- <pathelement location="${common-solr.dir}/../modules/analysis/build/icu/classes/java" />- <pathelement location="${common-solr.dir}/../modules/analysis/build/smartcn/classes/java" />- <pathelement location="${common-solr.dir}/../modules/analysis/build/stempel/classes/java" />- </path>-- <target name="prep-module-jars">- <subant target="jar" inheritall="false" failonerror="true">- <fileset dir="${common-solr.dir}/../modules/analysis/icu" includes="build.xml" />- <fileset dir="${common-solr.dir}/../modules/analysis/smartcn" includes="build.xml" />- <fileset dir="${common-solr.dir}/../modules/analysis/stempel" includes="build.xml" />- </subant>- </target>+ <import file="../contrib-build.xml"/>- <target name="module-jars-to-solr" depends="prep-module-jars">- <mkdir dir="${lucene-libs}"/>- <copy todir="${lucene-libs}" preservelastmodified="true" flatten="true" failonerror="true" overwrite="true">- <fileset dir="${common-solr.dir}/../modules/analysis/build/icu">- <include name="lucene-analyzers-icu-${version}.jar" />- </fileset>- <fileset dir="${common-solr.dir}/../modules/analysis/build/smartcn">- <include name="lucene-analyzers-smartcn-${version}.jar" />- </fileset>- <fileset dir="${common-solr.dir}/../modules/analysis/build/stempel">- <include name="lucene-analyzers-stempel-${version}.jar" />- </fileset>- </copy>- </target>-- <path id="common.classpath">- <fileset dir="lib"/>- <pathelement location="${solr-path}/build/solr"/>- <pathelement location="${solr-path}/build/solrj"/>- <path refid="lucene.classpath"/>- <path refid="modules.classpath"/>- <fileset dir="${solr-path}/lib" includes="*.jar"/>- </path>+ <module-uptodate name="analysis/icu" jarfile="${common.dir}/../modules/analysis/build/icu/lucene-analyzers-icu-${version}.jar"+ property="analyzers-icu.uptodate" classpath.property="analyzers-icu.jar"/>+ <module-uptodate name="analysis/smartcn" jarfile="${common.dir}/../modules/analysis/build/smartcn/lucene-analyzers-smartcn-${version}.jar"+ property="analyzers-smartcn.uptodate" classpath.property="analyzers-smartcn.jar"/>+ <module-uptodate name="analysis/stempel" jarfile="${common.dir}/../modules/analysis/build/stempel/lucene-analyzers-stempel-${version}.jar"+ property="analyzers-stempel.uptodate" classpath.property="analyzers-stempel.jar"/>- <path id="test.classpath">- <pathelement path="${dest}/classes"/>- <pathelement path="${dest}/test-classes"/>- <pathelement path="${java.class.path}"/>- <pathelement location="${common-solr.dir}/build/test-framework"/> <!-- include solr test code -->- <pathelement location="${common-solr.dir}/../lucene/build/classes/test-framework" /> <!-- include some lucene test code -->- <path refid="common.classpath"/>+ <path id="classpath">+ <pathelement path="${analyzers-icu.jar}"/>+ <pathelement path="${analyzers-smartcn.jar}"/>+ <pathelement path="${analyzers-stempel.jar}"/>+ <path refid="solr.base.classpath"/></path>- <target name="clean">- <delete failonerror="false" dir="${dest}"/>-- <!-- example doesn't create this anymore, but clean it up- if it's still there from an old build- -->- <delete dir="example/lib" />- <delete dir="${lucene-libs}" />- </target>--- <target name="init" depends="module-jars-to-solr">- <mkdir dir="${dest}/classes"/>-- <mkdir dir="${build.javadoc}"/>- <subant target="compileTestFramework">- <fileset dir="${solr-path}" includes="build.xml"/>- </subant>- <subant target="make-manifest">- <fileset dir="${solr-path}" includes="build.xml"/>- </subant>+ <target name="compile-analyzers-icu" unless="analyzers-icu.uptodate">- <ant dir="${common.dir}/../modules/analysis/icu" target="default" inheritAll="false"/>++ <ant dir="${common.dir}/../modules/analysis/icu" target="default" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant></target>-- <target name="compile" depends="init">- <solr-javac destdir="${dest}/classes"- classpathref="common.classpath">- <src path="src/java"/>- </solr-javac>+ <target name="compile-analyzers-smartcn" unless="analyzers-smartcn.uptodate">- <ant dir="${common.dir}/../modules/analysis/smartcn" target="default" inheritAll="false"/>++ <ant dir="${common.dir}/../modules/analysis/smartcn" target="default" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant></target>- <target name="build" depends="compile">- <solr-jar destfile="${dest}/${fullnamever}.jar" basedir="${dest}/classes"- manifest="../../${dest}/META-INF/MANIFEST.MF"/>+ <target name="compile-analyzers-stempel" unless="analyzers-stempel.uptodate">- <ant dir="${common.dir}/../modules/analysis/stempel" target="default" inheritAll="false"/>++ <ant dir="${common.dir}/../modules/analysis/stempel" target="default" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>+ </target>+- <target name="compileTests" depends="compile">- <solr-javac destdir="${dest}/test-classes"- classpathref="test.classpath">- <src path="src/test"/>- </solr-javac>- <!-- Copy any data files present to the classpath -->- <copy todir="${dest}/test-classes">- <fileset dir="src/test-files" excludes="**/*.java"/>++ <target name="module-jars-to-solr"++ depends="compile-analyzers-icu, compile-analyzers-smartcn, compile-analyzers-stempel">++ <mkdir dir="${build.dir}/lucene-libs"/>++ <copy todir="${build.dir}/lucene-libs" preservelastmodified="true" flatten="true" failonerror="true" overwrite="true">++ <fileset file="${analyzers-icu.jar}"/>++ <fileset file="${analyzers-smartcn.jar}"/>++ <fileset file="${analyzers-stempel.jar}"/>+ </copy></target>- <target name="compile-core" depends="compile-analyzers-icu, compile-analyzers-smartcn, compile-analyzers-stempel, solr-contrib-build.compile-core"/>- <target name="example" depends="build,dist">- <!-- this task use to copy lib's but that's no longer needed because- ../lib and ../lib/downloads are now included explicitly by- example/conf/solrconfig.xml- -->- </target>--- <target name="test" depends="compileTests">- <mkdir dir="${junit.output.dir}"/>-- <condition property="runall">- <not>- <or>- <isset property="testcase"/>- <isset property="testpackage"/>- <isset property="testpackageroot"/>- </or>- </not>- </condition>-- <junit printsummary="no"- haltonfailure="no"- maxmemory="512M"- errorProperty="tests.failed"- failureProperty="tests.failed"- dir="${junit.output.dir}"- tempdir="${junit.output.dir}"- forkmode="perBatch"- >- <sysproperty key="java.util.logging.config.file" value="${common-solr.dir}/testlogging.properties"/>- <sysproperty key="tests.luceneMatchVersion" value="${tests.luceneMatchVersion}"/>- <sysproperty key="tests.codecprovider" value="${tests.codecprovider}"/>- <sysproperty key="tests.codec" value="${tests.codec}"/>- <sysproperty key="tests.locale" value="${tests.locale}"/>- <sysproperty key="tests.timezone" value="${tests.timezone}"/>- <sysproperty key="tests.multiplier" value="${tests.multiplier}"/>- <sysproperty key="tests.seed" value="${tests.seed}"/>- <sysproperty key="tests.verbose" value="${tests.verbose}"/>- <sysproperty key="tests.iter" value="${tests.iter}"/>- <!-- set whether or not nightly tests should run -->- <sysproperty key="tests.nightly" value="${tests.nightly}"/>- <sysproperty key="jetty.testMode" value="1"/>- <sysproperty key="tempDir" file="${junit.output.dir}"/>- <sysproperty key="testmethod" value="${testmethod}"/>- <sysproperty key="tests.directory" value="${tests.directory}"/>- <sysproperty key="solr.directoryFactory" value="org.apache.solr.core.MockDirectoryFactory"/>- <jvmarg line="${args}"/>- <formatter classname="${junit.details.formatter}" usefile="false" if="junit.details"/>- <classpath refid="test.classpath"/>- <assertions>- <enable package="org.apache.lucene"/>- <enable package="org.apache.solr"/>- </assertions>- <formatter type="${junit.formatter}"/>- <batchtest fork="yes" todir="${junit.output.dir}" if="runall">- <fileset dir="src/test" includes="${junit.includes}" />- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testcase">- <fileset dir="src/test" includes="**/${testcase}.java"/>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testpackage">- <fileset dir="src/test" includes="**/${testpackage}/**/Test*.java,**/${testpackage}/**/*Test.java" />- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testpackageroot">- <fileset dir="src/test" includes="**/${testpackageroot}/Test*.java,**/${testpackageroot}/*Test.java" />- </batchtest>- </junit>-- <fail if="tests.failed">Tests failed!</fail>- </target>-- <target name="dist" depends="build">- <!--- <copy file="${dest}/${fullnamever}.jar" todir="${solr-path}/build/web/WEB-INF/lib"/>- <copy todir="${solr-path}/build/web/WEB-INF/lib" flatten="true">- <fileset dir="lib">- <include name="**/*.jar"/>- </fileset>- </copy>- -->- <copy file="${dest}/${fullnamever}.jar" todir="${solr-path}/dist"/>- </target>-- <target name="javadoc">- <sequential>- <mkdir dir="${build.javadoc}/contrib-${name}"/>-- <path id="javadoc.classpath">- <path refid="common.classpath"/>- </path>-- <invoke-javadoc- destdir="${build.javadoc}/contrib-${name}"- title="${Name} ${version} contrib-${fullnamever} API">- <sources>- <packageset dir="src/java"/>- </sources>- </invoke-javadoc>- </sequential>- </target>-++ <target name="compile-core" depends="module-jars-to-solr, solr-contrib-build.compile-core"/></project>diff --cc solr/contrib/analysis-extras/src/java/overview.htmlindex 00000000000,00000000000..bd58288f4adnew file mode 100644--- /dev/null+++ b/solr/contrib/analysis-extras/src/java/overview.html@@@ -1,0 -1,0 +1,5 @@@++<html>++<body>++Apache Solr Search Server: Analysis Extras contrib++</body>++</html>diff --cc solr/contrib/clustering/build.xmlindex aeb18c02a33,ce9294b2b50..7a6f1a2efb0--- a/solr/contrib/clustering/build.xml+++ b/solr/contrib/clustering/build.xml@@@ -23,9 -27,177 +23,5 @@@Clustering Integraton</description>- <property name="src.dir" location="src/java"/>- <property name="tests.src.dir" location="src/test"/>- <property name="tests.userdir" location="src/test-files"/>- <property name="example.local" value="example"/>-- <path id="common.classpath">- <fileset dir="lib" includes="*.jar"/>- <pathelement location="${solr-path}/build/solr"/>- <pathelement location="${solr-path}/build/solrj"/>- <path refid="lucene.classpath"/>- <fileset dir="${solr-path}/lib" includes="*.jar"/>- </path>-- <path id="test.classpath">- <pathelement path="${dest}/classes"/>- <pathelement path="${dest}/test-classes"/>- <pathelement path="${java.class.path}"/>- <pathelement location="${solr-path}/build/test-framework"/> <!-- include solr test code -->- <pathelement location="${solr-path}/../lucene/build/classes/test-framework" /> <!-- include some lucene test code -->- <path refid="common.classpath"/>- <!-- DistributedClusteringComponentTest uses Jetty -->- <fileset dir="${solr-path}/example/lib">- <include name="**/*.jar" />- </fileset>- </path>-- <target name="clean">- <delete failonerror="false" dir="${dest}"/>-- <!-- example doesn't create this anymore, but clean it up- if it's still there from an old build- -->- <delete dir="example/lib" />- </target>--- <target name="init">- <mkdir dir="${dest}/classes"/>-- <mkdir dir="${build.javadoc}"/>- <subant target="compileTestFramework">- <fileset dir="${solr-path}" includes="build.xml"/>- </subant>- <subant target="make-manifest">- <fileset dir="${solr-path}" includes="build.xml"/>- </subant>- </target>--- <target name="compile" depends="init">- <solr-javac destdir="${dest}/classes"- classpathref="common.classpath">- <src path="src/main/java"/>- </solr-javac>- </target>-- <target name="build" depends="compile">- <solr-jar destfile="${dest}/${fullnamever}.jar" basedir="${dest}/classes"- manifest="../../${dest}/META-INF/MANIFEST.MF"/>- </target>-- <target name="compileTests" depends="compile">- <solr-javac destdir="${dest}/test-classes"- classpathref="test.classpath">- <src path="src/test/java"/>- </solr-javac>- <!-- Copy any data files present to the classpath -->- <copy todir="${dest}/test-classes">- <fileset dir="src/test/resources" excludes="**/*.java"/>- </copy>- </target>-- <target name="example" depends="build,dist">- <!-- this task use to copy lib's but that's no longer needed because- ../lib and ../lib/downloads are now included explicitly by- example/conf/solrconfig.xml- -->- </target>--- <target name="test" depends="compileTests">- <mkdir dir="${junit.output.dir}"/>-- <condition property="runall">- <not>- <or>- <isset property="testcase"/>- <isset property="testpackage"/>- <isset property="testpackageroot"/>- </or>- </not>- </condition>-- <junit printsummary="no"- haltonfailure="no"- maxmemory="512M"- errorProperty="tests.failed"- failureProperty="tests.failed"- dir="${junit.output.dir}"- tempdir="${junit.output.dir}"- forkmode="perBatch"- >- <sysproperty key="java.util.logging.config.file" value="${common-solr.dir}/testlogging.properties"/>- <sysproperty key="tests.luceneMatchVersion" value="${tests.luceneMatchVersion}"/>- <sysproperty key="tests.codecprovider" value="${tests.codecprovider}"/>- <sysproperty key="tests.codec" value="${tests.codec}"/>- <sysproperty key="tests.locale" value="${tests.locale}"/>- <sysproperty key="tests.timezone" value="${tests.timezone}"/>- <sysproperty key="tests.multiplier" value="${tests.multiplier}"/>- <sysproperty key="tests.seed" value="${tests.seed}"/>- <sysproperty key="tests.verbose" value="${tests.verbose}"/>- <sysproperty key="tests.iter" value="${tests.iter}"/>- <!-- set whether or not nightly tests should run -->- <sysproperty key="tests.nightly" value="${tests.nightly}"/>- <sysproperty key="jetty.testMode" value="1"/>- <sysproperty key="tempDir" file="${junit.output.dir}"/>- <sysproperty key="testmethod" value="${testmethod}"/>- <sysproperty key="tests.directory" value="${tests.directory}"/>- <sysproperty key="solr.directoryFactory" value="org.apache.solr.core.MockDirectoryFactory"/>- <jvmarg line="${args}"/>- <formatter classname="${junit.details.formatter}" usefile="false" if="junit.details"/>- <classpath refid="test.classpath"/>- <assertions>- <enable package="org.apache.lucene"/>- <enable package="org.apache.solr"/>- </assertions>- <formatter type="${junit.formatter}"/>- <batchtest fork="yes" todir="${junit.output.dir}" if="runall">- <fileset dir="src/test/java" includes="${junit.includes}">- <exclude name="**/AbstractClusteringTest*"/>- </fileset>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testcase">- <fileset dir="src/test/java" includes="**/${testcase}.java"/>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testpackage">- <fileset dir="src/test/java" includes="**/${testpackage}/**/Test*.java,**/${testpackage}/**/*Test.java" />- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testpackageroot">- <fileset dir="src/test/java" includes="**/${testpackageroot}/Test*.java,**/${testpackageroot}/*Test.java" />- </batchtest>- </junit>-- <fail if="tests.failed">Tests failed!</fail>- </target>-- <target name="dist" depends="build">- <!--- <copy file="${dest}/${fullnamever}.jar" todir="${solr-path}/build/web/WEB-INF/lib"/>- <copy todir="${solr-path}/build/web/WEB-INF/lib" flatten="true">- <fileset dir="lib">- <include name="**/*.jar"/>- </fileset>- </copy>- -->- <copy file="${dest}/${fullnamever}.jar" todir="${solr-path}/dist"/>- </target>-- <target name="javadoc">- <sequential>- <mkdir dir="${build.javadoc}/contrib-${name}"/>-- <path id="javadoc.classpath">- <path refid="common.classpath"/>- </path>-- <invoke-javadoc- destdir="${build.javadoc}/contrib-${name}"- title="${Name} ${version} contrib-${fullnamever} API">- <sources>- <packageset dir="src/main/java"/>- </sources>- </invoke-javadoc>- </sequential>- </target>--+ <import file="../contrib-build.xml"/></project>diff --cc solr/contrib/clustering/src/java/overview.htmlindex 00000000000,00000000000..ad3e4d4d309new file mode 100644--- /dev/null+++ b/solr/contrib/clustering/src/java/overview.html@@@ -1,0 -1,0 +1,5 @@@++<html>++<body>++Apache Solr Search Server: Clustering contrib++</body>++</html>diff --cc solr/contrib/contrib-build.xmlindex 98d67d8ee64,00000000000..d61528c6bedmode 100644,000000..100644--- a/solr/contrib/contrib-build.xml+++ b/solr/contrib/contrib-build.xml@@@ -1,38 -1,0 +1,57 @@@+<?xml version="1.0"?>++<!--+ 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.+ -->++<project name="solr-contrib-build">- <!-- TODO: adjust build.dir/dist.dir appropriately when a contrib project is run individually -->- <property name="build.dir" location="../../build/contrib/${ant.project.name}"/>- <property name="dist.dir" location="../../dist"/>-++ <dirname file="${ant.file.solr-contrib-build}" property="solr-contrib.dir"/>++ <property name="build.dir" location="${solr-contrib.dir}/../build/contrib/${ant.project.name}"/>+++ <import file="../common-build.xml"/>++ <target name="build-solr" unless="solr.core.compiled">- <ant dir="${common-solr.dir}" target="compile-test" inheritAll="false"/>- <!-- set the property for this ant execution to speed up later tasks depending on this -->++ <ant dir="${common-solr.dir}/core" target="compile-test" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>+ <property name="solr.core.compiled" value="true"/>+ </target>-+++ <target name="compile-core" depends="build-solr, common.compile-core"/>+- <!-- redefine common-solr.test, and exclude 'validate-solr' dependency, since it should only run at solr/ level -->++ <!-- redefine common-solr.test, and exclude 'validate-solr' dependency, since it should only run at solr/ level -->+ <target name="test" depends="compile-test,junit-mkdir,junit-sequential,junit-parallel" description="Runs unit tests"/>-++++ <dirname file="${ant.file}" property="antfile.dir"/>++++ <available property="contrib.has.webapp" type="dir" file="${antfile.dir}/src/webapp" />++ <target name="add-to-war" if="contrib.has.webapp">++ <copy todir="${dest}/web" failonerror="false">++ <fileset dir="${antfile.dir}/src/webapp"/>++ </copy>++ </target>++++ <available property="contrib.has.lucene-libs" type="dir" file="${build.dir}/lucene-libs"/>++ <target name="add-lucene-libs-to-package" if="contrib.has.lucene-libs">++ <pathconvert property="contrib.dir">++ <path path="${antfile.dir}"/>++ <flattenmapper/>++ </pathconvert>++ <copy todir="${dest}/contrib-lucene-libs-to-package/contrib/${contrib.dir}">++ <fileset dir="${build.dir}" includes="lucene-libs/**"/>++ </copy>++ </target>+</project>diff --cc solr/contrib/dataimporthandler-extras/build.xmlindex 930712f57a1,00000000000..879a90cf8b8mode 100644,000000..100644--- a/solr/contrib/dataimporthandler-extras/build.xml+++ b/solr/contrib/dataimporthandler-extras/build.xml@@@ -1,58 -1,0 +1,58 @@@+<?xml version="1.0"?>++<!--+ 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.+ -->++<project name="solr-dataimporthandler-extras" default="default">++ <description>+ Data Import Handler Extras+ </description>+- <property name="src.dir" location="src/java"/>- <property name="tests.src.dir" location="src/test"/>- <property name="tests.userdir" location="src/test-files"/>-+ <import file="../contrib-build.xml"/>++ <solr-contrib-uptodate name="dataimporthandler"+ property="solr-dataimporthandler.uptodate"+ classpath.property="solr-dataimporthandler.jar"/>++ <target name="compile-solr-dataimporthandler" unless="solr-dataimporthandler.uptodate">- <ant dir="${common-solr.dir}/contrib/dataimporthandler" target="default" inheritAll="false"/>++ <ant dir="${common-solr.dir}/contrib/dataimporthandler" target="default" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>+ </target>++ <!--+ really sucks we do this always, without an up-to-date thing for tests+ we should probably fix this, the same issue exists in modules+ -->+ <target name="compile-solr-dataimporthandler-tests">- <ant dir="${common-solr.dir}/contrib/dataimporthandler" target="compile-test" inheritAll="false"/>++ <ant dir="${common-solr.dir}/contrib/dataimporthandler" target="compile-test" inheritAll="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>+ </target>++ <path id="classpath">+ <pathelement location="${common-solr.dir}/build/contrib/solr-dataimporthandler/classes/java"/>+ <pathelement location="${common-solr.dir}/build/contrib/solr-dataimporthandler/classes/test"/>+ <fileset dir="${common-solr.dir}/contrib/dataimporthandler/lib" includes="**/*.jar"/>+ <fileset dir="${common-solr.dir}/contrib/extraction/lib" includes="**/*.jar"/>+ <path refid="solr.base.classpath"/>+ </path>++ <target name="compile-core" depends="compile-solr-dataimporthandler, solr-contrib-build.compile-core"/>+ <target name="compile-test" depends="compile-solr-dataimporthandler-tests, contrib-build.compile-test"/>+</project>diff --cc solr/contrib/dataimporthandler-extras/src/java/overview.htmlindex 00000000000,00000000000..f1fd655150dnew file mode 100644--- /dev/null+++ b/solr/contrib/dataimporthandler-extras/src/java/overview.html@@@ -1,0 -1,0 +1,5 @@@++<html>++<body>++Apache Solr Search Server: DataImportHandler Extras contrib++</body>++</html>diff --cc solr/contrib/dataimporthandler/build.xmlindex a5004d76dcd,7115e1cfe57..e686643476e--- a/solr/contrib/dataimporthandler/build.xml+++ b/solr/contrib/dataimporthandler/build.xml@@@ -22,11 -22,298 +22,7 @@@<description>Data Import Handler</description>- <path id="classpath.jetty">- <!-- jetty -->- <fileset dir="${solr-path}/example/lib">- <include name="**/*.jar" />- </fileset>- </path>- <path id="common.classpath">- <pathelement location="${solr-path}/build/solr" />- <pathelement location="${solr-path}/build/solrj" />- <fileset dir="${solr-path}/lib" includes="*.jar"/>- <path refid="lucene.classpath"/>- </path>-- <path id="extras.classpath">- <pathelement location="${solr-path}/build/solr" />- <pathelement location="${solr-path}/build/solrj" />- <pathelement location="target/classes" />- <fileset dir="${solr-path}/lib" includes="*.jar"/>- <fileset dir="lib/" includes="*.jar"/>- <fileset dir="${tikalibs-path}" includes="*.jar"/>- <path refid="lucene.classpath"/>- </path>-- <path id="test.classpath">- <path refid="common.classpath" />- <path refid="classpath.jetty" />- <pathelement path="target/classes" />- <pathelement path="target/test-classes" />- <pathelement location="${solr-path}/build/test-framework"/> <!-- include solr test code -->- <pathelement location="${solr-path}/../lucene/build/classes/test-framework" /> <!-- include some lucene test code -->- <pathelement path="${java.class.path}"/>- </path>-- <path id="test.extras.classpath">- <path refid="extras.classpath" />- <path refid="classpath.jetty" />- <pathelement path="target/classes" />- <pathelement path="target/extras/classes" />- <pathelement path="target/test-classes" />- <pathelement path="target/extras/test-classes" />- <pathelement location="${solr-path}/build/test-framework"/> <!-- include solr test code -->- <pathelement location="${solr-path}/../lucene/build/classes/test-framework" /> <!-- include some lucene test code -->- <pathelement path="${java.class.path}"/>- </path>-- <target name="clean">- <delete failonerror="false" dir="target"/>- <delete failonerror="false">- <fileset dir="src/test/resources" includes="**/dataimport.properties" />- </delete>- <!-- Clean up examples -->- <delete failonerror="false">- <!-- we no longer copy things into this directory, but we still clean it up- the files are still there from a previous checkout- -->- <fileset dir="${example}/example-DIH/solr/mail/lib" includes="*.jar" />- </delete>- </target>-- <target name="init">- <mkdir dir="target/classes"/>- <mkdir dir="${build.javadoc}" />- <subant target="compileTestFramework">- <fileset dir="${solr-path}" includes="build.xml"/>- </subant>- <subant target="make-manifest">- <fileset dir="${solr-path}" includes="build.xml"/>- </subant>- </target>-- <target name="compile" depends="init">- <solr-javac destdir="target/classes"- classpathref="common.classpath">- <src path="src/main/java" />- </solr-javac>- </target>-- <target name="compileExtras" depends="compile">- <solr-javac destdir="target/extras/classes"- classpathref="extras.classpath">- <src path="src/extras/main/java" />- </solr-javac>- </target>-- <target name="build" depends="compile,compileExtras">- <solr-jar destfile="target/${fullnamever}.jar" basedir="target/classes"- manifest="../../${dest}/META-INF/MANIFEST.MF" />- <solr-jar destfile="target/apache-${ant.project.name}-extras-${version}.jar" basedir="target/extras/classes"- manifest="../../${dest}/META-INF/MANIFEST.MF" />- </target>-- <target name="compileTests" depends="compileCoreTests,compileExtrasTests"/>-- <target name="compileCoreTests" depends="compile">- <solr-javac destdir="target/test-classes"- classpathref="test.classpath">- <src path="src/test/java" />- </solr-javac>- <!-- Copy any data files present to the classpath -->- <copy todir="target/test-classes">- <fileset dir="src/test/resources" excludes="**/*.java"/>- </copy>- </target>-- <target name="compileExtrasTests" depends="compileExtras">- <solr-javac destdir="target/extras/test-classes"- classpathref="test.classpath">- <src path="src/extras/test/java" />- </solr-javac>- <!-- Copy any data files present to the classpath -->- <copy todir="target/extras/test-classes">- <fileset dir="src/extras/test/resources" excludes="**/*.java"/>- </copy>- </target>-- <property name="tempDir" value="${junit.output.dir}/temp" />- <target name="test" depends="testCore,testExtras"/>-- <target name="testCore" depends="compileCoreTests">- <mkdir dir="${junit.output.dir}"/>- <!-- <mkdir dir="@{tempDir}/@{pattern}"/>- This is very loud and obnoxious. abuse touch instead for a "quiet" mkdir- -->- <touch file="${tempDir}/quiet.ant" verbose="false" mkdirs="true"/>- <condition property="runall">- <not>- <or>- <isset property="testcase"/>- <isset property="testpackage"/>- <isset property="testpackageroot"/>- </or>- </not>- </condition>-- <junit printsummary="no"- haltonfailure="no"- maxmemory="512M"- errorProperty="tests.failed"- failureProperty="tests.failed"- dir="${tempDir}"- tempdir="${tempDir}"- forkmode="perBatch"- >- <sysproperty key="java.util.logging.config.file" value="${common-solr.dir}/testlogging.properties"/>- <sysproperty key="tests.luceneMatchVersion" value="${tests.luceneMatchVersion}"/>- <sysproperty key="tests.codec" value="${tests.codec}"/>- <sysproperty key="tests.codecprovider" value="${tests.codecprovider}"/>- <sysproperty key="tests.locale" value="${tests.locale}"/>- <sysproperty key="tests.timezone" value="${tests.timezone}"/>- <sysproperty key="tests.multiplier" value="${tests.multiplier}"/>- <sysproperty key="tests.iter" value="${tests.iter}"/>- <sysproperty key="tests.seed" value="${tests.seed}"/>- <sysproperty key="tests.verbose" value="${tests.verbose}"/>- <!-- set whether or not nightly tests should run -->- <sysproperty key="tests.nightly" value="${tests.nightly}"/>- <sysproperty key="jetty.testMode" value="1"/>- <sysproperty key="tempDir" file="${tempDir}"/>- <sysproperty key="testmethod" value="${testmethod}"/>- <sysproperty key="tests.directory" value="${tests.directory}"/>- <sysproperty key="solr.directoryFactory" value="org.apache.solr.core.MockDirectoryFactory"/>- <jvmarg line="${args}"/>- <formatter classname="${junit.details.formatter}" usefile="false" if="junit.details"/>- <classpath refid="test.classpath"/>- <formatter type="${junit.formatter}"/>- <batchtest fork="yes" todir="${junit.output.dir}" if="runall">- <fileset dir="src/test/java" includes="${junit.includes}"/>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testcase">- <fileset dir="src/test/java" includes="**/${testcase}.java"/>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testpackage">- <fileset dir="src/test/java" includes="**/${testpackage}/**/Test*.java,**/${testpackage}/**/*Test.java"/>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testpackageroot">- <fileset dir="src/test/java" includes="**/${testpackageroot}/Test*.java,**/${testpackageroot}/*Test.java"/>- </batchtest>- </junit>-- <fail if="tests.failed">Tests failed!</fail>- </target>-- <target name="testExtras" depends="compileExtrasTests">- <mkdir dir="${junit.output.dir}"/>- <!-- <mkdir dir="@{tempDir}/@{pattern}"/>- This is very loud and obnoxious. abuse touch instead for a "quiet" mkdir- -->- <touch file="${tempDir}/quiet.ant" verbose="false" mkdirs="true"/>-- <condition property="runall">- <not>- <or>- <isset property="testcase"/>- <isset property="testpackage"/>- <isset property="testpackageroot"/>- </or>- </not>- </condition>-- <junit printsummary="no"- haltonfailure="no"- maxmemory="512M"- errorProperty="tests.failed"- failureProperty="tests.failed"- dir="${tempDir}"- tempdir="${tempDir}"- forkmode="perBatch"- >- <sysproperty key="java.util.logging.config.file" value="${common-solr.dir}/testlogging.properties"/>- <sysproperty key="tests.luceneMatchVersion" value="${tests.luceneMatchVersion}"/>- <sysproperty key="tests.codecprovider" value="${tests.codecprovider}"/>- <sysproperty key="tests.codec" value="${tests.codec}"/>- <sysproperty key="tests.locale" value="${tests.locale}"/>- <sysproperty key="tests.timezone" value="${tests.timezone}"/>- <sysproperty key="tests.multiplier" value="${tests.multiplier}"/>- <sysproperty key="tests.iter" value="${tests.iter}"/>- <sysproperty key="tests.seed" value="${tests.seed}"/>- <sysproperty key="tests.verbose" value="${tests.verbose}"/>- <!-- set whether or not nightly tests should run -->- <sysproperty key="tests.nightly" value="${tests.nightly}"/>- <sysproperty key="jetty.testMode" value="1"/>- <sysproperty key="tempDir" file="${tempDir}"/>- <sysproperty key="testmethod" value="${testmethod}"/>- <sysproperty key="tests.directory" value="${tests.directory}"/>- <sysproperty key="solr.directoryFactory" value="org.apache.solr.core.MockDirectoryFactory"/>- <jvmarg line="${args}"/>- <formatter classname="${junit.details.formatter}" usefile="false" if="junit.details"/>- <classpath refid="test.extras.classpath"/>- <assertions>- <enable package="org.apache.lucene"/>- <enable package="org.apache.solr"/>- </assertions>- <formatter type="${junit.formatter}"/>-- <batchtest fork="yes" todir="${junit.output.dir}" if="runall">- <fileset dir="src/extras/test/java" includes="${junit.includes}"/>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testcase">- <fileset dir="src/extras/test/java" includes="**/${testcase}.java"/>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testpackage">- <fileset dir="src/extras/test/java" includes="**/${testpackage}/**/Test*.java,**/${testpackage}/**/*Test.java"/>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testpackageroot">- <fileset dir="src/extras/test/java" includes="**/${testpackageroot}/Test*.java,**/${testpackageroot}/*Test.java"/>- </batchtest>--- </junit>-- <fail if="tests.failed">Tests failed!</fail>- </target>-- <target name="dist" depends="build">- <copy todir="../../build/web">- <fileset dir="src/main/webapp" includes="**" />- </copy>- <mkdir dir="../../build/web/WEB-INF/lib"/>- <!--<copy file="target/${fullnamever}.jar" todir="${solr-path}/build/web/WEB-INF/lib"></copy>-->- <copy file="target/${fullnamever}.jar" todir="${solr-path}/dist"></copy>- <copy file="target/apache-${ant.project.name}-extras-${version}.jar" todir="${solr-path}/dist"></copy>- </target>-- <target name="javadoc">- <sequential>- <mkdir dir="${build.javadoc}/contrib-${name}"/>-- <path id="javadoc.classpath">- <path refid="common.classpath"/>- <path refid="extras.classpath"/>- </path>- <property name="src.dir" location="src/java"/>- <property name="tests.src.dir" location="src/test"/>- <property name="tests.userdir" location="src/test-files"/>-- <invoke-javadoc- destdir="${build.javadoc}/contrib-${name}"- title="${Name} ${version} contrib-${fullnamever} API">- <sources>- <packageset dir="src/main/java"/>- <packageset dir="src/extras/main/java"/>- </sources>- </invoke-javadoc>- </sequential>- </target>+ <import file="../contrib-build.xml"/>-+- <target name="example" depends="build,dist">- <!--- this target use to copy libs, but that is no longer needed.- now we just depend on dist to ensure the extra's jar exists.- -->- </target>-</project>diff --cc solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/FieldStreamDataSource.javaindex 252e8f08cc6,252e8f08cc6..adbcc4d68fc--- a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/FieldStreamDataSource.java+++ b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/FieldStreamDataSource.java@@@ -40,7 -40,7 +40,7 @@@ import static org.apache.solr.handler.d* <p/>* The fieldname must be resolvable from {@link VariableResolver}* <p/>-- * This may be used with any {@link EntityProcessor} which uses a {@link DataSource}<{@link InputStream}> eg: {@link TikaEntityProcessor}++ * This may be used with any {@link EntityProcessor} which uses a {@link DataSource}<{@link InputStream}> eg: TikaEntityProcessor* <p/>** @since 3.1diff --cc solr/contrib/dataimporthandler/src/java/overview.htmlindex 00000000000,00000000000..c257503d516new file mode 100644--- /dev/null+++ b/solr/contrib/dataimporthandler/src/java/overview.html@@@ -1,0 -1,0 +1,5 @@@++<html>++<body>++Apache Solr Search Server: DataImportHandler contrib++</body>++</html>diff --cc solr/contrib/extraction/build.xmlindex 9f52a4492d5,e0ea1ff00f6..ab56899250e--- a/solr/contrib/extraction/build.xml+++ b/solr/contrib/extraction/build.xml@@@ -23,10 -27,170 +23,6 @@@Solr Integration with Tika for extracting content from binary file formats such as Microsoft Word and Adobe PDF.</description>- <property name="src.dir" location="src/java"/>- <property name="tests.src.dir" location="src/test"/>- <property name="tests.userdir" location="src/test-files"/>- <path id="common.classpath">- <pathelement location="${solr-path}/build/solr" />- <pathelement location="${solr-path}/build/solrj" />- <fileset dir="lib" includes="*.jar"/>- <fileset dir="${solr-path}/lib" includes="*.jar"/>- <path refid="lucene.classpath"/>- </path>-- <path id="test.classpath">- <path refid="common.classpath" />- <pathelement path="${dest}/classes" />- <pathelement path="${dest}/test-classes" />- <pathelement location="${solr-path}/build/test-framework"/> <!-- include solr test code -->- <pathelement location="${solr-path}/../lucene/build/classes/test-framework" /> <!-- include some lucene test code -->- <pathelement path="${java.class.path}"/>- </path>-- <target name="clean">- <delete failonerror="false" dir="${dest}"/>- </target>-- <target name="init">- <mkdir dir="${dest}/classes"/>- <mkdir dir="${build.javadoc}" />- <subant target="compileTestFramework">- <fileset dir="${solr-path}" includes="build.xml"/>- </subant>- <subant target="make-manifest">- <fileset dir="${solr-path}" includes="build.xml"/>- </subant>-- </target>-- <target name="compile" depends="init">- <solr-javac destdir="${dest}/classes"- classpathref="common.classpath">- <src path="src/main/java" />- </solr-javac>- </target>-- <target name="build" depends="compile">- <solr-jar destfile="${dest}/${fullnamever}.jar" basedir="${dest}/classes"- manifest="../../${dest}/META-INF/MANIFEST.MF">-- </solr-jar>- </target>-- <target name="compileTests" depends="compile">- <solr-javac destdir="${dest}/test-classes"- classpathref="test.classpath">- <src path="src/test/java" />- </solr-javac>- <!-- Copy any data files present to the classpath -->- <copy todir="${dest}/test-classes">- <fileset dir="src/test/resources" excludes="**/*.java"/>- </copy>- </target>-- <property name="tempDir" value="${junit.output.dir}/temp" />-- <target name="test" depends="compileTests">- <mkdir dir="${junit.output.dir}"/>- <!-- <mkdir dir="@{tempDir}/@{pattern}"/>- This is very loud and obnoxious. abuse touch instead for a "quiet" mkdir- -->- <touch file="${tempDir}/quiet.ant" verbose="false" mkdirs="true"/>-- <condition property="runall">- <not>- <or>- <isset property="testcase"/>- <isset property="testpackage"/>- <isset property="testpackageroot"/>- </or>- </not>- </condition>-- <junit printsummary="no"- haltonfailure="no"- maxmemory="512M"- errorProperty="tests.failed"- failureProperty="tests.failed"- dir="${tempDir}"- tempdir="${tempDir}"- forkmode="perBatch"- >- <sysproperty key="java.util.logging.config.file" value="${common-solr.dir}/testlogging.properties"/>- <sysproperty key="tests.luceneMatchVersion" value="${tests.luceneMatchVersion}"/>- <sysproperty key="tests.codecprovider" value="${tests.codecprovider}"/>- <sysproperty key="tests.codec" value="${tests.codec}"/>- <sysproperty key="tests.locale" value="${tests.locale}"/>- <sysproperty key="tests.timezone" value="${tests.timezone}"/>- <sysproperty key="tests.multiplier" value="${tests.multiplier}"/>- <sysproperty key="tests.iter" value="${tests.iter}"/>- <sysproperty key="tests.seed" value="${tests.seed}"/>- <sysproperty key="tests.verbose" value="${tests.verbose}"/>- <!-- set whether or not nightly tests should run -->- <sysproperty key="tests.nightly" value="${tests.nightly}"/>- <sysproperty key="jetty.testMode" value="1"/>- <sysproperty key="tempDir" file="${tempDir}"/>- <sysproperty key="testmethod" value="${testmethod}"/>- <sysproperty key="tests.directory" value="${tests.directory}"/>- <sysproperty key="solr.directoryFactory" value="org.apache.solr.core.MockDirectoryFactory"/>- <jvmarg line="${args}"/>- <formatter classname="${junit.details.formatter}" usefile="false" if="junit.details"/>- <classpath refid="test.classpath"/>- <assertions>- <enable package="org.apache.lucene"/>- <enable package="org.apache.solr"/>- </assertions>- <formatter type="${junit.formatter}"/>- <batchtest fork="yes" todir="${junit.output.dir}" if="runall">- <fileset dir="src/test/java" includes="${junit.includes}"/>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testcase">- <fileset dir="src/test/java" includes="**/${testcase}.java"/>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testpackage">- <fileset dir="src/test/java" includes="**/${testpackage}/**/Test*.java,**/${testpackage}/**/*Test.java"/>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testpackageroot">- <fileset dir="src/test/java" includes="**/${testpackageroot}/Test*.java,**/${testpackageroot}/*Test.java"/>- </batchtest>- </junit>-- <fail if="tests.failed">Tests failed!</fail>- </target>-- <target name="test-reports"- description="Generates HTML test reports.">- <mkdir dir="${junit.reports}"/>- <junitreport todir="${junit.output.dir}">- <fileset dir="${junit.output.dir}">- <include name="TEST-*.xml"/>- </fileset>- <report format="frames" todir="${junit.reports}"/>- </junitreport>- </target>-- <target name="dist" depends="build">- <copy file="build/${fullnamever}.jar" todir="${solr-path}/dist"/>- </target>-- <target name="example" depends="build">- <!-- :NOOP: this use to copy libs but now we can refer to them by path -->- </target>-- <target name="javadoc">- <sequential>- <mkdir dir="${build.javadoc}/contrib-${name}"/>-- <path id="javadoc.classpath">- <path refid="common.classpath"/>- </path>-- <invoke-javadoc- destdir="${build.javadoc}/contrib-${name}"- title="${Name} ${version} contrib-${fullnamever} API">- <sources>- <packageset dir="src/main/java"/>- </sources>- </invoke-javadoc>- </sequential>- </target>--+ <import file="../contrib-build.xml"/></project>diff --cc solr/contrib/extraction/src/java/overview.htmlindex 00000000000,00000000000..83c817493e4new file mode 100644--- /dev/null+++ b/solr/contrib/extraction/src/java/overview.html@@@ -1,0 -1,0 +1,5 @@@++<html>++<body>++Apache Solr Search Server: Solr Cell contrib++</body>++</html>diff --cc solr/contrib/uima/build.xmlindex c7fe87a9863,95e2060f7b3..3a4a1de8202--- a/solr/contrib/uima/build.xml+++ b/solr/contrib/uima/build.xml@@@ -23,10 -27,166 +23,22 @@@Solr Integration with UIMA for extracting metadata from arbitrary (text) fields and enrich document with features extracted from UIMA types (language, sentences, concepts, named entities, etc.)</description>- <property name="src.dir" location="src/java"/>- <property name="tests.src.dir" location="src/test"/>- <property name="tests.userdir" location="src/test-files"/>- <path id="common.classpath">- <pathelement location="${solr-path}/build/solr" />- <pathelement location="${solr-path}/build/solrj" />- <fileset dir="lib" includes="*.jar"/>- <fileset dir="${solr-path}/lib" includes="*.jar"/>- <path refid="lucene.classpath"/>- <pathelement location="${basedir}/src/main/resources" />- </path>-- <path id="test.classpath">- <path refid="common.classpath" />- <pathelement path="${dest}/classes" />- <pathelement path="${dest}/test-classes" />- <pathelement location="${solr-path}/build/test-framework"/> <!-- include solr test code -->- <pathelement location="${solr-path}/../lucene/build/classes/test-framework" /> <!-- include some lucene test code -->- <pathelement path="${java.class.path}"/>- </path>-- <target name="clean">- <delete failonerror="false" dir="${dest}"/>- </target>-- <target name="init">- <mkdir dir="${dest}/classes"/>- <mkdir dir="${build.javadoc}" />- <subant target="compileTestFramework">- <fileset dir="${solr-path}" includes="build.xml"/>- </subant>- <subant target="make-manifest">- <fileset dir="${solr-path}" includes="build.xml"/>- </subant>- </target>-- <target name="compile" depends="init">- <solr-javac destdir="${dest}/classes"- classpathref="common.classpath">- <src path="src/main/java" />- </solr-javac>- </target>-- <target name="build" depends="compile">- <solr-jar destfile="${dest}/${fullnamever}.jar" basedir="${dest}/classes"- manifest="../../${dest}/META-INF/MANIFEST.MF">- <fileset dir="src/main/resources" />- </solr-jar>- </target>-- <target name="compileTests" depends="compile">- <solr-javac destdir="${dest}/test-classes"- classpathref="test.classpath">- <src path="src/test/java" />- </solr-javac>- <copy todir="${dest}/test-classes">- <fileset dir="src/test/resources" excludes="**/*.java"/>- </copy>- </target>--- <property name="tempDir" value="${junit.output.dir}/temp" />+ <import file="../contrib-build.xml"/>- <target name="test" depends="compileTests">- <mkdir dir="${junit.output.dir}"/>- <!-- <mkdir dir="@{tempDir}/@{pattern}"/>- This is very loud and obnoxious. abuse touch instead for a "quiet" mkdir- -->- <touch file="${tempDir}/quiet.ant" verbose="false" mkdirs="true"/>++ <dirname file="${ant.file}" property="antfile.dir"/>+- <condition property="runall">- <not>- <or>- <isset property="testcase"/>- <isset property="testpackage"/>- <isset property="testpackageroot"/>- </or>- </not>- </condition>-- <junit printsummary="no"- haltonfailure="no"- maxmemory="512M"- errorProperty="tests.failed"- failureProperty="tests.failed"- dir="${tempDir}"- tempdir="${tempDir}"- forkmode="perBatch"- >- <sysproperty key="java.util.logging.config.file" value="${common-solr.dir}/testlogging.properties"/>- <sysproperty key="tests.luceneMatchVersion" value="${tests.luceneMatchVersion}"/>- <sysproperty key="tests.codecprovider" value="${tests.codecprovider}"/>- <sysproperty key="tests.codec" value="${tests.codec}"/>- <sysproperty key="tests.locale" value="${tests.locale}"/>- <sysproperty key="tests.timezone" value="${tests.timezone}"/>- <sysproperty key="tests.multiplier" value="${tests.multiplier}"/>- <sysproperty key="tests.iter" value="${tests.iter}"/>- <sysproperty key="tests.seed" value="${tests.seed}"/>- <sysproperty key="jetty.insecurerandom" value="1"/>- <sysproperty key="tempDir" file="${tempDir}"/>- <sysproperty key="testmethod" value="${testmethod}"/>- <sysproperty key="tests.directory" value="${tests.directory}"/>- <sysproperty key="solr.directoryFactory" value="org.apache.solr.core.MockDirectoryFactory"/>- <jvmarg line="${args}"/>- <formatter classname="${junit.details.formatter}" usefile="false" if="junit.details"/>- <classpath refid="test.classpath"/>- <assertions>- <enable package="org.apache.lucene"/>- <enable package="org.apache.solr"/>- </assertions>- <formatter type="${junit.formatter}"/>- <batchtest fork="yes" todir="${junit.output.dir}" if="runall">- <fileset dir="src/test/java" includes="${junit.includes}"/>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testcase">- <fileset dir="src/test/java" includes="**/${testcase}.java"/>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testpackage">- <fileset dir="src/test/java" includes="**/${testpackage}/**/Test*.java,**/${testpackage}/**/*Test.java"/>- </batchtest>- <batchtest fork="yes" todir="${junit.output.dir}" if="testpackageroot">- <fileset dir="src/test/java" includes="**/${testpackageroot}/Test*.java,**/${testpackageroot}/*Test.java"/>- </batchtest>- </junit>++ <target name="dist-maven" depends="contrib-build.dist-maven">++ <m2-deploy-with-pom-template pom.xml="${antfile.dir}/lib/solr-uima-an-alchemy-pom.xml.template"++ jar.file="${antfile.dir}/lib/uima-an-alchemy-2.3.1-SNAPSHOT-r1062868.jar" />+- <fail if="tests.failed">Tests failed!</fail>- </target>++ <m2-deploy-with-pom-template pom.xml="${antfile.dir}/lib/solr-uima-an-calais-pom.xml.template"++ jar.file="${antfile.dir}/lib/uima-an-calais-2.3.1-SNAPSHOT-r1062868.jar" />+- <target name="test-reports"- description="Generates HTML test reports.">- <mkdir dir="${junit.reports}"/>- <junitreport todir="${junit.output.dir}">- <fileset dir="${junit.output.dir}">- <include name="TEST-*.xml"/>- </fileset>- <report format="frames" todir="${junit.reports}"/>- </junitreport>- </target>++ <m2-deploy-with-pom-template pom.xml="${antfile.dir}/lib/solr-uima-an-tagger-pom.xml.template"++ jar.file="${antfile.dir}/lib/uima-an-tagger-2.3.1-SNAPSHOT-r1062868.jar" />+- <target name="dist" depends="build">- <copy file="build/${fullnamever}.jar" todir="${solr-path}/dist"/>- </target>++ <m2-deploy-with-pom-template pom.xml="${antfile.dir}/lib/solr-uima-an-wst-pom.xml.template"++ jar.file="${antfile.dir}/lib/uima-an-wst-2.3.1-SNAPSHOT-r1076132.jar" />+- <target name="example" depends="build">- <!-- :NOOP: this use to copy libs but now we can refer to them by path -->+ </target>-- <target name="javadoc">- <sequential>- <mkdir dir="${build.javadoc}/contrib-${name}"/>-- <path id="javadoc.classpath">- <path refid="common.classpath"/>- </path>-- <invoke-javadoc- destdir="${build.javadoc}/contrib-${name}"- title="${Name} ${version} contrib-${fullnamever} API">- <sources>- <packageset dir="src/main/java"/>- </sources>- </invoke-javadoc>- </sequential>- </target>--</project>diff --cc solr/contrib/uima/src/java/overview.htmlindex 00000000000,00000000000..13b975d5199new file mode 100644--- /dev/null+++ b/solr/contrib/uima/src/java/overview.html@@@ -1,0 -1,0 +1,5 @@@++<html>++<body>++Apache Solr Search Server: Solr UIMA contrib++</body>++</html>diff --cc solr/core/build.xmlindex 00000000000,00000000000..bca8a498845new file mode 100644--- /dev/null+++ b/solr/core/build.xml@@@ -1,0 -1,0 +1,39 @@@++<?xml version="1.0"?>++<!--++ 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.++ -->++<project name="solr-core" default="default">++ <description>Solr Core</description>++++ <import file="../common-build.xml"/>++++ <target name="compile-core" unless="solr.core.compiled"++ depends="prep-lucene-jars, compile-solrj, common.compile-core">++ <property name="solr.core.compiled" value="true"/>++ </target>++++ <target name="compile-test" depends="compile-solr-test-framework,common.compile-test"/>++++ <target name="test" depends="compile-test,junit-mkdir,junit-sequential,junit-parallel"/>++++ <target name="dist-maven" depends="jar-core,javadocs,jar-src,contrib-build.dist-maven">++ <m2-deploy-with-pom-template pom.xml="${common-solr.dir}/lib/solr-commons-csv-pom.xml.template"++ jar.file="${common-solr.dir}/lib/commons-csv-1.0-SNAPSHOT-r966014.jar" />++++ <m2-deploy-with-pom-template pom.xml="${common-solr.dir}/lib/apache-solr-noggit-pom.xml.template"++ jar.file="${common-solr.dir}/lib/apache-solr-noggit-r1099557.jar" />++ </target>++</project>diff --cc solr/core/src/java/overview.htmlindex 00000000000,00000000000..d475f5300a5new file mode 100644--- /dev/null+++ b/solr/core/src/java/overview.html@@@ -1,0 -1,0 +1,5 @@@++<html>++<body>++Apache Solr Search Server++</body>++</html>diff --cc solr/core/src/test/org/apache/solr/servlet/CacheHeaderTestBase.javaindex 22c206201ed,22c206201ed..ff176057a29--- a/solr/core/src/test/org/apache/solr/servlet/CacheHeaderTestBase.java+++ b/solr/core/src/test/org/apache/solr/servlet/CacheHeaderTestBase.java@@@ -22,7 -22,7 +22,7 @@@ import org.apache.commons.httpclient.Naimport org.apache.commons.httpclient.methods.GetMethod;import org.apache.commons.httpclient.methods.HeadMethod;import org.apache.commons.httpclient.methods.PostMethod;--import org.apache.solr.client.solrj.SolrJettyTestBase;++import org.apache.solr.SolrJettyTestBase;import org.apache.solr.client.solrj.impl.CommonsHttpSolrServer;import org.junit.Test;diff --cc solr/solrj/build.xmlindex 00000000000,00000000000..a1974e961fanew file mode 100644--- /dev/null+++ b/solr/solrj/build.xml@@@ -1,0 -1,0 +1,41 @@@++<?xml version="1.0"?>++<!--++ 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.++ -->++<project name="solr-solrj" default="default">++ <description>Solrj - Solr Java Client</description>++++ <import file="../common-build.xml"/>++++ <target name="compile-test" depends="compile-solr-test-framework,common.compile-test"/>++++ <target name="test" depends="compile-test,junit-mkdir,junit-sequential,junit-parallel"/>++++ <target name="dist" depends="common-solr.dist">++ <mkdir dir="${dist}/solrj-lib" />++ <copy todir="${dist}/solrj-lib">++ <fileset dir="${common-solr.dir}/lib">++ <include name="commons-codec-*.jar"/>++ <include name="commons-io-*.jar"/>++ <include name="commons-httpclient-*.jar"/>++ <include name="*stax-*.jar" />++ <include name="wstx-*.jar" />++ <include name="jcl-over-slf4j-*.jar" />++ <include name="slf4j-api-*.jar" />++ </fileset>++ </copy>++ </target>++</project>diff --cc solr/solrj/src/java/overview.htmlindex 00000000000,00000000000..49898143f30new file mode 100644--- /dev/null+++ b/solr/solrj/src/java/overview.html@@@ -1,0 -1,0 +1,5 @@@++<html>++<body>++Apache Solr Search Server: Solr-j++</body>++</html>diff --cc solr/solrj/src/test-files/docs1.xmlindex 00000000000,3c5448d9dcf..3c5448d9dcfmode 000000,100644..100644--- a/solr/solrj/src/test-files/docs1.xml+++ b/solr/solrj/src/test-files/docs1.xmldiff --cc solr/solrj/src/test-files/docs2.xmlindex 00000000000,0b89d6785c2..0b89d6785c2mode 000000,100644..100644--- a/solr/solrj/src/test-files/docs2.xml+++ b/solr/solrj/src/test-files/docs2.xmldiff --cc solr/solrj/src/test/org/apache/solr/client/solrj/LargeVolumeTestBase.javaindex 8e4f96f72f1,8e4f96f72f1..248fe47fb16--- a/solr/solrj/src/test/org/apache/solr/client/solrj/LargeVolumeTestBase.java+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/LargeVolumeTestBase.java@@@ -21,6 -21,6 +21,7 @@@ import java.io.IOExceptionimport java.util.ArrayList;import java.util.List;++import org.apache.solr.SolrJettyTestBase;import org.apache.solr.client.solrj.response.QueryResponse;import org.apache.solr.client.solrj.response.UpdateResponse;import org.apache.solr.common.SolrInputDocument;@@@ -30,7 -30,7 +31,7 @@@ import org.junit.Test** @since solr 1.3*/--public abstract class LargeVolumeTestBase extends SolrJettyTestBase++public abstract class LargeVolumeTestBase extends SolrJettyTestBase{// for real load testing, make these numbers biggerdiff --cc solr/solrj/src/test/org/apache/solr/client/solrj/SolrExampleTests.javaindex e19992a4a21,1f28fa120d5..60cad11f534--- a/solr/solrj/src/test/org/apache/solr/client/solrj/SolrExampleTests.java+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/SolrExampleTests.java@@@ -27,6 -27,6 +27,7 @@@ import java.util.concurrent.atomic.Atomimport junit.framework.Assert;import org.apache.lucene.util._TestUtil;++import org.apache.solr.SolrJettyTestBase;import org.apache.solr.client.solrj.impl.BinaryResponseParser;import org.apache.solr.client.solrj.impl.CommonsHttpSolrServer;import org.apache.solr.client.solrj.impl.XMLResponseParser;diff --cc solr/solrj/src/test/org/apache/solr/client/solrj/StartSolrJetty.javaindex 8749674720e,8749674720e..50c16196c02--- a/solr/solrj/src/test/org/apache/solr/client/solrj/StartSolrJetty.java+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/StartSolrJetty.java@@@ -42,7 -42,7 +42,7 @@@ public class StartSolrJettWebAppContext bb = new WebAppContext();bb.setServer(server);bb.setContextPath("/");-- bb.setWar("src/webapp/web");++ bb.setWar("webapp/web");// // START JMX SERVER// if( true ) {diff --cc solr/solrj/src/test/org/apache/solr/client/solrj/TestBatchUpdate.javaindex c4212df9639,c4212df9639..4ebb24819eb--- a/solr/solrj/src/test/org/apache/solr/client/solrj/TestBatchUpdate.java+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/TestBatchUpdate.java@@@ -16,6 -16,6 +16,7 @@@*/package org.apache.solr.client.solrj;++import org.apache.solr.SolrJettyTestBase;import org.apache.solr.client.solrj.beans.Field;import org.apache.solr.client.solrj.impl.BinaryRequestWriter;import org.apache.solr.client.solrj.impl.CommonsHttpSolrServer;diff --cc solr/solrj/src/test/org/apache/solr/client/solrj/embedded/JettyWebappTest.javaindex dd8c47304dd,dd8c47304dd..365cc05022d--- a/solr/solrj/src/test/org/apache/solr/client/solrj/embedded/JettyWebappTest.java+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/embedded/JettyWebappTest.java@@@ -25,7 -25,7 +25,6 @@@ import org.apache.lucene.util.LuceneTesimport org.apache.commons.io.IOUtils;import org.apache.solr.SolrTestCaseJ4;--import org.apache.solr.client.solrj.SolrJettyTestBase;import org.apache.solr.util.ExternalPaths;import org.mortbay.jetty.Connector;import org.mortbay.jetty.Server;diff --cc solr/solrj/src/test/org/apache/solr/client/solrj/response/TermsResponseTest.javaindex 4a599f0b1b4,4a599f0b1b4..e9a621fbae2--- a/solr/solrj/src/test/org/apache/solr/client/solrj/response/TermsResponseTest.java+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/response/TermsResponseTest.java@@@ -19,7 -19,7 +19,7 @@@ package org.apache.solr.client.solrj.reimport java.util.List;import junit.framework.Assert;--import org.apache.solr.client.solrj.SolrJettyTestBase;++import org.apache.solr.SolrJettyTestBase;import org.apache.solr.client.solrj.SolrQuery;import org.apache.solr.common.SolrInputDocument;import org.apache.solr.client.solrj.request.QueryRequest;diff --cc solr/solrj/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.javaindex 64e35ff2dad,64e35ff2dad..c42c2d52727--- a/solr/solrj/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java@@@ -17,7 -17,7 +17,7 @@@ package org.apache.solr.client.solrj.re*/import junit.framework.Assert;--import org.apache.solr.client.solrj.SolrJettyTestBase;++import org.apache.solr.SolrJettyTestBase;import org.apache.solr.client.solrj.SolrQuery;import org.apache.solr.client.solrj.request.QueryRequest;import org.apache.solr.client.solrj.response.SpellCheckResponse.Collation;diff --cc solr/solrj/src/test/org/apache/solr/common/util/TestNamedListCodec.javaindex 70b31a010c8,70b31a010c8..0c6069fec33--- a/solr/solrj/src/test/org/apache/solr/common/util/TestNamedListCodec.java+++ b/solr/solrj/src/test/org/apache/solr/common/util/TestNamedListCodec.java@@@ -17,9 -17,9 +17,9 @@@package org.apache.solr.common.util;import org.apache.lucene.util.LuceneTestCase;++import org.apache.solr.BaseDistributedSearchTestCase;import org.apache.solr.common.SolrDocument;import org.apache.solr.common.SolrDocumentList;--import org.apache.solr.TestDistributedSearch;import java.io.ByteArrayOutputStream;import java.io.ByteArrayInputStream;@@@ -246,7 -246,7 +246,7 @@@ public class TestNamedListCodec extendbyte[] arr = baos.toByteArray();// System.out.println(arr.length);res = (NamedList) new JavaBinCodec().unmarshal(new ByteArrayInputStream(arr));-- cmp = TestDistributedSearch.compare(nl,res, 0, null);++ cmp = BaseDistributedSearchTestCase.compare(nl, res, 0, null);if (cmp != null) {System.out.println(nl);diff --cc solr/test-framework/build.xmlindex 00000000000,00000000000..61790d3ccf5new file mode 100644--- /dev/null+++ b/solr/test-framework/build.xml@@@ -1,0 -1,0 +1,42 @@@++<?xml version="1.0"?>++<!--++ 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.++ -->++<project name="solr-test-framework" default="default">++ <description>Solr Test Framework</description>++++ <import file="../common-build.xml"/>++++ <path id="javadoc.classpath">++ <path refid="classpath"/>++ <pathelement location="${common.dir}/build/classes/test-framework"/>++ <pathelement location="${build.dir}/classes/java"/>++ </path>++++ <!-- Redefine Lucene test-framework compilation here to avoid circular dependency on compile-core -->++ <target name="compile-test-framework">++ <ant dir="${common.dir}" target="compile-test-framework" inheritall="false">++ <propertyset refid="uptodate.and.compiled.properties"/>++ </ant>++ </target>++++ <target name="compile-core" depends="compile-solr-core, compile-test-framework">++ <compile srcdir="${src.dir}" destdir="${build.dir}/classes/java">++ <classpath refid="test.base.classpath"/>++ </compile>++ </target>++</project>++diff --cc solr/test-framework/src/java/org/apache/solr/SolrJettyTestBase.javaindex 4ca9a7511f3,4ca9a7511f3..15cd1f46ced--- a/solr/test-framework/src/java/org/apache/solr/SolrJettyTestBase.java+++ b/solr/test-framework/src/java/org/apache/solr/SolrJettyTestBase.java@@@ -1,4 -1,4 +1,4 @@@--package org.apache.solr.client.solrj;++package org.apache.solr;/*** Licensed to the Apache Software Foundation (ASF) under one or more@@@ -20,7 -20,7 +20,7 @@@import java.io.File;import java.io.IOException;--import org.apache.solr.SolrTestCaseJ4;++import org.apache.solr.client.solrj.SolrServer;import org.apache.solr.client.solrj.embedded.EmbeddedSolrServer;import org.apache.solr.client.solrj.embedded.JettySolrRunner;import org.apache.solr.client.solrj.impl.CommonsHttpSolrServer;diff --cc solr/test-framework/src/java/org/apache/solr/util/ExternalPaths.javaindex 9ea244c6773,21e14ccef40..316bf93a239--- a/solr/test-framework/src/java/org/apache/solr/util/ExternalPaths.java+++ b/solr/test-framework/src/java/org/apache/solr/util/ExternalPaths.java@@@ -28,7 -28,7 +28,7 @@@ import org.apache.solr.SolrTestCaseJ4*/public class ExternalPaths {private static final String SOURCE_HOME = determineSourceHome();-- public static String WEBAPP_HOME = new File(SOURCE_HOME, "src/webapp/web").getAbsolutePath();++ public static String WEBAPP_HOME = new File(SOURCE_HOME, "webapp/web").getAbsolutePath();public static String EXAMPLE_HOME = new File(SOURCE_HOME, "example/solr").getAbsolutePath();public static String EXAMPLE_MULTICORE_HOME = new File(SOURCE_HOME, "example/multicore").getAbsolutePath();public static String EXAMPLE_SCHEMA=EXAMPLE_HOME+"/conf/schema.xml";diff --cc solr/test-framework/src/java/overview.htmlindex 00000000000,00000000000..6534614feb5new file mode 100644--- /dev/null+++ b/solr/test-framework/src/java/overview.html@@@ -1,0 -1,0 +1,5 @@@++<html>++<body>++Apache Solr Search Server: Test Framework++</body>++</html>diff --cc solr/webapp/build.xmlindex 00000000000,00000000000..91682cda4a3new file mode 100644--- /dev/null+++ b/solr/webapp/build.xml@@@ -1,0 -1,0 +1,74 @@@++<?xml version="1.0"?>++<!--++ 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.++ -->++<project name="solr-webapp" default="default">++ <description>Solr webapp</description>++++ <import file="../common-build.xml"/>++++ <!-- Checks that all JSP files in the webapp compile successfully using Jetty's Jasper -->++ <target name="test" depends="compile-test-solr-core">++ <property name="jsp.target" location="${dest}/jsp-temp" />++ <taskdef classname="org.apache.jasper.JspC" name="jasper" >++ <classpath>++ <fileset dir="${common-solr.dir}/example/lib" includes="**/*.jar" />++ </classpath>++ </taskdef>++ <delete dir="${jsp.target}" />++ <mkdir dir="${jsp.target}" />++ <jasper uriroot="${common-solr.dir}/webapp/web" outputDir="${jsp.target}" compile="false" verbose="1" package="j"/>++ <javac srcdir="${jsp.target}" destdir="${jsp.target}" target="${javac.target}"++ source="${javac.source}" debug="off" includeAntRuntime="${javac.includeAntRuntime}"++ encoding="utf8" classpathref="test.classpath"/>++ </target>++++ <target name="dist"++ description="Creates the Solr WAR Distribution file."++ depends="test, init-dist, dist-core, dist-solrj, lucene-jars-to-solr">++ <exec dir="." executable="${svnversion.exe}"++ outputproperty="svnversion" failifexecutionfails="false">++ <arg line="."/>++ </exec>++ <build-manifest title="Apache Solr Search Server"++ implementation.title="org.apache.solr"++ spec.version="${solr.spec.version}"/>++ <ant dir="${common-solr.dir}" inheritall="false" target="contribs-add-to-war"/>++ <war destfile="${dist}/apache-solr-${version}.war"++ webxml="web/WEB-INF/web.xml"++ manifest="${dest}/META-INF/MANIFEST.MF">++ <lib dir="${common-solr.dir}/lib">++ <exclude name="servlet-api*.jar" />++ <exclude name="easymock-*.jar" />++ <exclude name="junit-*.jar" />++ <exclude name="*.txt" />++ <exclude name="*.template" />++ </lib>++ <lib dir="${lucene-libs}"/>++ <lib dir="${dist}">++ <include name="apache-solr-solrj-${version}.jar" />++ <include name="apache-solr-core-${version}.jar" />++ </lib>++ <fileset dir="${dest}/web"/> <!-- contribs' additions -->++ <fileset dir="web" />++ <metainf dir="${common-solr.dir}" includes="LICENSE.txt,NOTICE.txt"/>++ </war>++ </target>++++ <target name="dist-maven" depends="dist" if="pom.xml.present">++ <m2-deploy jar.file="${dist}/apache-solr-${version}.war"/>++ </target>++</project>