LUCENE-5193: add jar-src to build.xml

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1518972 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shai Erera 2013-08-30 14:06:22 +00:00
parent da8ab682c6
commit 99fdfb3d63
6 changed files with 34 additions and 2 deletions

View File

@ -125,6 +125,13 @@
</subant>
</target>
<target name="jar-src" description="Build Lucene and Solr Source Jar files">
<subant target="jar-src" 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="maven-build-dir" value="maven-build"/>
<property name="maven-version" value="2.2.1"/>

View File

@ -284,6 +284,9 @@ Build
* SOLR-5159: Manifest includes non-parsed maven variables.
(Artem Karpenko via Steve Rowe)
* LUCENE-5193: Add jar-src as top-level target to generate all Lucene and Solr
*-src.jar. (Steve Rowe, Shai Erera)
======================= Lucene 4.4.0 =======================
Changes in backwards compatibility policy

View File

@ -107,6 +107,9 @@
<target name="jar">
<forall-analyzers target="jar-core"/>
</target>
<target name="jar-src">
<forall-analyzers target="jar-src"/>
</target>
<target name="jar-core" depends="jar"/>
<target name="build-artifacts-and-tests" depends="default,compile-test" />

View File

@ -597,6 +597,12 @@
<modules-crawl target="jar-core"/>
</target>
<target name="jar-src" description="create source jars for all modules">
<ant dir="${common.dir}/core" target="jar-src" inheritAll="false" />
<ant dir="${common.dir}/test-framework" target="jar-src" inheritAll="false" />
<modules-crawl target="jar-src"/>
</target>
<target name="get-jenkins-line-docs" unless="enwiki.exists">
<sequential>
<!-- TODO: can get .lzma instead (it's ~17% smaller) but there's no builtin ant support...? -->

View File

@ -176,6 +176,14 @@
<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"/>
<target name="jar-src"
description="Create source jars for solr core, solrj, solr-test-framework, and all contribs">
<ant dir="core" target="jar-src" inheritAll="false"/>
<ant dir="solrj" target="jar-src" inheritAll="false"/>
<ant dir="test-framework" target="jar-src" inheritAll="false"/>
<contrib-crawl target="jar-src"/>
</target>
<!-- Solr core targets -->
<target name="test-solr-core" description="Test solr core">
<ant dir="core" target="test" inheritAll="false">

View File

@ -297,8 +297,13 @@
]]></script>
</target>
<target name="jar-src" depends="init">
<solr-jarify basedir="${src.dir}" destfile="${build.dir}/${final.name}-src.jar"/>
<target name="jar-src">
<sequential>
<mkdir dir="${build.dir}"/>
<solr-jarify basedir="${src.dir}" destfile="${build.dir}/${final.name}-src.jar">
<fileset dir="${resources.dir}" erroronmissingdir="no"/>
</solr-jarify>
</sequential>
</target>
<target name="m2-deploy-solr-parent-pom" depends="filter-pom-templates"