LUCENE-3406: Add ant target 'package-local-src-tgz' to Lucene and Solr to package sources from the local working copy.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1163625 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Steven Rowe 2011-08-31 14:06:51 +00:00
parent 81b8c5822f
commit 584adbc613
5 changed files with 62 additions and 2 deletions

View File

@ -623,6 +623,13 @@ Test Cases
* LUCENE-3327: Fix AIOOBE when TestFSTs is run with * LUCENE-3327: Fix AIOOBE when TestFSTs is run with
-Dtests.verbose=true (James Dyer via Mike McCandless) -Dtests.verbose=true (James Dyer via Mike McCandless)
Build
* LUCENE-3406: Add ant target 'package-local-src-tgz' to Lucene and Solr
to package sources from the local working copy.
(Seung-Yeoul Yang via Steve Rowe)
======================= Lucene 3.3.0 ======================= ======================= Lucene 3.3.0 =======================
Changes in backwards compatibility policy Changes in backwards compatibility policy

View File

@ -381,6 +381,22 @@
<make-checksums file="${source.package.file}"/> <make-checksums file="${source.package.file}"/>
</target> </target>
<!-- ================================================================== -->
<!-- Packages the sources from local working copy with tar-gzip -->
<!-- ================================================================== -->
<target name="package-local-src-tgz" depends="init, init-dist"
description="--> Packages the Lucene source from the local working copy">
<mkdir dir="${common.dir}/build"/>
<property name="source.package.file"
value="${common.dir}/build/lucene-${version}-src.tgz"/>
<delete file="${source.package.file}"/>
<tar tarfile="${source.package.file}" compression="gzip" longfile="gnu">
<tarfileset prefix="lucene-${version}" dir=".">
<patternset refid="lucene.local.src.package.patterns"/>
</tarfileset>
</tar>
</target>
<!-- ================================================================== --> <!-- ================================================================== -->
<!-- same as package-tgz-src. it is just here for compatibility. --> <!-- same as package-tgz-src. it is just here for compatibility. -->
<!-- ================================================================== --> <!-- ================================================================== -->

View File

@ -209,6 +209,11 @@
<propertyref regex=".*\.compiled$$"/> <propertyref regex=".*\.compiled$$"/>
</propertyset> </propertyset>
<patternset id="lucene.local.src.package.patterns"
includes="src/,index.html,*build*.xml,docs/,*.txt,contrib/,lib/,backwards/"
excludes="**/pom.xml,**/*.iml,src/site/build/"
/>
<target name="clean" <target name="clean"
description="Removes contents of build and dist directories"> description="Removes contents of build and dist directories">
<delete dir="${build.dir}"/> <delete dir="${build.dir}"/>

View File

@ -301,7 +301,7 @@ Other Changes
* SOLR-2654: The same Directory instance is now always used across a SolrCore so that * SOLR-2654: The same Directory instance is now always used across a SolrCore so that
it's easier to add other DirectoryFactory's without static caching hacks. it's easier to add other DirectoryFactory's without static caching hacks.
(Mark Miller) (Mark Miller)
Documentation Documentation
---------------------- ----------------------
@ -481,6 +481,10 @@ Build
modules' build.xml files. modules' build.xml files.
(Steve Rowe, Robert Muir) (Steve Rowe, Robert Muir)
* LUCENE-3406: Add ant target 'package-local-src-tgz' to Lucene and Solr
to package sources from the local working copy.
(Seung-Yeoul Yang via Steve Rowe)
Documentation Documentation
---------------------- ----------------------

View File

@ -304,7 +304,35 @@
</tar> </tar>
<make-checksums file="${source.package.file}"/> <make-checksums file="${source.package.file}"/>
</target> </target>
<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" />
<tar destfile="${source.package.file}" compression="gzip" longfile="gnu">
<tarfileset dir="../modules" prefix="${fullnamever}/modules" excludes="**/build/" />
<tarfileset dir=".." prefix="${fullnamever}" includes="*.txt *.xml dev-tools/" />
<tarfileset dir="." prefix="${fullnamever}" includes="LICENSE.txt NOTICE.txt"/>
<tarfileset dir="." prefix="${fullnamever}/solr"
excludes="build ${package.dir}/** ${dist}/**
example/webapps/*.war example/exampledocs/post.jar
lib/README.committers.txt **/data/ **/logs/*
**/*.sh **/bin/ src/scripts/ site-src/build/
.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"
includes="**/*.sh **/bin/ core/src/scripts/"
excludes="build/**"/>
<tarfileset dir="../lucene" prefix="${fullnamever}/lucene">
<patternset refid="lucene.local.src.package.patterns"/>
</tarfileset>
</tar>
</target>
<target name="create-package" <target name="create-package"
description="Packages the Solr Binary Distribution" description="Packages the Solr Binary Distribution"
depends="init-dist, dist, example, javadocs"> depends="init-dist, dist, example, javadocs">