You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2011/08/31 16:06:51 UTC
svn commit: r1163625 - in /lucene/dev/trunk: lucene/CHANGES.txt
lucene/build.xml lucene/common-build.xml solr/CHANGES.txt solr/build.xml
Author: sarowe
Date: Wed Aug 31 14:06:51 2011
New Revision: 1163625
URL: http://svn.apache.org/viewvc?rev=1163625&view=rev
Log:
LUCENE-3406: Add ant target 'package-local-src-tgz' to Lucene and Solr to package sources from the local working copy.
Modified:
lucene/dev/trunk/lucene/CHANGES.txt
lucene/dev/trunk/lucene/build.xml
lucene/dev/trunk/lucene/common-build.xml
lucene/dev/trunk/solr/CHANGES.txt
lucene/dev/trunk/solr/build.xml
Modified: lucene/dev/trunk/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/CHANGES.txt?rev=1163625&r1=1163624&r2=1163625&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/CHANGES.txt (original)
+++ lucene/dev/trunk/lucene/CHANGES.txt Wed Aug 31 14:06:51 2011
@@ -623,6 +623,13 @@ Test Cases
* LUCENE-3327: Fix AIOOBE when TestFSTs is run with
-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 =======================
Changes in backwards compatibility policy
Modified: lucene/dev/trunk/lucene/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/build.xml?rev=1163625&r1=1163624&r2=1163625&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/build.xml (original)
+++ lucene/dev/trunk/lucene/build.xml Wed Aug 31 14:06:51 2011
@@ -382,6 +382,22 @@
</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. -->
<!-- ================================================================== -->
<target name="dist-src" depends="package-tgz-src"/>
Modified: lucene/dev/trunk/lucene/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/common-build.xml?rev=1163625&r1=1163624&r2=1163625&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/common-build.xml (original)
+++ lucene/dev/trunk/lucene/common-build.xml Wed Aug 31 14:06:51 2011
@@ -209,6 +209,11 @@
<propertyref regex=".*\.compiled$$"/>
</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"
description="Removes contents of build and dist directories">
<delete dir="${build.dir}"/>
Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1163625&r1=1163624&r2=1163625&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Wed Aug 31 14:06:51 2011
@@ -301,7 +301,7 @@ Other Changes
* 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.
(Mark Miller)
-
+
Documentation
----------------------
@@ -481,6 +481,10 @@ Build
modules' build.xml files.
(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
----------------------
Modified: lucene/dev/trunk/solr/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/build.xml?rev=1163625&r1=1163624&r2=1163625&view=diff
==============================================================================
--- lucene/dev/trunk/solr/build.xml (original)
+++ lucene/dev/trunk/solr/build.xml Wed Aug 31 14:06:51 2011
@@ -304,7 +304,35 @@
</tar>
<make-checksums file="${source.package.file}"/>
</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"
description="Packages the Solr Binary Distribution"
depends="init-dist, dist, example, javadocs">