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:31:43 UTC

svn commit: r1163644 - in /lucene/dev/branches/branch_3x: ./ lucene/ lucene/CHANGES.txt lucene/backwards/ lucene/backwards/src/test-framework/ lucene/backwards/src/test/ lucene/build.xml lucene/common-build.xml solr/ solr/CHANGES.txt solr/build.xml

Author: sarowe
Date: Wed Aug 31 14:31:42 2011
New Revision: 1163644

URL: http://svn.apache.org/viewvc?rev=1163644&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/branches/branch_3x/   (props changed)
    lucene/dev/branches/branch_3x/lucene/   (props changed)
    lucene/dev/branches/branch_3x/lucene/CHANGES.txt
    lucene/dev/branches/branch_3x/lucene/backwards/   (props changed)
    lucene/dev/branches/branch_3x/lucene/backwards/src/test/   (props changed)
    lucene/dev/branches/branch_3x/lucene/backwards/src/test-framework/   (props changed)
    lucene/dev/branches/branch_3x/lucene/build.xml
    lucene/dev/branches/branch_3x/lucene/common-build.xml
    lucene/dev/branches/branch_3x/solr/   (props changed)
    lucene/dev/branches/branch_3x/solr/CHANGES.txt
    lucene/dev/branches/branch_3x/solr/build.xml

Modified: lucene/dev/branches/branch_3x/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/CHANGES.txt?rev=1163644&r1=1163643&r2=1163644&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/CHANGES.txt (original)
+++ lucene/dev/branches/branch_3x/lucene/CHANGES.txt Wed Aug 31 14:31:42 2011
@@ -92,6 +92,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/branches/branch_3x/lucene/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/build.xml?rev=1163644&r1=1163643&r2=1163644&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/build.xml (original)
+++ lucene/dev/branches/branch_3x/lucene/build.xml Wed Aug 31 14:31:42 2011
@@ -395,6 +395,22 @@
   </target>
 
   <!-- ================================================================== -->
+  <!-- Packages the sources from local working copy with tar-gzip     -->
+  <!-- ================================================================== -->
+  <target name="package-local-src-tgz" depends="init"
+    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/branches/branch_3x/lucene/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/common-build.xml?rev=1163644&r1=1163643&r2=1163644&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/common-build.xml (original)
+++ lucene/dev/branches/branch_3x/lucene/common-build.xml Wed Aug 31 14:31:42 2011
@@ -202,6 +202,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/branches/branch_3x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/CHANGES.txt?rev=1163644&r1=1163643&r2=1163644&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_3x/solr/CHANGES.txt Wed Aug 31 14:31:42 2011
@@ -200,6 +200,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/branches/branch_3x/solr/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/build.xml?rev=1163644&r1=1163643&r2=1163644&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/build.xml (original)
+++ lucene/dev/branches/branch_3x/solr/build.xml Wed Aug 31 14:31:42 2011
@@ -302,7 +302,34 @@
     </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=".." 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/ 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/ 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">