2011-07-08 02:41:23 -04:00
|
|
|
<?xml version="1.0"?>
|
2006-11-09 18:13:58 -05:00
|
|
|
<!--
|
|
|
|
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.
|
|
|
|
-->
|
2012-07-14 03:16:33 -04:00
|
|
|
<project name="solr" default="usage" xmlns:ivy="antlib:org.apache.ivy.ant">
|
2011-04-01 02:58:12 -04:00
|
|
|
<description>Solr</description>
|
2006-12-05 02:34:22 -05:00
|
|
|
|
2011-07-08 02:41:23 -04:00
|
|
|
<target name="usage" description="Prints out instructions">
|
2006-01-29 10:16:56 -05:00
|
|
|
<echo message="Welcome to the Solr project!" />
|
2006-12-08 02:48:20 -05:00
|
|
|
<echo message="Use 'ant example' to create a runnable example configuration." />
|
2008-11-30 14:33:45 -05:00
|
|
|
<echo message="Use 'ant run-example' to create and run the example." />
|
2011-07-08 02:41:23 -04:00
|
|
|
<echo message="And for developers:"/>
|
2006-12-08 02:48:20 -05:00
|
|
|
<echo message="Use 'ant clean' to clean compiled files." />
|
2006-01-29 10:50:23 -05:00
|
|
|
<echo message="Use 'ant compile' to compile the source code." />
|
2006-11-28 17:36:42 -05:00
|
|
|
<echo message="Use 'ant dist' to build the project WAR and JAR files." />
|
2012-09-20 11:37:42 -04:00
|
|
|
<echo message="Use 'ant documentation' to build documentation." />
|
2008-08-29 13:43:05 -04:00
|
|
|
<echo message="Use 'ant generate-maven-artifacts' to generate maven artifacts." />
|
2011-01-22 04:32:08 -05:00
|
|
|
<echo message="Use 'ant package' to generate zip, tgz for distribution." />
|
2011-09-05 01:53:28 -04:00
|
|
|
<!--<echo message="Use 'ant luke' to start luke. see: http://luke.googlecode.com" />-->
|
2006-01-29 10:16:56 -05:00
|
|
|
<echo message="Use 'ant test' to run unit tests." />
|
|
|
|
</target>
|
2011-07-10 08:20:06 -04:00
|
|
|
|
2011-07-08 02:41:23 -04:00
|
|
|
<import file="common-build.xml"/>
|
2008-12-07 14:07:11 -05:00
|
|
|
|
2006-01-29 10:50:23 -05:00
|
|
|
<!-- ========================================================================= -->
|
2011-07-08 02:41:23 -04:00
|
|
|
<!-- ============================== USER TASKS =============================== -->
|
2006-01-29 10:50:23 -05:00
|
|
|
<!-- ========================================================================= -->
|
2011-07-08 02:41:23 -04:00
|
|
|
|
|
|
|
<target name="example" description="Creates a runnable example configuration."
|
2012-05-07 15:03:39 -04:00
|
|
|
depends="dist-contrib,dist-war">
|
2011-03-08 13:40:14 -05:00
|
|
|
<copy file="${dist}/${fullnamever}.war"
|
2006-05-04 08:53:31 -04:00
|
|
|
tofile="${example}/webapps/${ant.project.name}.war"/>
|
2007-02-18 16:30:03 -05:00
|
|
|
<jar destfile="${example}/exampledocs/post.jar"
|
2011-07-08 02:41:23 -04:00
|
|
|
basedir="${dest}/solr-core/classes/java"
|
2007-02-18 16:30:03 -05:00
|
|
|
includes="org/apache/solr/util/SimplePostTool*.class">
|
2011-07-08 02:41:23 -04:00
|
|
|
<manifest>
|
|
|
|
<attribute name="Main-Class" value="org.apache.solr.util.SimplePostTool"/>
|
|
|
|
</manifest>
|
2007-02-18 16:30:03 -05:00
|
|
|
</jar>
|
2008-08-07 13:27:52 -04:00
|
|
|
<delete includeemptydirs="true">
|
2012-07-11 20:34:22 -04:00
|
|
|
<fileset dir="${example}/solr-webapp" includes="**/*"/>
|
2008-08-07 13:27:52 -04:00
|
|
|
</delete>
|
2006-12-08 02:48:20 -05:00
|
|
|
<echo>See ${example}/README.txt for how to run the Solr example configuration.</echo>
|
2006-01-29 10:16:56 -05:00
|
|
|
</target>
|
2012-03-30 14:04:43 -04:00
|
|
|
|
2010-06-18 15:02:51 -04:00
|
|
|
<target name="run-example" depends="example"
|
|
|
|
description="Run Solr interactively, via Jetty. -Dexample.debug=true to enable JVM debugger">
|
2008-11-14 10:21:17 -05:00
|
|
|
<property name="example.solr.home" location="example/solr"/>
|
|
|
|
<property name="example.data.dir" location="example/solr/data"/>
|
2008-12-20 08:15:22 -05:00
|
|
|
<property name="example.debug.suspend" value="n"/>
|
2009-10-12 09:39:22 -04:00
|
|
|
<property name="example.jetty.port" value="8983"/>
|
2008-12-20 08:15:22 -05:00
|
|
|
<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}"/>
|
2008-11-14 10:21:17 -05:00
|
|
|
<sysproperty key="solr.solr.home" file="${example.solr.home}"/>
|
|
|
|
<sysproperty key="solr.data.dir" file="${example.data.dir}"/>
|
2009-10-12 09:39:22 -04:00
|
|
|
<sysproperty key="jetty.port" value="${example.jetty.port}"/>
|
2008-11-14 10:21:17 -05:00
|
|
|
</java>
|
2008-04-16 08:45:09 -04:00
|
|
|
</target>
|
2011-07-08 02:41:23 -04:00
|
|
|
|
|
|
|
<!-- setup proxy for download tasks -->
|
|
|
|
<condition property="proxy.specified">
|
|
|
|
<or>
|
|
|
|
<isset property="proxy.host"/>
|
|
|
|
<isset property="proxy.port"/>
|
|
|
|
<isset property="proxy.user"/>
|
|
|
|
</or>
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<target name="proxy.setup" if="proxy.specified">
|
|
|
|
<setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}" proxyuser="${proxy.user}" proxypassword="${proxy.password}"/>
|
|
|
|
</target>
|
2011-07-28 00:02:09 -04:00
|
|
|
|
2011-09-05 01:53:28 -04:00
|
|
|
<!--LUCENE-3286: Luke is incompatible with new XML QP location and target is not flexible
|
|
|
|
when it comes to incompatible changes. Update when Luke has updated.
|
2011-07-28 00:02:09 -04:00
|
|
|
<target name="compile-xml-query-parser">
|
2012-04-17 09:36:19 -04:00
|
|
|
<ant dir="${common.dir}/queryparser" target="compile-core" inheritAll="false">
|
2011-07-28 00:02:09 -04:00
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
|
|
|
</ant>
|
|
|
|
</target>
|
|
|
|
|
2011-07-08 02:41:23 -04:00
|
|
|
<property name="luke.version" value="1.0.1"/>
|
|
|
|
<available file="luke/luke-${luke.version}.jar" property="luke.jar.exists" />
|
|
|
|
<target name="luke-download" unless="luke.jar.exists" depends="proxy.setup,compile-xml-query-parser">
|
|
|
|
<mkdir dir="luke"/>
|
|
|
|
<get src="http://luke.googlecode.com/files/luke-${luke.version}.jar"
|
|
|
|
dest="luke/luke-${luke.version}.jar"/>
|
|
|
|
</target>
|
|
|
|
<path id="luke.classpath">
|
2012-02-07 14:59:05 -05:00
|
|
|
<pathelement location="${common.dir}/build/core/classes/java" />
|
2012-04-17 09:36:19 -04:00
|
|
|
<pathelement location="${common.dir}/queryparser/build/classes/java" />
|
2011-07-08 02:41:23 -04:00
|
|
|
</path>
|
|
|
|
<target name="luke" depends="luke-download">
|
|
|
|
<java fork="true"
|
|
|
|
classname="org.getopt.luke.Luke"
|
|
|
|
logError="true"
|
|
|
|
failonerror="true">
|
|
|
|
<classpath>
|
|
|
|
<fileset dir="luke">
|
|
|
|
<include name="luke-${luke.version}.jar"/>
|
|
|
|
</fileset>
|
|
|
|
<path refid="classpath"/>
|
|
|
|
<path refid="luke.classpath"/>
|
|
|
|
<path refid="test.classpath"/>
|
|
|
|
</classpath>
|
|
|
|
</java>
|
2011-09-05 01:53:28 -04:00
|
|
|
</target>-->
|
2011-07-08 02:41:23 -04:00
|
|
|
|
|
|
|
<!-- ========================================================================= -->
|
|
|
|
<!-- ========================== BUILD/TEST TASKS ============================= -->
|
|
|
|
<!-- ========================================================================= -->
|
2013-02-06 12:57:53 -05:00
|
|
|
|
|
|
|
<!-- solr/test-framework is excluded from compilation -->
|
2011-07-08 02:41:23 -04:00
|
|
|
<target name="compile" description="Compile the source code."
|
2011-07-28 00:02:09 -04:00
|
|
|
depends="compile-core, compile-contrib"/>
|
2013-02-06 12:57:53 -05:00
|
|
|
|
2011-07-08 02:41:23 -04:00
|
|
|
<target name="test" description="Validate, then run core, solrj, and contrib unit tests."
|
2012-07-09 10:24:49 -04:00
|
|
|
depends="test-core, test-contrib"/>
|
2012-09-28 06:12:49 -04:00
|
|
|
<!-- "-clover.load" is *not* a useless dependency. do not remove -->
|
2011-07-08 02:41:23 -04:00
|
|
|
<target name="test-core" description="Runs the core and solrj unit tests."
|
2012-09-28 06:12:49 -04:00
|
|
|
depends="-clover.load, test-solr-core, test-solrj"/>
|
2012-09-04 19:54:13 -04:00
|
|
|
<target name="pitest" description="Validate, then run core, solrj, and contrib unit tests."
|
|
|
|
depends="pitest-core, pitest-contrib"/>
|
2013-02-06 12:57:53 -05:00
|
|
|
<target name="compile-test" description="Compile core, solrj, and contrib unit tests, and solr-test-framework."
|
2011-11-25 12:38:56 -05:00
|
|
|
depends="compile-solr-test-framework, compile-test-solr-core, compile-test-solrj, compile-test-contrib"/>
|
2011-09-16 00:47:04 -04:00
|
|
|
<target name="javadocs" description="Calls javadocs-all, javadocs-solrj, and javadocs-test-framework"
|
2012-09-22 10:42:46 -04:00
|
|
|
depends="define-lucene-javadoc-url,javadocs-solr-core,javadocs-solrj,javadocs-test-framework,javadocs-contrib"/>
|
2012-09-20 11:37:42 -04:00
|
|
|
<target name="documentation" description="Generate all documentation"
|
|
|
|
depends="javadocs,changes-to-html,process-webpages"/>
|
2011-07-08 02:41:23 -04:00
|
|
|
<target name="compile-core" depends="compile-solr-core" unless="solr.core.compiled"/>
|
|
|
|
|
2012-10-15 19:06:34 -04:00
|
|
|
<target name="process-webpages" depends="define-lucene-javadoc-url,resolve-groovy,resolve-pegdown">
|
2012-09-20 11:37:42 -04:00
|
|
|
<makeurl property="process-webpages.buildfiles" separator="|">
|
|
|
|
<fileset dir="." includes="core/build.xml,test-framework/build.xml,solrj/build.xml,contrib/**/build.xml"/>
|
|
|
|
</makeurl>
|
|
|
|
<!--
|
|
|
|
The XSL input file is ignored completely, but XSL expects one to be given,
|
|
|
|
so we pass ourself (${ant.file}) here. The list of module build.xmls is given
|
|
|
|
via string parameter, that must be splitted by the XSL at '|'.
|
|
|
|
-->
|
|
|
|
<xslt in="${ant.file}" out="${javadoc.dir}/index.html" style="site/xsl/index.xsl" force="true">
|
|
|
|
<outputproperty name="method" value="html"/>
|
|
|
|
<outputproperty name="version" value="4.0"/>
|
|
|
|
<outputproperty name="encoding" value="UTF-8"/>
|
|
|
|
<outputproperty name="indent" value="yes"/>
|
|
|
|
<param name="buildfiles" expression="${process-webpages.buildfiles}"/>
|
|
|
|
<param name="version" expression="${version}"/>
|
2012-09-20 18:53:05 -04:00
|
|
|
<param name="luceneJavadocUrl" expression="${lucene.javadoc.url}"/>
|
2012-09-20 11:37:42 -04:00
|
|
|
</xslt>
|
|
|
|
|
|
|
|
<pegdown todir="${javadoc.dir}">
|
2012-10-15 19:06:34 -04:00
|
|
|
<fileset dir="." includes="SYSTEM_REQUIREMENTS.txt"/>
|
2012-09-20 11:37:42 -04:00
|
|
|
<globmapper from="*.txt" to="*.html"/>
|
|
|
|
</pegdown>
|
|
|
|
|
|
|
|
<copy todir="${javadoc.dir}">
|
|
|
|
<fileset dir="site/html" includes="**/*"/>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
2013-02-06 12:57:53 -05:00
|
|
|
<target name="jar" depends="jar-core,jar-solrj,jar-solr-test-framework,jar-contrib"
|
|
|
|
description="Jar solr core, solrj, solr-test-framework, and all contribs"/>
|
|
|
|
|
2011-07-08 02:41:23 -04:00
|
|
|
<!-- Solr core targets -->
|
|
|
|
<target name="test-solr-core" description="Test solr core">
|
|
|
|
<ant dir="core" target="test" inheritAll="false">
|
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
|
|
|
</ant>
|
|
|
|
</target>
|
2013-02-06 12:57:53 -05:00
|
|
|
|
|
|
|
<target name="jar-core">
|
|
|
|
<ant dir="${common-solr.dir}/core" target="jar-core" inheritAll="false">
|
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
|
|
|
</ant>
|
|
|
|
</target>
|
2011-07-08 02:41:23 -04:00
|
|
|
|
|
|
|
<!-- Solrj targets -->
|
|
|
|
<target name="test-solrj" description="Test java client">
|
2011-07-28 00:02:09 -04:00
|
|
|
<ant dir="solrj" target="test" inheritAll="false">
|
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
|
|
|
</ant>
|
2011-07-08 02:41:23 -04:00
|
|
|
</target>
|
2011-09-16 00:47:04 -04:00
|
|
|
|
2011-07-08 02:41:23 -04:00
|
|
|
<!-- Solr contrib targets -->
|
2011-07-28 00:02:09 -04:00
|
|
|
<target name="test-contrib" description="Run contrib unit tests.">
|
2011-04-01 02:58:12 -04:00
|
|
|
<contrib-crawl target="test" failonerror="true"/>
|
2008-12-07 14:07:11 -05:00
|
|
|
</target>
|
2012-09-04 19:54:13 -04:00
|
|
|
|
|
|
|
<!-- Pitest targets -->
|
|
|
|
<target name="pitest-core" description="PiTest solr core">
|
|
|
|
<ant dir="core" target="pitest" inheritAll="false">
|
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
|
|
|
</ant>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="pitest-solrj" description="PiTest java client">
|
|
|
|
<ant dir="solrj" target="pitest" inheritAll="false">
|
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
|
|
|
</ant>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="pitest-contrib" description="Run contrib PiTests.">
|
|
|
|
<contrib-crawl target="pitest" failonerror="false"/>
|
|
|
|
</target>
|
2011-07-08 02:41:23 -04:00
|
|
|
|
2011-07-13 16:43:58 -04:00
|
|
|
<!-- test-framework targets -->
|
2011-09-16 00:47:04 -04:00
|
|
|
<target name="javadocs-test-framework">
|
2011-07-28 00:02:09 -04:00
|
|
|
<ant dir="test-framework" target="javadocs" inheritAll="false">
|
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
2011-09-16 00:47:04 -04:00
|
|
|
</ant>
|
2011-07-13 16:43:58 -04:00
|
|
|
</target>
|
2012-03-06 12:04:19 -05:00
|
|
|
|
2012-07-07 08:04:22 -04:00
|
|
|
<!-- Validation (license/notice/api checks). -->
|
2012-07-11 19:27:21 -04:00
|
|
|
<target name="validate" depends="check-licenses,rat-sources,check-forbidden-apis" description="Validate stuff." />
|
2012-07-07 08:04:22 -04:00
|
|
|
|
|
|
|
<target name="check-licenses" depends="compile-tools,resolve,load-custom-tasks" description="Validate license stuff.">
|
2012-07-27 15:18:49 -04:00
|
|
|
<license-check-macro dir="${basedir}" licensedir="${common-solr.dir}/licenses">
|
2012-02-13 09:12:59 -05:00
|
|
|
<additional-excludes>
|
|
|
|
<!-- Exclude start.jar only (it'd be weird to have a license file there?) -->
|
|
|
|
<exclude name="example/start.jar" />
|
|
|
|
<exclude name="example/exampledocs/post.jar" />
|
2012-07-24 21:09:22 -04:00
|
|
|
<exclude name="example/solr-webapp/**" />
|
2012-09-19 11:06:56 -04:00
|
|
|
<exclude name="package/**"/>
|
2012-02-13 09:12:59 -05:00
|
|
|
</additional-excludes>
|
|
|
|
<additional-filters>
|
2012-07-27 15:18:49 -04:00
|
|
|
<replaceregex pattern="jetty([^/]+)$" replace="jetty" flags="gi" />
|
|
|
|
<replaceregex pattern="slf4j-([^/]+)$" replace="slf4j" flags="gi" />
|
|
|
|
<replaceregex pattern="(bcmail|bcprov)-([^/]+)$" replace="\1" flags="gi" />
|
2012-02-13 09:12:59 -05:00
|
|
|
</additional-filters>
|
|
|
|
</license-check-macro>
|
|
|
|
</target>
|
2012-07-07 08:04:22 -04:00
|
|
|
|
2013-02-05 04:15:35 -05:00
|
|
|
<target name="check-forbidden-apis" depends="compile-tools,compile-test,install-forbidden-apis,-forbidden-apis-classpath,-check-forbidden-java-apis,-check-forbidden-test-apis"
|
2012-07-11 15:10:08 -04:00
|
|
|
description="Check forbidden API calls in compiled class files."/>
|
|
|
|
|
2013-02-05 04:15:35 -05:00
|
|
|
<!-- TODO: Make the forbidden API checks per module! Also remove failOnMissingClasses="false" below!!! -->
|
|
|
|
<target name="-forbidden-apis-classpath">
|
|
|
|
<path id="forbidden-apis.classpath">
|
|
|
|
<fileset dir="${basedir}" includes="**/lib/*.jar"/>
|
|
|
|
<dirset dir="${basedir}/build" includes="**/classes/*"/>
|
|
|
|
<path refid="solr.lucene.libs"/>
|
|
|
|
<path refid="classpath"/>
|
|
|
|
<path refid="test.classpath"/>
|
|
|
|
</path>
|
|
|
|
</target>
|
|
|
|
|
2012-07-11 15:10:08 -04:00
|
|
|
<target name="-check-forbidden-java-apis">
|
2013-02-05 04:15:35 -05:00
|
|
|
<forbidden-apis internalRuntimeForbidden="true" classpathref="forbidden-apis.classpath" failOnMissingClasses="false">
|
|
|
|
<bundledSignatures name="jdk-unsafe-${javac.target}"/>
|
|
|
|
<bundledSignatures name="jdk-deprecated-${javac.target}"/>
|
|
|
|
<bundledSignatures name="commons-io-unsafe-${commons-io.version}"/>
|
|
|
|
<signaturesFileSet dir="${common.dir}/tools/forbiddenApis">
|
2012-08-12 07:23:11 -04:00
|
|
|
<include name="executors.txt" />
|
2013-01-06 09:55:11 -05:00
|
|
|
<include name="servlet-api.txt" />
|
2013-02-05 04:15:35 -05:00
|
|
|
</signaturesFileSet>
|
2012-07-09 09:35:34 -04:00
|
|
|
<fileset dir="${basedir}/build">
|
2012-11-20 14:48:54 -05:00
|
|
|
<include name="**/*.class" />
|
2013-01-06 09:55:11 -05:00
|
|
|
<!-- violates the servlet-api restrictions, but it is safe to do so in this test: -->
|
|
|
|
<exclude name="solr-solrj/classes/test/org/apache/solr/client/solrj/impl/BasicHttpSolrServerTest$DebugServlet.class"/>
|
2012-07-09 09:35:34 -04:00
|
|
|
</fileset>
|
2012-07-07 08:04:22 -04:00
|
|
|
</forbidden-apis>
|
|
|
|
</target>
|
2012-04-04 01:03:53 -04:00
|
|
|
|
2012-07-11 15:10:08 -04:00
|
|
|
<target name="-check-forbidden-test-apis">
|
2013-02-05 04:15:35 -05:00
|
|
|
<forbidden-apis signaturesFile="${common.dir}/tools/forbiddenApis/tests.txt" classpathref="forbidden-apis.classpath" failOnMissingClasses="false">
|
2012-07-11 15:10:08 -04:00
|
|
|
<fileset dir="${basedir}/build">
|
|
|
|
<include name="**/classes/test/**/*.class"/>
|
|
|
|
<include name="solr-test-framework/**/*.class"/>
|
|
|
|
<!-- not actually a test -->
|
|
|
|
<exclude name="solr-core/classes/test/org/apache/solr/search/DocSetPerf.class"/>
|
|
|
|
<!-- imported code -->
|
|
|
|
<exclude name="solr-core/classes/test/org/apache/solr/internal/**/*.class"/>
|
|
|
|
</fileset>
|
|
|
|
</forbidden-apis>
|
|
|
|
</target>
|
|
|
|
|
2012-04-04 01:03:53 -04:00
|
|
|
<!-- rat sources -->
|
2012-09-15 17:08:18 -04:00
|
|
|
<!-- rat-sources-typedef is *not* a useless dependency. do not remove -->
|
|
|
|
<target name="rat-sources" depends="rat-sources-typedef">
|
|
|
|
<subant target="rat-sources" inheritall="false" >
|
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
|
|
|
<fileset dir="core" includes="build.xml"/>
|
|
|
|
<fileset dir="solrj" includes="build.xml"/>
|
|
|
|
<fileset dir="test-framework" includes="build.xml"/>
|
|
|
|
</subant>
|
2012-09-15 17:13:36 -04:00
|
|
|
<contrib-crawl target="rat-sources" failonerror="true"/>
|
2012-04-04 01:03:53 -04:00
|
|
|
</target>
|
2012-02-13 09:12:59 -05:00
|
|
|
|
2011-07-08 02:41:23 -04:00
|
|
|
<!-- Clean targets -->
|
|
|
|
<target name="clean" description="Cleans compiled files and other temporary artifacts.">
|
|
|
|
<delete dir="build" />
|
|
|
|
<delete dir="dist" />
|
|
|
|
<delete dir="package" />
|
|
|
|
<delete dir="example/solr/lib" />
|
2011-12-01 08:47:20 -05:00
|
|
|
<delete includeemptydirs="true">
|
2012-01-26 09:25:27 -05:00
|
|
|
<fileset dir="example">
|
|
|
|
<include name="**/data/**/*" />
|
|
|
|
<include name="webapps/**/*" />
|
2012-07-24 21:09:22 -04:00
|
|
|
<include name="solr-webapp/**/*" />
|
2012-01-26 09:25:27 -05:00
|
|
|
<exclude name="**/.gitignore" />
|
|
|
|
</fileset>
|
2011-12-01 08:47:20 -05:00
|
|
|
</delete>
|
2011-03-11 11:31:49 -05:00
|
|
|
</target>
|
2011-07-08 02:41:23 -04:00
|
|
|
|
|
|
|
<target name="clean-dest"
|
|
|
|
description="Cleans out build/ but leaves build/docs/, dist/ and package/ alone. This allows us to run nightly and clover together in Hudson">
|
|
|
|
<delete includeemptydirs="true" >
|
|
|
|
<fileset dir="build">
|
|
|
|
<exclude name="docs/"/>
|
|
|
|
</fileset>
|
|
|
|
</delete>
|
2008-08-13 06:08:04 -04:00
|
|
|
</target>
|
2011-07-10 08:20:06 -04:00
|
|
|
|
2011-07-08 02:41:23 -04:00
|
|
|
<!-- ========================================================================= -->
|
|
|
|
<!-- ===================== DISTRIBUTION-RELATED TASKS ======================== -->
|
|
|
|
<!-- ========================================================================= -->
|
|
|
|
|
|
|
|
<target name="copy-to-stage">
|
|
|
|
<copy-to-stage-macro artifacts.dir="${package.dir}"/>
|
2008-08-13 06:08:04 -04:00
|
|
|
</target>
|
2011-07-08 02:41:23 -04:00
|
|
|
|
|
|
|
<target name="dist"
|
|
|
|
description="Creates the Solr distribution files."
|
2012-12-13 13:12:23 -05:00
|
|
|
depends="-dist-common, dist-war" />
|
|
|
|
|
|
|
|
<target name="dist-excl-slf4j"
|
|
|
|
description="Creates the Solr distribution files without slf4j API or bindings."
|
|
|
|
depends="-dist-common, dist-war-excl-slf4j" />
|
|
|
|
|
|
|
|
<target name="-dist-common"
|
|
|
|
depends="dist-solrj, dist-core, dist-test-framework, dist-contrib">
|
|
|
|
<!-- Targets common to dist and dist-excl-slf4j.
|
|
|
|
Only usable as a dependency
|
|
|
|
-->
|
|
|
|
</target>
|
2011-07-08 02:41:23 -04:00
|
|
|
|
|
|
|
<target name="dist-test-framework" depends="init-dist"
|
|
|
|
description="Creates the Solr test-framework JAR.">
|
|
|
|
<ant dir="test-framework" target="dist" inheritall="false">
|
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
|
|
|
</ant>
|
2008-08-13 06:08:04 -04:00
|
|
|
</target>
|
2011-07-08 02:41:23 -04:00
|
|
|
|
|
|
|
<target name="dist-contrib" depends="init-dist"
|
|
|
|
description="Make the contribs ready for distribution">
|
|
|
|
<contrib-crawl target="dist" failonerror="true" />
|
2008-08-13 06:08:04 -04:00
|
|
|
</target>
|
2010-03-18 00:39:17 -04:00
|
|
|
|
2011-07-08 02:41:23 -04:00
|
|
|
<target name="dist-war"
|
|
|
|
description="Creates the Solr WAR Distribution file.">
|
|
|
|
<ant dir="webapp" target="dist" inheritall="false">
|
2012-04-18 00:59:19 -04:00
|
|
|
<property name="exclude.from.war" value="log4j-1.*" />
|
2011-07-08 02:41:23 -04:00
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
|
|
|
</ant>
|
2006-02-17 19:17:44 -05:00
|
|
|
</target>
|
2011-07-08 02:41:23 -04:00
|
|
|
|
2012-01-16 07:54:01 -05:00
|
|
|
<target name="dist-war-excl-slf4j"
|
2012-12-13 13:12:23 -05:00
|
|
|
description="Creates a Solr WAR Distribution file, excluding slf4j API and bindings.">
|
2012-01-16 07:54:01 -05:00
|
|
|
<ant dir="webapp" target="dist" inheritall="false">
|
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
2012-12-13 13:12:23 -05:00
|
|
|
<property name="exclude.from.war" value="*slf4j*,log4j-*" />
|
2012-01-16 07:54:01 -05:00
|
|
|
<property name="solr.war.suffix" value="-excl-slf4j" />
|
|
|
|
</ant>
|
|
|
|
</target>
|
|
|
|
|
2012-04-08 14:22:14 -04:00
|
|
|
<target name="prepare-release-no-sign" depends="clean, package, generate-maven-artifacts"/>
|
|
|
|
<target name="prepare-release" depends="prepare-release-no-sign, sign-artifacts"/>
|
2011-07-08 02:41:23 -04:00
|
|
|
|
2006-02-17 19:17:44 -05:00
|
|
|
<!-- make a distribution -->
|
2013-01-11 07:45:46 -05:00
|
|
|
<target name="package" depends="package-src-tgz,create-package,-dist-changes,-dist-keys"/>
|
|
|
|
|
|
|
|
<!-- copy changes/ to the release folder -->
|
|
|
|
<target name="-dist-changes">
|
|
|
|
<copy todir="${package.dir}/changes">
|
|
|
|
<fileset dir="build/docs/changes"/>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- copy KEYS to the release folder -->
|
|
|
|
<target name="-dist-keys">
|
|
|
|
<get src="http://people.apache.org/keys/group/lucene.asc"
|
|
|
|
dest="${package.dir}/KEYS"/>
|
|
|
|
</target>
|
2011-07-08 02:41:23 -04:00
|
|
|
|
2011-03-19 12:34:19 -04:00
|
|
|
<!-- Makes a tarball from running "svn export" at the root level. -->
|
|
|
|
<!-- Copies NOTICE.txt and LICENSE.txt from solr/ to the root level. -->
|
2011-07-08 02:41:23 -04:00
|
|
|
<target name="package-src-tgz" depends="init-dist"
|
2011-03-19 12:34:19 -04:00
|
|
|
description="Packages the Solr Source Distribution">
|
|
|
|
<property name="source.package.file"
|
|
|
|
value="${package.dir}/${fullnamever}-src.tgz"/>
|
|
|
|
<delete file="${source.package.file}" failonerror="false" />
|
2011-07-08 02:41:23 -04:00
|
|
|
<svn-export-source source.dir=".."/>
|
2011-12-03 16:52:04 -05:00
|
|
|
|
|
|
|
<!-- Exclude javadoc package-list files under licenses incompatible with the ASL -->
|
2012-02-07 14:59:05 -05:00
|
|
|
<delete dir="${svn.export.dir}/lucene/tools/javadoc/java6"/>
|
2012-07-14 03:16:33 -04:00
|
|
|
<!-- Exclude clover license files incompatible with the ASL -->
|
|
|
|
<delete dir="${svn.export.dir}/lucene/tools/clover"/>
|
2011-12-03 16:52:04 -05:00
|
|
|
|
2012-09-26 08:35:25 -04:00
|
|
|
<build-changes changes.src.file="${svn.export.dir}/solr/CHANGES.txt"
|
2012-09-26 07:05:41 -04:00
|
|
|
changes.target.dir="${svn.export.dir}/solr/docs/changes"
|
|
|
|
changes.product="SOLR"/>
|
2012-08-29 02:26:02 -04:00
|
|
|
|
2011-03-19 12:34:19 -04:00
|
|
|
<tar destfile="${source.package.file}" compression="gzip" longfile="gnu">
|
2011-07-08 02:41:23 -04:00
|
|
|
<tarfileset dir="${svn.export.dir}"
|
|
|
|
prefix="${fullnamever}"
|
2012-07-13 17:47:22 -04:00
|
|
|
excludes="solr/example/**/*.sh solr/example/**/bin/ solr/scripts/**"/>
|
2011-07-08 02:41:23 -04:00
|
|
|
<tarfileset dir="${svn.export.dir}"
|
|
|
|
prefix="${fullnamever}"
|
|
|
|
filemode="755"
|
2012-07-13 17:47:22 -04:00
|
|
|
includes="solr/example/**/*.sh solr/example/**/bin/ solr/scripts/**"/>
|
2011-03-19 12:34:19 -04:00
|
|
|
<tarfileset dir="${svn.export.dir}/solr" prefix="${fullnamever}"
|
|
|
|
includes="NOTICE.txt,LICENSE.txt"/>
|
2011-03-03 18:35:25 -05:00
|
|
|
</tar>
|
2011-07-08 02:41:23 -04:00
|
|
|
<make-checksums file="${source.package.file}"/>
|
2006-01-29 10:16:56 -05:00
|
|
|
</target>
|
2011-08-31 10:06:51 -04:00
|
|
|
|
|
|
|
<target name="package-local-src-tgz"
|
|
|
|
description="Packages the Solr and Lucene sources from the local working copy">
|
|
|
|
<mkdir dir="${common-solr.dir}/build"/>
|
|
|
|
<property name="source.package.file"
|
|
|
|
value="${common-solr.dir}/build/${fullnamever}-src.tgz"/>
|
|
|
|
<delete file="${source.package.file}" failonerror="false" />
|
|
|
|
|
2012-08-10 08:38:48 -04:00
|
|
|
<!-- includes/excludes requires a relative path -->
|
|
|
|
<property name="dist.rel" location="${dist}" relative="yes"/>
|
|
|
|
<property name="package.dir.rel" location="${package.dir}" relative="yes"/>
|
|
|
|
|
2011-08-31 10:06:51 -04:00
|
|
|
<tar destfile="${source.package.file}" compression="gzip" longfile="gnu">
|
|
|
|
<tarfileset dir=".." prefix="${fullnamever}" includes="*.txt *.xml dev-tools/" />
|
|
|
|
<tarfileset dir="." prefix="${fullnamever}" includes="LICENSE.txt NOTICE.txt"/>
|
|
|
|
<tarfileset dir="." prefix="${fullnamever}/solr"
|
2012-08-10 08:38:48 -04:00
|
|
|
excludes="build/** ${package.dir.rel}/** ${dist.rel}/**
|
|
|
|
example/webapps/*.war example/lib/**
|
|
|
|
**/*.jar
|
2011-08-31 10:06:51 -04:00
|
|
|
lib/README.committers.txt **/data/ **/logs/*
|
2012-03-06 19:20:31 -05:00
|
|
|
**/*.sh **/bin/ scripts/
|
2011-08-31 10:06:51 -04:00
|
|
|
.idea/ **/*.iml **/pom.xml" />
|
|
|
|
<tarfileset dir="." prefix="${fullnamever}/solr"
|
|
|
|
includes="core/src/test-files/solr/lib/classes/empty-file-main-lib.txt" />
|
|
|
|
<tarfileset dir="." filemode="755" prefix="${fullnamever}/solr"
|
2011-08-31 10:19:06 -04:00
|
|
|
includes="**/*.sh **/bin/ scripts/"
|
2011-08-31 10:06:51 -04:00
|
|
|
excludes="build/**"/>
|
|
|
|
<tarfileset dir="../lucene" prefix="${fullnamever}/lucene">
|
|
|
|
<patternset refid="lucene.local.src.package.patterns"/>
|
|
|
|
</tarfileset>
|
|
|
|
</tar>
|
|
|
|
</target>
|
|
|
|
|
2011-03-04 12:07:12 -05:00
|
|
|
<target name="create-package"
|
2011-02-28 14:51:39 -05:00
|
|
|
description="Packages the Solr Binary Distribution"
|
2012-09-20 20:21:36 -04:00
|
|
|
depends="init-dist, dist, example, documentation">
|
2011-07-08 02:41:23 -04:00
|
|
|
<mkdir dir="${dest}/${fullnamever}"/>
|
2011-03-04 12:07:12 -05:00
|
|
|
<delete includeemptydirs="true">
|
2012-07-11 20:34:22 -04:00
|
|
|
<fileset dir="${example}/solr-webapp" includes="**/*"/>
|
2011-03-04 12:07:12 -05:00
|
|
|
<fileset dir="${dest}/${fullnamever}" includes="**/*"/>
|
|
|
|
</delete>
|
2011-07-08 02:41:23 -04:00
|
|
|
|
2011-03-09 20:19:07 -05:00
|
|
|
<delete file="${package.dir}/${fullnamever}.tgz" failonerror="false" />
|
|
|
|
<delete file="${package.dir}/${fullnamever}.zip" failonerror="false" />
|
2011-07-08 02:41:23 -04:00
|
|
|
|
|
|
|
<mkdir dir="${dest}/contrib-lucene-libs-to-package"/>
|
|
|
|
<delete dir="${dest}/contrib-lucene-libs-to-package" includes="**/*"/>
|
|
|
|
<contrib-crawl target="add-lucene-libs-to-package"/>
|
|
|
|
|
2011-03-09 20:19:07 -05:00
|
|
|
<tar destfile="${package.dir}/${fullnamever}.tgz" compression="gzip" longfile="gnu">
|
2011-02-28 14:51:39 -05:00
|
|
|
<tarfileset dir="."
|
2011-07-08 02:41:23 -04:00
|
|
|
prefix="${fullnamever}"
|
2012-10-15 19:06:34 -04:00
|
|
|
includes="LICENSE.txt NOTICE.txt CHANGES.txt README.txt SYSTEM_REQUIREMENTS.txt
|
|
|
|
example/** client/README.txt client/ruby/solr-ruby/**
|
2012-08-15 14:30:04 -04:00
|
|
|
contrib/**/lib/** contrib/**/README.txt
|
|
|
|
licenses/**"
|
2012-04-02 07:40:39 -04:00
|
|
|
excludes="lib/README.committers.txt **/data/ **/logs/*
|
|
|
|
**/classes/ **/*.sh **/ivy.xml **/build.xml
|
|
|
|
**/bin/ **/*.iml **/*.ipr **/*.iws **/pom.xml
|
2012-08-03 18:11:07 -04:00
|
|
|
**/*pom.xml.template" />
|
2011-07-08 02:41:23 -04:00
|
|
|
<tarfileset dir="${dest}/contrib-lucene-libs-to-package"
|
|
|
|
prefix="${fullnamever}"
|
|
|
|
includes="**" />
|
2011-02-28 14:51:39 -05:00
|
|
|
<tarfileset dir="."
|
2011-07-08 02:41:23 -04:00
|
|
|
filemode="755"
|
|
|
|
prefix="${fullnamever}"
|
|
|
|
includes="example/**/*.sh example/**/bin/" />
|
2011-03-08 13:40:14 -05:00
|
|
|
<tarfileset dir="."
|
2011-07-08 02:41:23 -04:00
|
|
|
prefix="${fullnamever}"
|
2012-08-15 14:30:04 -04:00
|
|
|
includes="dist/*.jar dist/*.war
|
|
|
|
dist/solrj-lib/*
|
|
|
|
dist/test-framework/**"
|
2012-04-04 13:53:32 -04:00
|
|
|
excludes="**/*.tgz **/*.zip **/*.md5 **/*src*.jar **/*docs*.jar **/*.sha1" />
|
2012-09-20 11:37:42 -04:00
|
|
|
<tarfileset dir="${javadoc.dir}"
|
2011-07-08 02:41:23 -04:00
|
|
|
prefix="${fullnamever}/docs" />
|
2011-02-28 14:51:39 -05:00
|
|
|
</tar>
|
2011-07-08 02:41:23 -04:00
|
|
|
<make-checksums file="${package.dir}/${fullnamever}.tgz"/>
|
|
|
|
|
|
|
|
<untar compression="gzip" src="${package.dir}/${fullnamever}.tgz" dest="${dest}"/>
|
|
|
|
|
2011-03-21 15:30:34 -04:00
|
|
|
<!--
|
2011-07-08 02:41:23 -04:00
|
|
|
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.
|
|
|
|
-->
|
2011-02-28 14:51:39 -05:00
|
|
|
<fixcrlf srcdir="${dest}/${fullnamever}"
|
2011-07-08 02:41:23 -04:00
|
|
|
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"
|
|
|
|
/>
|
|
|
|
|
2011-03-09 20:19:07 -05:00
|
|
|
<zip destfile="${package.dir}/${fullnamever}.zip">
|
2011-02-28 14:51:39 -05:00
|
|
|
<zipfileset dir="${dest}/${fullnamever}"
|
2011-07-08 02:41:23 -04:00
|
|
|
prefix="${fullnamever}"
|
|
|
|
excludes="**/*.sh **/bin/ src/scripts/" />
|
2011-02-28 14:51:39 -05:00
|
|
|
<zipfileset dir="${dest}/${fullnamever}"
|
2011-07-08 02:41:23 -04:00
|
|
|
prefix="${fullnamever}"
|
|
|
|
includes="**/*.sh **/bin/ src/scripts/"
|
|
|
|
filemode="755" />
|
2011-02-28 14:51:39 -05:00
|
|
|
</zip>
|
2011-07-08 02:41:23 -04:00
|
|
|
<make-checksums file="${package.dir}/${fullnamever}.zip"/>
|
2010-03-23 02:02:05 -04:00
|
|
|
</target>
|
2012-08-29 02:26:02 -04:00
|
|
|
|
|
|
|
<target name="changes-to-html">
|
2012-09-26 08:35:25 -04:00
|
|
|
<build-changes changes.product="SOLR"/>
|
2012-08-29 02:26:02 -04:00
|
|
|
</target>
|
2011-07-08 02:41:23 -04:00
|
|
|
|
|
|
|
<target name="sign-artifacts">
|
|
|
|
<sign-artifacts-macro artifacts.dir="${package.dir}"/>
|
2011-03-18 14:06:51 -04:00
|
|
|
</target>
|
2011-07-08 02:41:23 -04:00
|
|
|
|
2012-05-07 15:03:39 -04:00
|
|
|
<target name="resolve" depends="resolve-example">
|
2012-03-30 14:04:43 -04:00
|
|
|
<sequential>
|
|
|
|
<ant dir="core" target="resolve" inheritall="false">
|
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
|
|
|
</ant>
|
|
|
|
<ant dir="solrj" target="resolve" inheritall="false">
|
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
|
|
|
</ant>
|
|
|
|
<ant dir="test-framework" target="resolve" inheritall="false">
|
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
|
|
|
</ant>
|
|
|
|
<contrib-crawl target="resolve"/>
|
|
|
|
</sequential>
|
|
|
|
</target>
|
|
|
|
|
2013-02-08 17:00:15 -05:00
|
|
|
<target name="documentation-lint" depends="-ecj-javadoc-lint,-documentation-lint-unsupported" if="documentation-lint.supported"
|
|
|
|
description="Validates the generated documentation (HTML errors, broken links,...)">
|
|
|
|
<!-- we use antcall here, otherwise ANT will run all dependent targets: -->
|
|
|
|
<antcall target="-documentation-lint"/>
|
|
|
|
</target>
|
|
|
|
|
2012-04-23 00:29:21 -04:00
|
|
|
<!-- TODO: does solr have any other docs we should check? -->
|
|
|
|
<!-- TODO: also integrate checkJavaDocs.py, which does more checks -->
|
2013-02-08 17:00:15 -05:00
|
|
|
<target name="-documentation-lint" depends="documentation">
|
2012-10-24 21:57:46 -04:00
|
|
|
<jtidy-macro>
|
|
|
|
<!-- NOTE: must currently exclude deprecated-list due to a javadocs bug (as of 1.7.0_09)
|
|
|
|
javadocs generates invalid XML if you deprecate a method that takes a parameter
|
|
|
|
with a generic type -->
|
|
|
|
<fileset dir="build/docs" includes="**/*.html" excludes="**/deprecated-list.html"/>
|
|
|
|
</jtidy-macro>
|
2012-10-19 09:14:00 -04:00
|
|
|
<echo message="Checking for broken links..."/>
|
|
|
|
<check-broken-links dir="${javadoc.dir}"/>
|
|
|
|
<echo message="Checking for malformed docs..."/>
|
2013-01-29 22:42:59 -05:00
|
|
|
<!-- TODO: add missing docs for all classes and bump this to level=class -->
|
|
|
|
<check-missing-javadocs dir="${javadoc.dir}" level="package"/>
|
2012-10-19 09:14:00 -04:00
|
|
|
</target>
|
|
|
|
|
2013-02-08 17:00:15 -05:00
|
|
|
<target name="-ecj-javadoc-lint" depends="compile,compile-test,jar-test-framework,-ecj-resolve">
|
2012-09-23 22:56:46 -04:00
|
|
|
<subant target="-ecj-javadoc-lint" failonerror="true" inheritall="false">
|
2012-09-24 13:25:14 -04:00
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
2012-09-23 22:56:46 -04:00
|
|
|
<fileset dir="core" includes="build.xml"/>
|
|
|
|
<fileset dir="solrj" includes="build.xml"/>
|
|
|
|
<fileset dir="test-framework" includes="build.xml"/>
|
|
|
|
</subant>
|
|
|
|
<contrib-crawl target="-ecj-javadoc-lint"/>
|
2012-04-23 00:29:21 -04:00
|
|
|
</target>
|
2012-10-19 09:14:00 -04:00
|
|
|
|
2013-01-03 06:33:00 -05:00
|
|
|
<!-- install-maven-tasks and define-lucene-javadoc-url are *not* a useless dependencies. Do not remove! -->
|
|
|
|
<target name="generate-maven-artifacts" depends="install-maven-tasks,define-lucene-javadoc-url">
|
2008-08-13 06:08:04 -04:00
|
|
|
<sequential>
|
2011-07-08 02:41:23 -04:00
|
|
|
<subant target="dist-maven" inheritall="false" >
|
2012-04-03 17:15:23 -04:00
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
2011-07-08 02:41:23 -04:00
|
|
|
<fileset dir="core" includes="build.xml"/>
|
|
|
|
<fileset dir="solrj" includes="build.xml"/>
|
|
|
|
<fileset dir="test-framework" includes="build.xml"/>
|
|
|
|
<fileset dir="webapp" includes="build.xml"/>
|
|
|
|
</subant>
|
|
|
|
<contrib-crawl target="dist-maven"/>
|
2008-08-13 06:08:04 -04:00
|
|
|
</sequential>
|
|
|
|
</target>
|
2012-09-06 09:53:35 -04:00
|
|
|
|
|
|
|
<!-- only used by validate below, it needs the lucene artifacts installed: can we do this better?! -->
|
|
|
|
<target name="-generate-lucene-maven-artifacts">
|
|
|
|
<subant target="generate-maven-artifacts" inheritall="false">
|
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
|
|
|
<fileset dir="${common.dir}" includes="build.xml"/>
|
|
|
|
</subant>
|
|
|
|
</target>
|
2011-07-08 02:41:23 -04:00
|
|
|
|
2013-01-03 04:18:17 -05:00
|
|
|
<target name="-validate-maven-dependencies" depends="compile-tools, install-maven-tasks, load-custom-tasks">
|
2012-09-06 09:53:35 -04:00
|
|
|
<sequential>
|
|
|
|
<subant target="-validate-maven-dependencies" failonerror="true" inheritall="false">
|
|
|
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
|
|
|
<fileset dir="core" includes="build.xml"/>
|
|
|
|
<fileset dir="solrj" includes="build.xml"/>
|
|
|
|
<fileset dir="test-framework" includes="build.xml"/>
|
|
|
|
<fileset dir="webapp" includes="build.xml"/>
|
|
|
|
</subant>
|
|
|
|
<contrib-crawl target="-validate-maven-dependencies"/>
|
|
|
|
</sequential>
|
|
|
|
</target>
|
|
|
|
|
2008-12-07 15:53:22 -05:00
|
|
|
<!-- ========================================================================= -->
|
2011-07-08 02:41:23 -04:00
|
|
|
<!-- ========================= COMMITTERS' HELPERS =========================== -->
|
2008-12-07 15:53:22 -05:00
|
|
|
<!-- ========================================================================= -->
|
2012-09-25 21:00:39 -04:00
|
|
|
|
2012-04-17 09:36:19 -04:00
|
|
|
<property name="analysis-common.res.dir" value="../lucene/analysis/common/src/resources/org/apache/lucene/analysis"/>
|
|
|
|
<property name="analysis-kuromoji.res.dir" value="../lucene/analysis/kuromoji/src/resources/org/apache/lucene/analysis"/>
|
2012-02-08 07:07:52 -05:00
|
|
|
<property name="analysis.conf.dest" value="${example}/solr/conf/lang"/>
|
|
|
|
|
|
|
|
<target name="sync-analyzers"
|
|
|
|
description="Committers' Helper: synchronizes analysis resources (e.g. stoplists) to the example">
|
|
|
|
<!-- arabic -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/ar/stopwords.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_ar.txt"/>
|
|
|
|
<!-- bulgarian -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/bg/stopwords.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_bg.txt"/>
|
|
|
|
<!-- catalan -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/ca/stopwords.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_ca.txt"/>
|
|
|
|
<!-- czech -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/cz/stopwords.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_cz.txt"/>
|
|
|
|
<!-- danish -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/snowball/danish_stop.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_da.txt"/>
|
|
|
|
<!-- german -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/snowball/german_stop.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_de.txt"/>
|
|
|
|
<!-- greek -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/el/stopwords.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_el.txt"/>
|
|
|
|
<!-- spanish -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/snowball/spanish_stop.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_es.txt"/>
|
|
|
|
<!-- basque -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/eu/stopwords.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_eu.txt"/>
|
|
|
|
<!-- persian -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/fa/stopwords.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_fa.txt"/>
|
|
|
|
<!-- finnish -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/snowball/finnish_stop.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_fi.txt"/>
|
|
|
|
<!-- french -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/snowball/french_stop.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_fr.txt"/>
|
2012-03-24 11:59:04 -04:00
|
|
|
<!-- irish -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/ga/stopwords.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_ga.txt"/>
|
2012-02-08 07:07:52 -05:00
|
|
|
<!-- galician -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/gl/stopwords.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_gl.txt"/>
|
|
|
|
<!-- hindi -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/hi/stopwords.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_hi.txt"/>
|
|
|
|
<!-- hungarian -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/snowball/hungarian_stop.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_hu.txt"/>
|
|
|
|
<!-- armenian -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/hy/stopwords.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_hy.txt"/>
|
|
|
|
<!-- indonesian -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/id/stopwords.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_id.txt"/>
|
|
|
|
<!-- italian -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/snowball/italian_stop.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_it.txt"/>
|
|
|
|
<!-- japanese -->
|
2012-03-26 06:31:48 -04:00
|
|
|
<copy verbose="true" file="${analysis-kuromoji.res.dir}/ja/stopwords.txt"
|
2012-02-08 07:07:52 -05:00
|
|
|
tofile="${analysis.conf.dest}/stopwords_ja.txt"/>
|
2012-03-26 06:31:48 -04:00
|
|
|
<copy verbose="true" file="${analysis-kuromoji.res.dir}/ja/stoptags.txt"
|
2012-02-08 07:07:52 -05:00
|
|
|
tofile="${analysis.conf.dest}/stoptags_ja.txt"/>
|
|
|
|
<!-- latvian -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/lv/stopwords.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_lv.txt"/>
|
|
|
|
<!-- dutch -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/snowball/dutch_stop.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_nl.txt"/>
|
|
|
|
<!-- norwegian -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/snowball/norwegian_stop.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_no.txt"/>
|
|
|
|
<!-- portuguese -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/snowball/portuguese_stop.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_pt.txt"/>
|
|
|
|
<!-- romanian -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/ro/stopwords.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_ro.txt"/>
|
|
|
|
<!-- russian -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/snowball/russian_stop.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_ru.txt"/>
|
|
|
|
<!-- swedish -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/snowball/swedish_stop.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_sv.txt"/>
|
|
|
|
<!-- thai -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/th/stopwords.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_th.txt"/>
|
|
|
|
<!-- turkish -->
|
|
|
|
<copy verbose="true" file="${analysis-common.res.dir}/tr/stopwords.txt"
|
|
|
|
tofile="${analysis.conf.dest}/stopwords_tr.txt"/>
|
|
|
|
</target>
|
2012-03-30 11:50:57 -04:00
|
|
|
|
2012-10-08 08:52:48 -04:00
|
|
|
<target name="jar-checksums" depends="resolve">
|
2012-08-03 10:05:26 -04:00
|
|
|
<jar-checksum-macro srcdir="${common-solr.dir}" dstdir="${common-solr.dir}/licenses"/>
|
|
|
|
</target>
|
|
|
|
|
2006-02-06 11:24:21 -05:00
|
|
|
</project>
|