mirror of https://github.com/apache/lucene.git
LUCENE-4758: 'ant jar', 'ant compile' and 'ant compile-test' should recurse
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1443094 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c6f35afd75
commit
bf4e0ab18c
15
build.xml
15
build.xml
|
@ -102,6 +102,7 @@
|
||||||
</subant>
|
</subant>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<!-- lucene/test-framework and solr/test-framework are excluded from compilation -->
|
||||||
<target name="compile" description="Compile Lucene and Solr">
|
<target name="compile" description="Compile Lucene and Solr">
|
||||||
<subant target="compile" inheritall="false" failonerror="true">
|
<subant target="compile" inheritall="false" failonerror="true">
|
||||||
<fileset dir="lucene" includes="build.xml" />
|
<fileset dir="lucene" includes="build.xml" />
|
||||||
|
@ -109,6 +110,20 @@
|
||||||
</subant>
|
</subant>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="compile-test" description="Compile Lucene and Solr tests and test-frameworks">
|
||||||
|
<subant target="compile-test" inheritAll="false" failonerror="true">
|
||||||
|
<fileset dir="lucene" includes="build.xml" />
|
||||||
|
<fileset dir="solr" includes="build.xml" />
|
||||||
|
</subant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="jar" description="Build Lucene and Solr Jar files">
|
||||||
|
<subant target="jar" inheritall="false" failonerror="true">
|
||||||
|
<fileset dir="lucene" includes="build.xml"/>
|
||||||
|
<fileset dir="solr" includes="build.xml"/>
|
||||||
|
</subant>
|
||||||
|
</target>
|
||||||
|
|
||||||
<property name="version" value="5.0-SNAPSHOT"/>
|
<property name="version" value="5.0-SNAPSHOT"/>
|
||||||
<property name="maven-build-dir" value="maven-build"/>
|
<property name="maven-build-dir" value="maven-build"/>
|
||||||
<property name="maven-version" value="2.2.1"/>
|
<property name="maven-version" value="2.2.1"/>
|
||||||
|
|
|
@ -151,6 +151,9 @@ Build
|
||||||
* LUCENE-4570: Use the Policeman Forbidden API checker, released separately
|
* LUCENE-4570: Use the Policeman Forbidden API checker, released separately
|
||||||
from Lucene and downloaded via Ivy. (Uwe Schindler, Robert Muir)
|
from Lucene and downloaded via Ivy. (Uwe Schindler, Robert Muir)
|
||||||
|
|
||||||
|
* LUCENE-4758: 'ant jar', 'ant compile', and 'ant compile-test' should
|
||||||
|
recurse. (Steve Rowe)
|
||||||
|
|
||||||
======================= Lucene 4.1.0 =======================
|
======================= Lucene 4.1.0 =======================
|
||||||
|
|
||||||
Changes in backwards compatibility policy
|
Changes in backwards compatibility policy
|
||||||
|
|
|
@ -104,6 +104,10 @@
|
||||||
<target name="test">
|
<target name="test">
|
||||||
<forall-analyzers target="test"/>
|
<forall-analyzers target="test"/>
|
||||||
</target>
|
</target>
|
||||||
|
<target name="jar">
|
||||||
|
<forall-analyzers target="jar-core"/>
|
||||||
|
</target>
|
||||||
|
<target name="jar-core" depends="jar"/>
|
||||||
|
|
||||||
<target name="build-artifacts-and-tests" depends="default,compile-test" />
|
<target name="build-artifacts-and-tests" depends="default,compile-test" />
|
||||||
|
|
||||||
|
|
|
@ -145,6 +145,12 @@
|
||||||
|
|
||||||
<target name="compile-core" depends="compile-lucene-core"/>
|
<target name="compile-core" depends="compile-lucene-core"/>
|
||||||
|
|
||||||
|
<!-- lucene/test-framework is excluded from compilation -->
|
||||||
|
<target name="compile" depends="init,compile-lucene-core,compile-codecs"
|
||||||
|
description="Compiles core, codecs, and all modules">
|
||||||
|
<modules-crawl target="compile-core"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
<!-- Validation (license/notice/api checks). -->
|
<!-- Validation (license/notice/api checks). -->
|
||||||
<target name="validate" depends="check-licenses,rat-sources,check-forbidden-apis" description="Validate stuff." />
|
<target name="validate" depends="check-licenses,rat-sources,check-forbidden-apis" description="Validate stuff." />
|
||||||
|
|
||||||
|
@ -526,7 +532,7 @@
|
||||||
<modules-crawl target="build-artifacts-and-tests"/>
|
<modules-crawl target="build-artifacts-and-tests"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="compile-test" description="Builds core, test-framework, and modules tests">
|
<target name="compile-test" description="Builds core, codecs, test-framework, and modules tests">
|
||||||
<sequential>
|
<sequential>
|
||||||
<ant dir="core" target="compile-test" inheritall="false">
|
<ant dir="core" target="compile-test" inheritall="false">
|
||||||
<propertyset refid="uptodate.and.compiled.properties"/>
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
||||||
|
@ -575,6 +581,11 @@
|
||||||
<property name="lucene-core.uptodate" value="true"/>
|
<property name="lucene-core.uptodate" value="true"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="jar" depends="jar-core,jar-test-framework"
|
||||||
|
description="Jars core, codecs, test-framework, and all modules">
|
||||||
|
<modules-crawl target="jar-core"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="get-jenkins-line-docs" unless="enwiki.exists">
|
<target name="get-jenkins-line-docs" unless="enwiki.exists">
|
||||||
<sequential>
|
<sequential>
|
||||||
<!-- TODO: can get .lzma instead (it's ~17% smaller) but there's no builtin ant support...? -->
|
<!-- TODO: can get .lzma instead (it's ~17% smaller) but there's no builtin ant support...? -->
|
||||||
|
|
|
@ -127,8 +127,10 @@
|
||||||
<!-- ========================== BUILD/TEST TASKS ============================= -->
|
<!-- ========================== BUILD/TEST TASKS ============================= -->
|
||||||
<!-- ========================================================================= -->
|
<!-- ========================================================================= -->
|
||||||
|
|
||||||
|
<!-- solr/test-framework is excluded from compilation -->
|
||||||
<target name="compile" description="Compile the source code."
|
<target name="compile" description="Compile the source code."
|
||||||
depends="compile-core, compile-contrib"/>
|
depends="compile-core, compile-contrib"/>
|
||||||
|
|
||||||
<target name="test" description="Validate, then run core, solrj, and contrib unit tests."
|
<target name="test" description="Validate, then run core, solrj, and contrib unit tests."
|
||||||
depends="test-core, test-contrib"/>
|
depends="test-core, test-contrib"/>
|
||||||
<!-- "-clover.load" is *not* a useless dependency. do not remove -->
|
<!-- "-clover.load" is *not* a useless dependency. do not remove -->
|
||||||
|
@ -136,7 +138,7 @@
|
||||||
depends="-clover.load, test-solr-core, test-solrj"/>
|
depends="-clover.load, test-solr-core, test-solrj"/>
|
||||||
<target name="pitest" description="Validate, then run core, solrj, and contrib unit tests."
|
<target name="pitest" description="Validate, then run core, solrj, and contrib unit tests."
|
||||||
depends="pitest-core, pitest-contrib"/>
|
depends="pitest-core, pitest-contrib"/>
|
||||||
<target name="compile-test" description="Compile unit tests."
|
<target name="compile-test" description="Compile core, solrj, and contrib unit tests, and solr-test-framework."
|
||||||
depends="compile-solr-test-framework, compile-test-solr-core, compile-test-solrj, compile-test-contrib"/>
|
depends="compile-solr-test-framework, compile-test-solr-core, compile-test-solrj, compile-test-contrib"/>
|
||||||
<target name="javadocs" description="Calls javadocs-all, javadocs-solrj, and javadocs-test-framework"
|
<target name="javadocs" description="Calls javadocs-all, javadocs-solrj, and javadocs-test-framework"
|
||||||
depends="define-lucene-javadoc-url,javadocs-solr-core,javadocs-solrj,javadocs-test-framework,javadocs-contrib"/>
|
depends="define-lucene-javadoc-url,javadocs-solr-core,javadocs-solrj,javadocs-test-framework,javadocs-contrib"/>
|
||||||
|
@ -173,6 +175,9 @@
|
||||||
</copy>
|
</copy>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<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"/>
|
||||||
|
|
||||||
<!-- Solr core targets -->
|
<!-- Solr core targets -->
|
||||||
<target name="test-solr-core" description="Test solr core">
|
<target name="test-solr-core" description="Test solr core">
|
||||||
<ant dir="core" target="test" inheritAll="false">
|
<ant dir="core" target="test" inheritAll="false">
|
||||||
|
@ -180,6 +185,12 @@
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="jar-core">
|
||||||
|
<ant dir="${common-solr.dir}/core" target="jar-core" inheritAll="false">
|
||||||
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
||||||
|
</ant>
|
||||||
|
</target>
|
||||||
|
|
||||||
<!-- Solrj targets -->
|
<!-- Solrj targets -->
|
||||||
<target name="test-solrj" description="Test java client">
|
<target name="test-solrj" description="Test java client">
|
||||||
<ant dir="solrj" target="test" inheritAll="false">
|
<ant dir="solrj" target="test" inheritAll="false">
|
||||||
|
|
|
@ -367,6 +367,11 @@
|
||||||
<propertyset refid="uptodate.and.compiled.properties"/>
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
||||||
</ant>
|
</ant>
|
||||||
</target>
|
</target>
|
||||||
|
<target name="jar-solrj" description="Jar Solr-J">
|
||||||
|
<ant dir="${common-solr.dir}/solrj" target="jar-core" inheritAll="false">
|
||||||
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
||||||
|
</ant>
|
||||||
|
</target>
|
||||||
|
|
||||||
<!-- TODO: really a copy should work: but sync is currently safer
|
<!-- TODO: really a copy should work: but sync is currently safer
|
||||||
since some buggy tests don't create their own tempdir but
|
since some buggy tests don't create their own tempdir but
|
||||||
|
@ -386,6 +391,12 @@
|
||||||
<property name="solr.test.framework.compiled" value="true"/>
|
<property name="solr.test.framework.compiled" value="true"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="jar-solr-test-framework" depends="compile-solr-test-framework">
|
||||||
|
<ant dir="${common-solr.dir}/test-framework" target="jar-core" inheritAll="false">
|
||||||
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
||||||
|
</ant>
|
||||||
|
</target>
|
||||||
|
|
||||||
<!-- resolve dependencies in the example (relied upon by compile/tests) -->
|
<!-- resolve dependencies in the example (relied upon by compile/tests) -->
|
||||||
<target name="resolve-example" unless="example.libs.uptodate">
|
<target name="resolve-example" unless="example.libs.uptodate">
|
||||||
<ant dir="${common-solr.dir}/example" target="resolve" inheritAll="false">
|
<ant dir="${common-solr.dir}/example" target="resolve" inheritAll="false">
|
||||||
|
@ -421,6 +432,10 @@
|
||||||
<contrib-crawl target="javadocs"/>
|
<contrib-crawl target="javadocs"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="jar-contrib" description="Jar contrib modules">
|
||||||
|
<contrib-crawl target="jar-core"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="contribs-add-to-war">
|
<target name="contribs-add-to-war">
|
||||||
<mkdir dir="${dest}/web"/>
|
<mkdir dir="${dest}/web"/>
|
||||||
<delete dir="${dest}/web" includes="**/*" failonerror="false"/>
|
<delete dir="${dest}/web" includes="**/*" failonerror="false"/>
|
||||||
|
|
Loading…
Reference in New Issue