Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-2452: Merged with trunk up to r1129202; standardized solr/contrib/* layouts.

Steven Rowe31c83c9d6fdc
diff --cc solr/build.xml
index b8f678433ed,de7ef217bee..84f6a21bb24
--- a/solr/build.xml
+++ b/solr/build.xml
@@@ -16,76 -16,161 +16,76 @@@
See the License for the specific language governing permissions and
limitations under the License.
-->
+<project name="solr-core" default="usage">
+ <description>Solr</description>
-<project name="solr" default="usage" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">
+ <property name="src.dir" location="src/java"/>
- <property name="solr-path" value="." />
-
- <import file="common-build.xml"/>
-
- <!-- 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" />
+ <!-- solr uses this as the test working directory: nocommit classpath -->
+ <property name="tests.userdir" value="src/test-files"/>
- <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">
- <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="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 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>
-
- <!-- 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 id="additional.dependencies">
+ <fileset dir="lib" includes="**/*.jar"/>
+ <fileset dir="example/lib" includes="**/*.jar"/>
</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>
- <target name="javadoc-core" depends="compile,javadoc-dep" description="Generates javadoc documentation for core.">
+ <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.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-highlighter, compile-memory, compile-misc,
- compile-queries, compile-spatial, compile-spellchecker, compile-solrj,
- common.compile-core, compile-webapp"
++ compile-analyzers-phonetic, compile-suggest, compile-highlighter,
++ compile-memory, compile-misc, compile-queries, compile-spatial,
++ 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="${build.javadoc}/solr"/>
-
- <path id="javadoc.classpath">
- <path refid="compile.classpath"/>
- <path refid="compile.classpath.solrj"/>
- <pathelement location="${dest}/solrj"/>
- </path>
-
+ <mkdir dir="${javadoc.dir}/solrj"/>
<invoke-javadoc
- destdir="${build.javadoc}/solr"
- title="${Name} ${version} core API (${specversion})">
+ destdir="${javadoc.dir}/solrj"
+ title="${Name}-j ${version} API (${specversion})">
<sources>
- <packageset dir="${src}/java" />
- <packageset dir="${src}/webapp/src"/>
+ <packageset dir="src/common"/>
+ <packageset dir="src/solrj"/>
</sources>
</invoke-javadoc>
</sequential>
@@@ -108,62 -195,994 +108,62 @@@
</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 ============================= -->
- <!-- ========================================================================= -->
-
-
- <!-- 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}"/>
- <!-- TODO: why is this unconditionally set to "" above? disable for now
- <jvmarg line="${dir.prop}"/>
- -->
- <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">
- <copy file="${dist}/${fullnamever}.war"
- tofile="${example}/webapps/${ant.project.name}.war"/>
- <jar destfile="${example}/exampledocs/post.jar"
- basedir="${dest}/solr"
- filesetmanifest="skip"
- includes="org/apache/solr/util/SimplePostTool*.class">
- <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="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>
-
- <!-- make a distribution -->
- <target name="package" depends="package-src,create-package"/>
-
- <property name="svn.export.dir" location="${dest}/svn-export"/>
-
- <!-- 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"
- 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" />
- <tar destfile="${source.package.file}" compression="gzip" longfile="gnu">
- <tarfileset dir="${svn.export.dir}" prefix="${fullnamever}"/>
- <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>
- </target>
-
- <!-- 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>
+ <!-- Default target: usage. 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="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 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>
- <target name="create-package"
- description="Packages the Solr Binary Distribution"
- depends="dist, example, javadoc">
- <mkdir dir="${package.dir}"/>
-
- <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" />
-
- <tar destfile="${package.dir}/${fullnamever}.tgz" compression="gzip" longfile="gnu">
- <tarfileset dir="."
- prefix="${fullnamever}"
- includes="LICENSE.txt NOTICE.txt *.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" />
- <tarfileset dir="."
- mode="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-*/**"
- />
- </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}"/>
-
- <!--
- 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"
- />
-
- <zip destfile="${package.dir}/${fullnamever}.zip">
- <zipfileset dir="${dest}/${fullnamever}"
- prefix="${fullnamever}"
- excludes="**/*.sh **/bin/ src/scripts/" />
- <zipfileset dir="${dest}/${fullnamever}"
- prefix="${fullnamever}"
- includes="**/*.sh **/bin/ src/scripts/"
- filemode="755" />
- </zip>
- <solr-checksum file="${package.dir}/${fullnamever}.zip"/>
-
+ <!-- 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"/>
</target>
-
- <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>
- <target name="svn-up">
- <exec executable="${svn.exe}">
- <arg value="update"/>
- </exec>
+ <target name="javadocs-contrib" description="Generate javadocs for contrib classes"
+ depends="build-contrib">
+ <contrib-crawl target="javadocs" failonerror="true"/>
</target>
- <target name="clean-package-signatures">
- <delete failonerror="false">
- <fileset dir="${package.dir}">
- <include name="**/*.asc"/>
- </fileset>
- </delete>
+ <target name="test-contrib" description="Run contrib unit tests."
+ depends="build-contrib">
+ <contrib-crawl target="test" failonerror="true"/>
</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="compile-analyzers-common" unless="analyzers-common.uptodate">
+ <ant dir="${common.dir}/../modules/analysis/common" target="default" inheritAll="false"/>
</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="compile-analyzers-phonetic" unless="analyzers-phonetic.uptodate">
+ <ant dir="${common.dir}/../modules/analysis/phonetic" target="default" inheritAll="false"/>
</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="maven.ant.tasks-check,dist,dist-src,dist-javadoc">
- <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>
- </sequential>
++ <target name="compile-suggest" unless="suggest.uptodate">
++ <ant dir="${common.dir}/../modules/suggest" target="default" inheritAll="false"/>
+ </target>
-
- <target name="set-fsdir">
- <property name="use.fsdir" value="true"/>
+ <target name="compile-highlighter" unless="highlighter.uptodate">
+ <ant dir="${common.dir}/contrib/highlighter" target="default" inheritAll="false"/>
</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 name="compile-memory" unless="memory.uptodate">
+ <ant dir="${common.dir}/contrib/memory" target="default" inheritAll="false"/>
</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 name="compile-misc" unless="misc.uptodate">
+ <ant dir="${common.dir}/contrib/misc" target="default" inheritAll="false"/>
</target>
-
-
- <!-- ========================================================================= -->
- <!-- ===================== Runtime: luke ============================= -->
- <!-- ========================================================================= -->
- <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 name="compile-queries" unless="queries.uptodate">
+ <ant dir="${common.dir}/contrib/queries" target="default" inheritAll="false"/>
</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"
- 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>
- </java>
+ <target name="compile-spatial" unless="spatial.uptodate">
+ <ant dir="${common.dir}/contrib/spatial" target="default" inheritAll="false"/>
</target>
- <target name="compile-spellchecker" unless="spellchecker.uptodate">
- <ant dir="${common.dir}/contrib/spellchecker" target="default" inheritAll="false"/>
- </target>
</project>
-
-
diff --cc solr/common-build.xml
index 6dd27fd58c3,c111d7106a1..26e1cf0eb5f
--- a/solr/common-build.xml
+++ b/solr/common-build.xml
@@@ -22,75 -22,302 +22,76 @@@
</description>
<dirname file="${ant.file.common-solr}" property="common-solr.dir"/>
- <import file="${common-solr.dir}/../common-build.xml"/>
- <!-- 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="version" value="4.0-SNAPSHOT"/>
+ <property name="final.name" value="apache-${name}-${version}"/>
- <property name="name" value="${ant.project.name}"/>
+ <!-- solr uses 1.6 -->
+ <property name="javac.source" value="1.6"/>
+ <property name="javac.target" value="1.6"/>
- <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"/>
+ <!-- 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://java.sun.com/javase/6/docs/api/"/>
- <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>
+ <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>
- <property name="junit.details" value="1"/>
+ <pathconvert property="project.classpath" targetos="unix" refid="additional.dependencies"/>
- <!-- default arguments to pass to jvm executing tests -->
- <property name="args" value="" />
+ <property name="tests.loggingfile" value="${common-solr.dir}/testlogging.properties"/>
- <!-- TODO: measure toning this down by default to 1 -->
<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" />
-
- <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" />
-
- <!-- Java Version we are compatible with -->
- <property name="java.compat.version" value="1.6" />
-
- <!-- clover wants to run with -lib, otherwise we prefer a repeatable
- classpath -->
- <property name="javac.includeAntRuntime" value="${run.clover}"/>
-
- <!-- Solr Implementation Version -->
- <!--
- This can be any string value that does not include spaces
- This will be used when creating build artifact file names.
-
- 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+}*"
-
- 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://java.sun.com/javase/6/docs/api/"/>
- <property name="javadoc.link.junit"
- value="http://junit.sourceforge.net/javadoc/"/>
- <property name="javadoc.link.lucene"
- value="https://hudson.apache.org/hudson/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 "m2.repository.private.key"
- 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"/>
-
- <available property="maven.ant.tasks.present" classname="org.apache.maven.artifact.ant.Pom" />
-
- <!-- 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/classes/java" />
- <pathelement location="${common-solr.dir}/../lucene/build/contrib/spatial/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" />
- </subant>
- </sequential>
- </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">
- <include name="lucene-queries-${version}.jar" />
- </fileset>
- <fileset dir="../lucene/build/contrib/spatial">
- <include name="lucene-spatial-${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"/>
- </subant>
- </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>
-
+ <import file="../lucene/contrib/contrib-build.xml"/>
+
+ <!-- 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"/>
+ <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" property="queries.uptodate" classpath.property="queries.jar"/>
+ <contrib-uptodate name="spatial" property="spatial.uptodate" classpath.property="spatial.jar"/>
- <contrib-uptodate name="spellchecker" property="spellchecker.uptodate" classpath.property="spellchecker.jar"/>
-
++
+ <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.jar}"/>
+ <pathelement path="${spatial.jar}"/>
- <pathelement path="${spellchecker.jar}"/>
++ <pathelement path="${suggest.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"/>
+ </path>
+
+ <path id="classpath" refid="solr.base.classpath"/>
+
+ <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="${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"/>
diff --cc solr/contrib/analysis-extras/build.xml
index 07f8d2fb2cc,6ec8ecdbaa8..d4c455e4186
--- a/solr/contrib/analysis-extras/build.xml
+++ b/solr/contrib/analysis-extras/build.xml
@@@ -23,37 -27,185 +23,37 @@@
Additional analysis components
</description>
- <property name="src.dir" location="src/main/java"/>
- <property name="tests.src.dir" location="src/test/java"/>
- <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>
-
- <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>
-
- <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>
-
- <target name="clean">
- <delete failonerror="false" dir="${dest}"/>
++ <property name="src.dir" location="src/java"/>
++ <property name="tests.src.dir" location="src/test"/>
+ <property name="tests.userdir" location="src/test-files"/>
- <!-- 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>
+ <import file="../contrib-build.xml"/>
+ <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"/>
- <target name="compile" depends="init">
- <solr-javac destdir="${dest}/classes"
- classpathref="common.classpath">
- <src path="src/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"/>
- </solr-javac>
- <!-- Copy any data files present to the classpath -->
- <copy todir="${dest}/test-classes">
- <fileset dir="src/test-files" 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}"/>
-
- <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}"/>
- <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}" unless="testcase">
- <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>
- </junit>
+ <path id="classpath">
+ <pathelement path="${analyzers-icu.jar}"/>
+ <pathelement path="${analyzers-smartcn.jar}"/>
+ <pathelement path="${analyzers-stempel.jar}"/>
+ <path refid="solr.base.classpath"/>
+ </path>
- <fail if="tests.failed">Tests failed!</fail>
+ <target name="compile-analyzers-icu" unless="analyzers-icu.uptodate">
+ <ant dir="${common.dir}/../modules/analysis/icu" target="default" inheritAll="false"/>
</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 name="compile-analyzers-smartcn" unless="analyzers-smartcn.uptodate">
+ <ant dir="${common.dir}/../modules/analysis/smartcn" target="default" inheritAll="false"/>
</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 name="compile-analyzers-stempel" unless="analyzers-stempel.uptodate">
+ <ant dir="${common.dir}/../modules/analysis/stempel" target="default" inheritAll="false"/>
</target>
+ <target name="compile-core" depends="compile-analyzers-icu, compile-analyzers-smartcn, compile-analyzers-stempel, solr-contrib-build.compile-core"/>
</project>
diff --cc solr/contrib/clustering/build.xml
index 799ce0f77fe,9a0c67eaa2f..aeb18c02a33
--- a/solr/contrib/clustering/build.xml
+++ b/solr/contrib/clustering/build.xml
@@@ -23,9 -27,159 +23,9 @@@
Clustering Integraton
</description>
- <property name="src.dir" location="src/main/java"/>
- <property name="tests.src.dir" location="src/test/java"/>
- <property name="tests.userdir" location="src/test/resources"/>
- <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}"/>
-
- <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}"/>
- <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}" unless="testcase">
- <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>
- </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>
++ <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"/>
</project>
diff --cc solr/contrib/dataimporthandler-extras/build.xml
index d03b584b0e5,00000000000..930712f57a1
mode 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/main/java"/>
- <property name="tests.src.dir" location="src/test/java"/>
- <property name="tests.userdir" location="src/test/resources"/>
++ <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"/>
+ </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"/>
+ </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/test-files/solr-word.pdf
index bd8b865905f,bd8b865905f..bd8b865905f
Binary files differ
diff --cc solr/contrib/dataimporthandler/build.xml
index bdb0cd5e6cb,79a0524fcc7..a5004d76dcd
--- a/solr/contrib/dataimporthandler/build.xml
+++ b/solr/contrib/dataimporthandler/build.xml
@@@ -22,11 -22,292 +22,11 @@@
<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="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="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.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}"/>
- <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}"/>
- <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/main/java"/>
- <property name="tests.src.dir" location="src/test/java"/>
- <property name="tests.userdir" location="src/test/resources"/>
- <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>
++ <property name="src.dir" location="src/java"/>
++ <property name="tests.src.dir" location="src/test"/>
++ <property name="tests.userdir" location="src/test-files"/>
- <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>
+ <import file="../contrib-build.xml"/>
</project>
diff --cc solr/contrib/dataimporthandler/src/main/webapp/admin/dataimport.jsp
index 574ef67509e,574ef67509e..00000000000
deleted file mode 100644,100644
--- a/solr/contrib/dataimporthandler/src/main/webapp/admin/dataimport.jsp
+++ /dev/null
@@@ -1,53 -1,53 +1,0 @@@
--<%@ page import="org.apache.solr.request.SolrRequestHandler" %>
--<%@ page import="java.util.Map" %>
--<%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
--<%--
-- 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.
----%>
--<%-- do a verbatim include so we can use the local vars --%>
--<%@include file="_info.jsp"%>
--<html>
--<%
-- String handler = request.getParameter("handler");
--
-- if (handler == null) {
-- Map<String, SolrRequestHandler> handlers = core.getRequestHandlers();
--%>
--<head>
-- <title>DataImportHandler Interactive Development</title>
-- <link rel="stylesheet" type="text/css" href="solr-admin.css">
--</head>
--<body>
--Select handler:
--<ul>
--<%
-- for (String key : handlers.keySet()) {
-- if (handlers.get(key).getClass().getName().equals("org.apache.solr.handler.dataimport.DataImportHandler")) { %>
-- <li><a href="dataimport.jsp?handler=<%=key%>"><%=key%></a></li>
--<%
-- }
-- }
--%>
--</ul>
--</body>
--<% } else { %>
--
--<frameset cols = "50%, 50%">
-- <frame src ="debug.jsp?handler=<%=handler%>" />
-- <frame src ="../select?qt=<%=handler%>&command=status" name="result"/>
--</frameset>
--<% } %>
--</html>
diff --cc solr/contrib/dataimporthandler/src/main/webapp/admin/debug.jsp
index b24ae83fc9f,b24ae83fc9f..00000000000
deleted file mode 100644,100644
--- a/solr/contrib/dataimporthandler/src/main/webapp/admin/debug.jsp
+++ /dev/null
@@@ -1,106 -1,106 +1,0 @@@
--<%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
--<%--
-- 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.
----%>
--<%-- do a verbatim include so we can use the local vars --%>
--<%@include file="_info.jsp"%>
--<html>
--<head>
--<title>DataImportHandler Interactive Development</title>
--<link rel="stylesheet" type="text/css" href="solr-admin.css"/>
--<link rel="icon" href="favicon.ico" type="image/ico"/>
--<link rel="shortcut icon" href="favicon.ico" type="image/ico"/>
--<script src="jquery-1.4.3.min.js"></script>
--</head>
--<body>
--<h1>DataImportHandler Development Console</h1>
--<%
-- String handler = request.getParameter("handler"); // must be specified
--%>
--<form action="../select" target="result" method="get">
--<input type="hidden" name="debug" value="on"/>
--<input type="hidden" name="qt" value="<%=handler%>"/>
--<table>
-- <tr>
-- <th>Handler: </th>
-- <td><%=handler%> <a href="dataimport.jsp" target="_top">change handler</a></td>
-- </tr>
-- <tr>
-- <td colspan="2">
-- <table width="100%">
-- <tr>
-- <td>
-- <select name="command">
-- <option value="full-import" selected="selected">full-import</option>
-- <option value="delta-import">delta-import</option>
-- </select>
-- </td>
-- <td><strong>Verbose</strong>&nbsp;<input
-- name="verbose" type="checkbox"></td>
-- <td><strong>Commit</strong>&nbsp;<input
-- name="commit" type="checkbox"></td>
-- <td><strong>Clean</strong>&nbsp;<input
-- name="clean" type="checkbox"></td>
-- <td><strong>Start Row</strong>&nbsp;<input
-- name="start" size="4" type="text" value="0"></td>
-- <td><strong>No. of Rows</strong>&nbsp;<input name="rows"
-- type="text" size="4" value="10"></td>
-- </tr>
-- </table>
-- </td>
-- <tr>
-- <td><strong>data config xml</strong></td>
-- <td><input class="stdbutton" type="submit" value="debug now">
-- </td>
-- </tr>
-- <tr>
-- <td colspan="2"><textarea id="txtDataConfig" rows="30" cols="80" name="dataConfig"></textarea></td>
-- <script type="text/javascript" language="javascript">
-- $.get("../select?qt=<%=handler%>&command=show-config", function(data){
-- $('#txtDataConfig').attr('value', data);
-- });
-- </script>
-- </tr>
--</table>
--</form>
--<form action="../select" target="result" method="get">
-- <input type="hidden" name="clean" value="false">
-- <input type="hidden" name="commit" value="true">
-- <input type="hidden" name="qt" value="<%=handler%>"/>
-- <input class="stdbutton" type="submit" name="command" value="full-import">
-- <input class="stdbutton" type="submit" name="command" value="delta-import">
-- <input class="stdbutton" type="submit" name="command" value="status">
-- <input class="stdbutton" type="submit" name="command" value="reload-config">
-- <input class="stdbutton" type="submit" name="command" value="abort">
--</form>
--<form action="../select" target="result" method="get">
-- <input type="hidden" name="q" value="*:*">
-- <input type="hidden" name="start" value="0">
-- <input type="hidden" name="rows" value="0">
-- <input class="stdbutton" type="submit" value="Documents Count">
--</form>
--<form action="../select" target="result" method="get">
-- <input type="hidden" name="qt" value="<%=handler%>"/>
-- <input type="hidden" name="verbose" value="true">
-- <input type="hidden" name="clean" value="true">
-- <input type="hidden" name="commit" value="true">
-- <input type="hidden" name="command" value="full-import">
-- <input class="stdbutton" type="submit" value="Full Import with Cleaning">
--</form>
--
--<a href="index.jsp" target="_parent">Return to Admin Page</a>
--</body>
--</html>
diff --cc solr/contrib/extraction/build.xml
index 112d1731549,50dcb4983d5..9f52a4492d5
--- a/solr/contrib/extraction/build.xml
+++ b/solr/contrib/extraction/build.xml
@@@ -23,10 -27,168 +23,10 @@@
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/main/java"/>
- <property name="tests.src.dir" location="src/test/java"/>
- <property name="tests.userdir" location="src/test/resources"/>
- <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}"/>
- <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>
++ <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"/>
</project>
diff --cc solr/contrib/extraction/src/test-files/arabic.pdf
index 3d47b999d5e,3d47b999d5e..3d47b999d5e
Binary files differ
diff --cc solr/contrib/extraction/src/test-files/password-is-solrcell.docx
index 2723d5654b4,2723d5654b4..2723d5654b4
Binary files differ
diff --cc solr/contrib/extraction/src/test-files/solr-word.pdf
index bd8b865905f,bd8b865905f..bd8b865905f
Binary files differ
diff --cc solr/contrib/uima/build.xml
index 085b96c0ffb,16c7de67844..c7fe87a9863
--- a/solr/contrib/uima/build.xml
+++ b/solr/contrib/uima/build.xml
@@@ -23,10 -27,164 +23,10 @@@
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/main/java"/>
- <property name="tests.src.dir" location="src/test/java"/>
- <property name="tests.userdir" location="src/test/resources"/>
- <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" />
-
- <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="jetty.insecurerandom" value="1"/>
- <sysproperty key="tempDir" file="${tempDir}"/>
- <sysproperty key="testmethod" value="${testmethod}"/>
- <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>
++ <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"/>
</project>
diff --cc solr/contrib/uima/src/main/resources/org/apache/uima/desc/AggregateSentenceAE.xml
index 75ae50e500e,75ae50e500e..00000000000
deleted file mode 100644,100644
--- a/solr/contrib/uima/src/main/resources/org/apache/uima/desc/AggregateSentenceAE.xml
+++ /dev/null
@@@ -1,41 -1,41 +1,0 @@@
--<?xml version="1.0" encoding="UTF-8"?>
--<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
-- <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
-- <primitive>false</primitive>
-- <delegateAnalysisEngineSpecifiers>
-- <delegateAnalysisEngine key="HmmTagger">
-- <import name="HmmTagger"/>
-- </delegateAnalysisEngine>
-- <delegateAnalysisEngine key="WhitespaceTokenizer">
-- <import name="WhitespaceTokenizer"/>
-- </delegateAnalysisEngine>
-- </delegateAnalysisEngineSpecifiers>
-- <analysisEngineMetaData>
-- <name>AggregateSentenceAE</name>
-- <description/>
-- <version>1.0</version>
-- <vendor/>
-- <configurationParameters/>
-- <configurationParameterSettings/>
-- <flowConstraints>
-- <fixedFlow>
-- <node>WhitespaceTokenizer</node>
-- <node>HmmTagger</node>
-- </fixedFlow>
-- </flowConstraints>
-- <fsIndexCollection/>
-- <capabilities>
-- <capability>
-- <inputs/>
-- <outputs/>
-- <languagesSupported/>
-- </capability>
-- </capabilities>
-- <operationalProperties>
-- <modifiesCas>true</modifiesCas>
-- <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
-- <outputsNewCASes>false</outputsNewCASes>
-- </operationalProperties>
-- </analysisEngineMetaData>
-- <resourceManagerConfiguration/>
--</analysisEngineDescription>
diff --cc solr/contrib/uima/src/main/resources/org/apache/uima/desc/HmmTagger.xml
index 8fe4216d91a,8fe4216d91a..00000000000
deleted file mode 100644,100644
--- a/solr/contrib/uima/src/main/resources/org/apache/uima/desc/HmmTagger.xml
+++ /dev/null
@@@ -1,121 -1,121 +1,0 @@@
--<?xml version="1.0" encoding="UTF-8"?>
--<!--
-- 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.
---->
--<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
-- <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
-- <primitive>true</primitive>
-- <annotatorImplementationName>org.apache.uima.examples.tagger.HMMTagger</annotatorImplementationName>
-- <analysisEngineMetaData>
-- <name>Hidden Markov Model - Part of Speech Tagger</name>
-- <description>A configuration of the HmmTaggerAnnotator that looks for
-- parts of speech of identified tokens within existing
-- Sentence and Token annotations. See also
-- WhitespaceTokenizer.xml.</description>
-- <version>1.0</version>
-- <vendor>The Apache Software Foundation</vendor>
-- <configurationParameters>
-- <configurationParameter>
-- <name>NGRAM_SIZE</name>
-- <type>Integer</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- </configurationParameters>
-- <configurationParameterSettings>
-- <nameValuePair>
-- <name>NGRAM_SIZE</name>
-- <value>
-- <integer>3</integer>
-- </value>
-- </nameValuePair>
-- </configurationParameterSettings>
-- <typeSystemDescription>
-- <types>
-- <typeDescription>
-- <name>org.apache.uima.TokenAnnotation</name>
-- <description>Single token annotation</description>
-- <supertypeName>uima.tcas.Annotation</supertypeName>
-- <features>
-- <featureDescription>
-- <name>posTag</name>
-- <description>contains part-of-speech of a
-- corresponding token</description>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- </features>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.SentenceAnnotation</name>
-- <description>sentence annotation</description>
-- <supertypeName>uima.tcas.Annotation</supertypeName>
-- </typeDescription>
-- </types>
-- </typeSystemDescription>
-- <typePriorities/>
-- <fsIndexCollection/>
-- <capabilities>
-- <capability>
-- <inputs>
-- <type>org.apache.uima.TokenAnnotation</type>
-- <type allAnnotatorFeatures="true">org.apache.uima.SentenceAnnotation</type>
-- <feature>org.apache.uima.TokenAnnotation:end</feature>
-- <feature>org.apache.uima.TokenAnnotation:begin</feature>
-- </inputs>
-- <outputs>
-- <type>org.apache.uima.TokenAnnotation</type>
-- <feature>org.apache.uima.TokenAnnotation:posTag</feature>
-- <feature>org.apache.uima.TokenAnnotation:end</feature>
-- <feature>org.apache.uima.TokenAnnotation:begin</feature>
-- </outputs>
-- <languagesSupported/>
-- </capability>
-- </capabilities>
-- <operationalProperties>
-- <modifiesCas>true</modifiesCas>
-- <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
-- <outputsNewCASes>false</outputsNewCASes>
-- </operationalProperties>
-- </analysisEngineMetaData>
-- <externalResourceDependencies>
-- <externalResourceDependency>
-- <key>Model</key>
-- <description>HMM Tagger model file</description>
-- <interfaceName>org.apache.uima.examples.tagger.IModelResource</interfaceName>
-- <optional>false</optional>
-- </externalResourceDependency>
-- </externalResourceDependencies>
-- <resourceManagerConfiguration>
-- <externalResources>
-- <externalResource>
-- <name>ModelFile</name>
-- <description>HMM Tagger model file</description>
-- <fileResourceSpecifier>
-- <fileUrl>file:english/BrownModel.dat</fileUrl>
-- </fileResourceSpecifier>
-- <implementationName>org.apache.uima.examples.tagger.ModelResource</implementationName>
-- </externalResource>
-- </externalResources>
-- <externalResourceBindings>
-- <externalResourceBinding>
-- <key>Model</key>
-- <resourceName>ModelFile</resourceName>
-- </externalResourceBinding>
-- </externalResourceBindings>
-- </resourceManagerConfiguration>
--</analysisEngineDescription>
diff --cc solr/contrib/uima/src/main/resources/org/apache/uima/desc/OpenCalaisAnnotator.xml
index e7b0c07dcd4,e7b0c07dcd4..00000000000
deleted file mode 100644,100644
--- a/solr/contrib/uima/src/main/resources/org/apache/uima/desc/OpenCalaisAnnotator.xml
+++ /dev/null
@@@ -1,194 -1,194 +1,0 @@@
--<?xml version="1.0" encoding="UTF-8"?>
--<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
-- <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
-- <primitive>true</primitive>
-- <annotatorImplementationName>org.apache.uima.annotator.calais.OpenCalaisAnnotator</annotatorImplementationName>
-- <analysisEngineMetaData>
-- <name>OpenCalaisAnnotator</name>
-- <description/>
-- <configurationParameters>
-- <configurationParameter>
-- <name>allowDistribution</name>
-- <description/>
-- <type>Boolean</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>allowSearch</name>
-- <description/>
-- <type>Boolean</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>submitter</name>
-- <description/>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>licenseID</name>
-- <description/>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- </configurationParameters>
-- <configurationParameterSettings>
-- <nameValuePair>
-- <name>allowDistribution</name>
-- <value>
-- <boolean>false</boolean>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>allowSearch</name>
-- <value>
-- <boolean>false</boolean>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>submitter</name>
-- <value>
-- <string/>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>licenseID</name>
-- <value>
-- <string>OC_LICENSE_ID</string>
-- </value>
-- </nameValuePair>
-- </configurationParameterSettings>
-- <typeSystemDescription>
-- <types>
-- <typeDescription>
-- <name>org.apache.uima.calais.Person</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.Anniversary</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.City</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.Company</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.Continent</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.Country</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.Currency</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.EmailAddress</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.Facility</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.FaxNumber</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.Holiday</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.IndustryTerm</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.NaturalDisaster</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.NaturalFeature</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.Organization</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.PhoneNumber</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.ProviceOrState</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.Region</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.Technology</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.URL</name>
-- <description/>
-- <supertypeName>org.apache.uima.calais.BaseType</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.calais.BaseType</name>
-- <description/>
-- <supertypeName>uima.tcas.Annotation</supertypeName>
-- <features>
-- <featureDescription>
-- <name>calaisType</name>
-- <description>OpenCalais type</description>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- </features>
-- </typeDescription>
-- </types>
-- </typeSystemDescription>
-- <capabilities>
-- <capability>
-- <inputs/>
-- <outputs/>
-- <languagesSupported/>
-- </capability>
-- </capabilities>
-- <operationalProperties>
-- <modifiesCas>true</modifiesCas>
-- <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
-- <outputsNewCASes>false</outputsNewCASes>
-- </operationalProperties>
-- </analysisEngineMetaData>
--</analysisEngineDescription>
diff --cc solr/contrib/uima/src/main/resources/org/apache/uima/desc/OverridingParamsExtServicesAE.xml
index 81bd4029016,81bd4029016..00000000000
deleted file mode 100644,100644
--- a/solr/contrib/uima/src/main/resources/org/apache/uima/desc/OverridingParamsExtServicesAE.xml
+++ /dev/null
@@@ -1,147 -1,147 +1,0 @@@
--<?xml version="1.0" encoding="UTF-8"?>
--<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
-- <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
-- <primitive>false</primitive>
-- <delegateAnalysisEngineSpecifiers>
-- <delegateAnalysisEngine key="TextKeywordExtractionAEDescriptor">
-- <import name="TextKeywordExtractionAEDescriptor"/>
-- </delegateAnalysisEngine>
-- <delegateAnalysisEngine key="TextConceptTaggingAEDescriptor">
-- <import name="TextConceptTaggingAEDescriptor"/>
-- </delegateAnalysisEngine>
-- <delegateAnalysisEngine key="OpenCalaisAnnotator">
-- <import name="OpenCalaisAnnotator"/>
-- </delegateAnalysisEngine>
-- <delegateAnalysisEngine key="TextLanguageDetectionAEDescriptor">
-- <import name="TextLanguageDetectionAEDescriptor"/>
-- </delegateAnalysisEngine>
-- <delegateAnalysisEngine key="TextCategorizationAEDescriptor">
-- <import name="TextCategorizationAEDescriptor"/>
-- </delegateAnalysisEngine>
-- <delegateAnalysisEngine key="AggregateSentenceAE">
-- <import location="AggregateSentenceAE.xml"/>
-- </delegateAnalysisEngine>
-- <delegateAnalysisEngine key="TextRankedEntityExtractionAEDescriptor">
-- <import name="TextRankedEntityExtractionAEDescriptor"/>
-- </delegateAnalysisEngine>
-- </delegateAnalysisEngineSpecifiers>
-- <analysisEngineMetaData>
-- <name>ExtServicesAE</name>
-- <description/>
-- <version>1.0</version>
-- <vendor/>
-- <configurationParameters searchStrategy="language_fallback">
-- <configurationParameter>
-- <name>oc_licenseID</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- <overrides>
-- <parameter>OpenCalaisAnnotator/licenseID</parameter>
-- </overrides>
-- </configurationParameter>
-- <configurationParameter>
-- <name>keyword_apikey</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- <overrides>
-- <parameter>TextKeywordExtractionAEDescriptor/apikey</parameter>
-- </overrides>
-- </configurationParameter>
-- <configurationParameter>
-- <name>concept_apikey</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- <overrides>
-- <parameter>TextConceptTaggingAEDescriptor/apikey</parameter>
-- </overrides>
-- </configurationParameter>
-- <configurationParameter>
-- <name>lang_apikey</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- <overrides>
-- <parameter>TextLanguageDetectionAEDescriptor/apikey</parameter>
-- </overrides>
-- </configurationParameter>
-- <configurationParameter>
-- <name>cat_apikey</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- <overrides>
-- <parameter>TextCategorizationAEDescriptor/apikey</parameter>
-- </overrides>
-- </configurationParameter>
-- <configurationParameter>
-- <name>entities_apikey</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- <overrides>
-- <parameter>TextRankedEntityExtractionAEDescriptor/apikey</parameter>
-- </overrides>
-- </configurationParameter>
-- </configurationParameters>
-- <configurationParameterSettings>
-- <nameValuePair>
-- <name>oc_licenseID</name>
-- <value>
-- <string>licenseid</string>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>keyword_apikey</name>
-- <value>
-- <string>apikey</string>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>concept_apikey</name>
-- <value>
-- <string>apikey</string>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>lang_apikey</name>
-- <value>
-- <string>apikey</string>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>cat_apikey</name>
-- <value>
-- <string>apikey</string>
-- </value>
-- </nameValuePair>
-- </configurationParameterSettings>
-- <flowConstraints>
-- <fixedFlow>
-- <node>AggregateSentenceAE</node>
-- <node>OpenCalaisAnnotator</node>
-- <node>TextKeywordExtractionAEDescriptor</node>
-- <node>TextLanguageDetectionAEDescriptor</node>
-- <node>TextCategorizationAEDescriptor</node>
-- <node>TextConceptTaggingAEDescriptor</node>
-- <node>TextRankedEntityExtractionAEDescriptor</node>
-- </fixedFlow>
-- </flowConstraints>
-- <fsIndexCollection/>
-- <capabilities>
-- <capability>
-- <inputs/>
-- <outputs/>
-- <languagesSupported/>
-- </capability>
-- </capabilities>
-- <operationalProperties>
-- <modifiesCas>true</modifiesCas>
-- <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
-- <outputsNewCASes>false</outputsNewCASes>
-- </operationalProperties>
-- </analysisEngineMetaData>
-- <resourceManagerConfiguration/>
--</analysisEngineDescription>
diff --cc solr/contrib/uima/src/main/resources/org/apache/uima/desc/TextCategorizationAEDescriptor.xml
index 16aff2b7775,16aff2b7775..00000000000
deleted file mode 100644,100644
--- a/solr/contrib/uima/src/main/resources/org/apache/uima/desc/TextCategorizationAEDescriptor.xml
+++ /dev/null
@@@ -1,102 -1,102 +1,0 @@@
--<?xml version="1.0" encoding="UTF-8"?>
--<!--
--
-- 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.
--
---->
--<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
-- <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
-- <primitive>true</primitive>
-- <annotatorImplementationName>org.apache.uima.alchemy.annotator.TextCategorizationAnnotator</annotatorImplementationName>
-- <analysisEngineMetaData>
-- <name>TextCategorizationAEDescriptor</name>
-- <description/>
-- <version>1.0</version>
-- <vendor/>
-- <configurationParameters>
-- <configurationParameter>
-- <name>apikey</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>outputMode</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>baseUrl</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>false</mandatory>
-- </configurationParameter>
-- </configurationParameters>
-- <configurationParameterSettings>
-- <nameValuePair>
-- <name>outputMode</name>
-- <value>
-- <string>xml</string>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>apikey</name>
-- <value>
-- <string>AA_API_KEY</string>
-- </value>
-- </nameValuePair>
-- </configurationParameterSettings>
-- <typeSystemDescription>
-- <types>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.categorization.Category</name>
-- <description/>
-- <supertypeName>uima.cas.TOP</supertypeName>
-- <features>
-- <featureDescription>
-- <name>score</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>text</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- </features>
-- </typeDescription>
-- </types>
-- </typeSystemDescription>
-- <typePriorities/>
-- <fsIndexCollection/>
-- <capabilities>
-- <capability>
-- <inputs/>
-- <outputs/>
-- <languagesSupported/>
-- </capability>
-- </capabilities>
-- <operationalProperties>
-- <modifiesCas>true</modifiesCas>
-- <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
-- <outputsNewCASes>false</outputsNewCASes>
-- </operationalProperties>
-- </analysisEngineMetaData>
-- <resourceManagerConfiguration/>
--</analysisEngineDescription>
diff --cc solr/contrib/uima/src/main/resources/org/apache/uima/desc/TextConceptTaggingAEDescriptor.xml
index ee9166c3a2e,ee9166c3a2e..00000000000
deleted file mode 100644,100644
--- a/solr/contrib/uima/src/main/resources/org/apache/uima/desc/TextConceptTaggingAEDescriptor.xml
+++ /dev/null
@@@ -1,196 -1,196 +1,0 @@@
--<?xml version="1.0" encoding="UTF-8"?>
--<!--
-- 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.
---->
--<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
-- <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
-- <primitive>true</primitive>
-- <annotatorImplementationName>org.apache.uima.alchemy.annotator.TextConceptTaggingAnnotator</annotatorImplementationName>
-- <analysisEngineMetaData>
-- <name>TextConceptTaggingAEDescriptor</name>
-- <description/>
-- <version>1.0</version>
-- <vendor/>
-- <configurationParameters>
-- <configurationParameter>
-- <name>apikey</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>outputMode</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>linkedData</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>false</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>showSourceText</name>
-- <type>Integer</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>maxRetrieve</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>false</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>url</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>false</mandatory>
-- </configurationParameter>
-- </configurationParameters>
-- <configurationParameterSettings>
-- <nameValuePair>
-- <name>apikey</name>
-- <value>
-- <string/>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>outputMode</name>
-- <value>
-- <string>xml</string>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>linkedData</name>
-- <value>
-- <string>1</string>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>showSourceText</name>
-- <value>
-- <integer>0</integer>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>maxRetrieve</name>
-- <value>
-- <string>8</string>
-- </value>
-- </nameValuePair>
-- </configurationParameterSettings>
-- <typeSystemDescription>
-- <types>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.concept.ConceptFS</name>
-- <description>a concept tag</description>
-- <supertypeName>uima.cas.TOP</supertypeName>
-- <features>
-- <featureDescription>
-- <name>text</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>relevance</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>website</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>geo</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>dbpedia</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>yago</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>opencyc</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>freebase</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>ciaFactbook</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>census</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>geonames</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>musicBrainz</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>crunchbase</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>semanticCrunchbase</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- </features>
-- </typeDescription>
-- </types>
-- </typeSystemDescription>
-- <typePriorities/>
-- <fsIndexCollection/>
-- <capabilities>
-- <capability>
-- <inputs/>
-- <outputs/>
-- <languagesSupported/>
-- </capability>
-- </capabilities>
-- <operationalProperties>
-- <modifiesCas>true</modifiesCas>
-- <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
-- <outputsNewCASes>false</outputsNewCASes>
-- </operationalProperties>
-- </analysisEngineMetaData>
-- <resourceManagerConfiguration/>
--</analysisEngineDescription>
diff --cc solr/contrib/uima/src/main/resources/org/apache/uima/desc/TextKeywordExtractionAEDescriptor.xml
index af6a5127a75,af6a5127a75..00000000000
deleted file mode 100644,100644
--- a/solr/contrib/uima/src/main/resources/org/apache/uima/desc/TextKeywordExtractionAEDescriptor.xml
+++ /dev/null
@@@ -1,107 -1,107 +1,0 @@@
--<?xml version="1.0" encoding="UTF-8"?>
--<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
-- <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
-- <primitive>true</primitive>
-- <annotatorImplementationName>org.apache.uima.alchemy.annotator.TextKeywordExtractionAnnotator</annotatorImplementationName>
-- <analysisEngineMetaData>
-- <name>TextKeywordExtractionAEDescriptor</name>
-- <description/>
-- <version>1.0</version>
-- <vendor/>
-- <configurationParameters>
-- <configurationParameter>
-- <name>apikey</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>outputMode</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>baseUrl</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>false</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>url</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>false</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>maxRetrieve</name>
-- <type>Integer</type>
-- <multiValued>false</multiValued>
-- <mandatory>false</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>showSourceText</name>
-- <type>Integer</type>
-- <multiValued>false</multiValued>
-- <mandatory>false</mandatory>
-- </configurationParameter>
-- </configurationParameters>
-- <configurationParameterSettings>
-- <nameValuePair>
-- <name>outputMode</name>
-- <value>
-- <string>xml</string>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>apikey</name>
-- <value>
-- <string>04490000a72fe7ec5cb3497f14e77f338c86f2fe</string>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>maxRetrieve</name>
-- <value>
-- <integer>10</integer>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>showSourceText</name>
-- <value>
-- <integer>0</integer>
-- </value>
-- </nameValuePair>
-- </configurationParameterSettings>
-- <typeSystemDescription>
-- <types>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.keywords.KeywordFS</name>
-- <description/>
-- <supertypeName>uima.cas.TOP</supertypeName>
-- <features>
-- <featureDescription>
-- <name>text</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- </features>
-- </typeDescription>
-- </types>
-- </typeSystemDescription>
-- <typePriorities/>
-- <fsIndexCollection/>
-- <capabilities>
-- <capability>
-- <inputs/>
-- <outputs/>
-- <languagesSupported/>
-- </capability>
-- </capabilities>
-- <operationalProperties>
-- <modifiesCas>true</modifiesCas>
-- <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
-- <outputsNewCASes>false</outputsNewCASes>
-- </operationalProperties>
-- </analysisEngineMetaData>
-- <resourceManagerConfiguration/>
--</analysisEngineDescription>
diff --cc solr/contrib/uima/src/main/resources/org/apache/uima/desc/TextLanguageDetectionAEDescriptor.xml
index 6f9fb982ab8,6f9fb982ab8..00000000000
deleted file mode 100644,100644
--- a/solr/contrib/uima/src/main/resources/org/apache/uima/desc/TextLanguageDetectionAEDescriptor.xml
+++ /dev/null
@@@ -1,107 -1,107 +1,0 @@@
--<?xml version="1.0" encoding="UTF-8"?>
--<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
-- <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
-- <primitive>true</primitive>
-- <annotatorImplementationName>org.apache.uima.alchemy.annotator.TextLanguageDetectionAnnotator</annotatorImplementationName>
-- <analysisEngineMetaData>
-- <name>TextLanguageDetectionAEDescriptor</name>
-- <description/>
-- <version>1.0</version>
-- <vendor/>
-- <configurationParameters>
-- <configurationParameter>
-- <name>apikey</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>outputMode</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>url</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>false</mandatory>
-- </configurationParameter>
-- </configurationParameters>
-- <configurationParameterSettings>
-- <nameValuePair>
-- <name>outputMode</name>
-- <value>
-- <string>xml</string>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>apikey</name>
-- <value>
-- <string>AA_API_KEY</string>
-- </value>
-- </nameValuePair>
-- </configurationParameterSettings>
-- <typeSystemDescription>
-- <types>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.language.LanguageFS</name>
-- <description/>
-- <supertypeName>uima.cas.TOP</supertypeName>
-- <features>
-- <featureDescription>
-- <name>language</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>iso6391</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>iso6392</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>iso6393</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>ethnologue</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>nativeSpeakers</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>wikipedia</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- </features>
-- </typeDescription>
-- </types>
-- </typeSystemDescription>
-- <typePriorities/>
-- <fsIndexCollection/>
-- <capabilities>
-- <capability>
-- <inputs/>
-- <outputs/>
-- <languagesSupported/>
-- </capability>
-- </capabilities>
-- <operationalProperties>
-- <modifiesCas>true</modifiesCas>
-- <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
-- <outputsNewCASes>false</outputsNewCASes>
-- </operationalProperties>
-- </analysisEngineMetaData>
-- <resourceManagerConfiguration/>
--</analysisEngineDescription>
diff --cc solr/contrib/uima/src/main/resources/org/apache/uima/desc/TextRankedEntityExtractionAEDescriptor.xml
index 410d6c9f825,410d6c9f825..00000000000
deleted file mode 100644,100644
--- a/solr/contrib/uima/src/main/resources/org/apache/uima/desc/TextRankedEntityExtractionAEDescriptor.xml
+++ /dev/null
@@@ -1,403 -1,403 +1,0 @@@
--<?xml version="1.0" encoding="UTF-8"?>
--<!--
--
-- 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.
--
---->
--<analysisEngineDescription xmlns="http://uima.apache.org/resourceSpecifier">
-- <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
-- <primitive>true</primitive>
-- <annotatorImplementationName>org.apache.uima.alchemy.annotator.TextRankedNamedEntityExtractionAnnotator</annotatorImplementationName>
-- <analysisEngineMetaData>
-- <name>TextRankedEntityExtractionAEDescriptor</name>
-- <description/>
-- <version>1.0</version>
-- <vendor/>
-- <configurationParameters>
-- <configurationParameter>
-- <name>apikey</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>outputMode</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>disambiguate</name>
-- <type>Integer</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>linkedData</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>false</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>showSourceText</name>
-- <type>Integer</type>
-- <multiValued>false</multiValued>
-- <mandatory>true</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>baseUrl</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>false</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>url</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>false</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>coreference</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>false</mandatory>
-- </configurationParameter>
-- <configurationParameter>
-- <name>quotations</name>
-- <type>String</type>
-- <multiValued>false</multiValued>
-- <mandatory>false</mandatory>
-- </configurationParameter>
-- </configurationParameters>
-- <configurationParameterSettings>
-- <nameValuePair>
-- <name>apikey</name>
-- <value>
-- <string/>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>outputMode</name>
-- <value>
-- <string>xml</string>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>disambiguate</name>
-- <value>
-- <integer>1</integer>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>linkedData</name>
-- <value>
-- <string>1</string>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>coreference</name>
-- <value>
-- <string>1</string>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>showSourceText</name>
-- <value>
-- <integer>0</integer>
-- </value>
-- </nameValuePair>
-- <nameValuePair>
-- <name>quotations</name>
-- <value>
-- <string>1</string>
-- </value>
-- </nameValuePair>
-- </configurationParameterSettings>
-- <typeSystemDescription>
-- <imports>
-- <import location="baseAlchemyTypeSystemDescriptor.xml"/>
-- </imports>
-- <types>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.Anniversary</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.Automobile</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.City</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.Company</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.Continent</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.Country</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.EntertainmentAward</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.Facility</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.FieldTerminology</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.FinancialMarketIndex</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.GeographicFeature</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.HealthCondition</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.Holiday</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.Movie</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.MusicGroup</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.NaturalDisaster</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.Organization</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.Person</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.PrintMedia</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.RadioProgram</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.RadioStation</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.Region</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.Sport</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.StateOrCounty</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.Technology</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.TelevisionShow</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.TelevisionStation</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.OperatingSystem</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.SportingEvent</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.Drug</name>
-- <description/>
-- <supertypeName>org.apache.uima.alchemy.ts.entity.BaseEntity</supertypeName>
-- </typeDescription>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.BaseEntity</name>
-- <description/>
-- <supertypeName>uima.cas.TOP</supertypeName>
-- <features>
-- <featureDescription>
-- <name>text</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>count</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>relevance</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>disambiguation</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>subType</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>website</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>geo</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>dbpedia</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>yago</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>opencyc</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>umbel</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>freebase</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>ciaFactbook</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>census</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>geonames</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>musicBrainz</name>
-- <description/>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- <featureDescription>
-- <name>quotations</name>
-- <description/>
-- <rangeTypeName>uima.cas.StringArray</rangeTypeName>
-- <multipleReferencesAllowed>true</multipleReferencesAllowed>
-- </featureDescription>
-- <featureDescription>
-- <name>occurrences</name>
-- <description>A list of annotations annotating this entity</description>
-- <rangeTypeName>uima.cas.FSList</rangeTypeName>
-- <elementType>uima.tcas.Annotation</elementType>
-- </featureDescription>
-- </features>
-- </typeDescription>
-- </types>
-- </typeSystemDescription>
-- <typePriorities/>
-- <fsIndexCollection/>
-- <capabilities>
-- <capability>
-- <inputs/>
-- <outputs/>
-- <languagesSupported/>
-- </capability>
-- </capabilities>
-- <operationalProperties>
-- <modifiesCas>true</modifiesCas>
-- <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
-- <outputsNewCASes>false</outputsNewCASes>
-- </operationalProperties>
-- </analysisEngineMetaData>
-- <resourceManagerConfiguration/>
--</analysisEngineDescription>
diff --cc solr/contrib/uima/src/main/resources/org/apache/uima/desc/WhitespaceTokenizer.xml
index 686dbefc5d3,686dbefc5d3..00000000000
deleted file mode 100644,100644
--- a/solr/contrib/uima/src/main/resources/org/apache/uima/desc/WhitespaceTokenizer.xml
+++ /dev/null
@@@ -1,115 -1,115 +1,0 @@@
--<?xml version="1.0" encoding="UTF-8" ?>
--
--<!--
-- ***************************************************************
-- * 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.
-- ***************************************************************
---->
--
--<analysisEngineDescription
-- xmlns="http://uima.apache.org/resourceSpecifier">
-- <frameworkImplementation>
-- org.apache.uima.java
-- </frameworkImplementation>
-- <primitive>true</primitive>
-- <annotatorImplementationName>
-- org.apache.uima.annotator.WhitespaceTokenizer
-- </annotatorImplementationName>
--
-- <analysisEngineMetaData>
-- <name>WhitespaceTokenizer</name>
-- <description>
-- creates token and sentence annotations for whitespace
-- separated languages
-- </description>
-- <version>1.0</version>
-- <vendor>The Apache Software Foundation</vendor>
--
-- <configurationParameters>
-- <configurationParameter>
-- <name>SofaNames</name>
-- <description>
-- The Sofa names the annotator should work on. If no
-- names are specified, the annotator works on the
-- default sofa.
-- </description>
-- <type>String</type>
-- <multiValued>true</multiValued>
-- <mandatory>false</mandatory>
-- </configurationParameter>
--
-- </configurationParameters>
--
-- <configurationParameterSettings>
-- <!--
-- <nameValuePair>
-- <name>SofaNames</name>
-- <value>
-- <array>
-- <string>sofaName</string>
-- </array>
-- </value>
-- </nameValuePair>
-- -->
-- </configurationParameterSettings>
--
-- <typeSystemDescription>
-- <typeDescription>
-- <name>org.apache.uima.TokenAnnotation</name>
-- <description>Single token annotation</description>
-- <supertypeName>uima.tcas.Annotation</supertypeName>
-- <features>
-- <featureDescription>
-- <name>tokenType</name>
-- <description>token type</description>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- </features>
-- </typeDescription>
--
-- <typeDescription>
-- <name>org.apache.uima.SentenceAnnotation</name>
-- <description>sentence annotation</description>
-- <supertypeName>uima.tcas.Annotation</supertypeName>
-- <features>
--
-- </features>
-- </typeDescription>
-- </typeSystemDescription>
--
-- <fsIndexes />
--
-- <capabilities>
-- <capability>
-- <inputs />
-- <outputs>
-- <type>org.apache.uima.TokenAnnotation</type>
-- <feature>
-- org.apache.uima.TokenAnnotation:tokentype
-- </feature>
-- <type>org.apache.uima.SentenceAnnotation</type>
-- </outputs>
-- <languagesSupported>
-- <language>x-unspecified</language>
-- </languagesSupported>
-- </capability>
-- </capabilities>
--
-- </analysisEngineMetaData>
--</analysisEngineDescription>
--
diff --cc solr/contrib/uima/src/main/resources/org/apache/uima/desc/baseAlchemyTypeSystemDescriptor.xml
index 32d5d843a48,32d5d843a48..00000000000
deleted file mode 100644,100644
--- a/solr/contrib/uima/src/main/resources/org/apache/uima/desc/baseAlchemyTypeSystemDescriptor.xml
+++ /dev/null
@@@ -1,41 -1,41 +1,0 @@@
--<?xml version="1.0" encoding="UTF-8"?>
--<!--
--
-- 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.
--
---->
--<typeSystemDescription xmlns="http://uima.apache.org/resourceSpecifier">
-- <name>baseAlchemyTypeSystemDescriptor</name>
-- <description/>
-- <version>1.0</version>
-- <vendor/>
-- <types>
-- <typeDescription>
-- <name>org.apache.uima.alchemy.ts.entity.AlchemyAnnotation</name>
-- <description/>
-- <supertypeName>uima.tcas.Annotation</supertypeName>
-- <features>
-- <featureDescription>
-- <name>alchemyType</name>
-- <description>alchemyAPI type</description>
-- <rangeTypeName>uima.cas.String</rangeTypeName>
-- </featureDescription>
-- </features>
-- </typeDescription>
-- </types>
--</typeSystemDescription>
diff --cc solr/contrib/uima/src/main/resources/solr/conf/aggregate-uima-config.xml
index 842b8e5cdd0,842b8e5cdd0..00000000000
deleted file mode 100644,100644
--- a/solr/contrib/uima/src/main/resources/solr/conf/aggregate-uima-config.xml
+++ /dev/null
@@@ -1,48 -1,48 +1,0 @@@
--<?xml version="1.0" encoding="UTF-8" ?>
-- <!--
-- 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.
-- -->
--
-- <updateRequestProcessorChain name="uima">
-- <processor class="org.apache.solr.uima.processor.UIMAUpdateRequestProcessorFactory">
-- <lst name="uimaConfig">
-- <lst name="runtimeParameters">
-- <str name="keyword_apikey">VALID_ALCHEMYAPI_KEY</str>
-- <str name="concept_apikey">VALID_ALCHEMYAPI_KEY</str>
-- <str name="lang_apikey">VALID_ALCHEMYAPI_KEY</str>
-- <str name="cat_apikey">VALID_ALCHEMYAPI_KEY</str>
-- <str name="entities_apikey">VALID_ALCHEMYAPI_KEY</str>
-- <str name="oc_licenseID">VALID_OPENCALAIS_KEY</str>
-- </lst>
-- <str name="analysisEngine">/org/apache/uima/desc/OverridingParamsExtServicesAE.xml</str>
-- <lst name="analyzeFields">
-- <bool name="merge">false</bool>
-- <arr name="fields">
-- <str>text</str>
-- <str>title</str>
-- </arr>
-- </lst>
-- <lst name="fieldMappings">
-- <lst name="mapping">
-- <str name="type">org.apache.uima.jcas.tcas.Annotation</str>
-- <str name="feature">convertText</str>
-- <str name="field">tag</str>
-- </lst>
-- </lst>
-- </lst>
-- </processor>
-- <processor class="solr.LogUpdateProcessorFactory" />
-- <processor class="solr.RunUpdateProcessorFactory" />
-- </updateRequestProcessorChain>
diff --cc solr/contrib/uima/src/main/resources/solr/conf/uima-fields.xml
index 270aaa6f62e,270aaa6f62e..00000000000
deleted file mode 100644,100644
--- a/solr/contrib/uima/src/main/resources/solr/conf/uima-fields.xml
+++ /dev/null
@@@ -1,9 -1,9 +1,0 @@@
--<?xml version="1.0" encoding="UTF-8" ?>
--<fields>
-- <field name="language" type="string" indexed="true" stored="true" required="false"/>
-- <field name="concept" type="string" indexed="true" stored="true" multiValued="true" required="false"/>
-- <field name="keyword" type="string" indexed="true" stored="true" multiValued="true" required="false"/>
-- <field name="suggested_category" type="string" indexed="true" stored="true" multiValued="false" required="false"/>
-- <field name="sentence" type="text" indexed="true" stored="true" multiValued="true" required="false" />
-- <dynamicField name="entity*" type="text" indexed="true" stored="true" multiValued="true"/>
--</fields>