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 2013/10/13 18:36:05 UTC

svn commit: r1531711 - in /lucene/dev/trunk: lucene/CHANGES.txt lucene/common-build.xml solr/common-build.xml

Author: sarowe
Date: Sun Oct 13 16:36:05 2013
New Revision: 1531711

URL: http://svn.apache.org/r1531711
Log:
LUCENE-5273: Only unpack Lucene/Solr jars from binary distributions - other stuff not needed

Modified:
    lucene/dev/trunk/lucene/CHANGES.txt
    lucene/dev/trunk/lucene/common-build.xml
    lucene/dev/trunk/solr/common-build.xml

Modified: lucene/dev/trunk/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/CHANGES.txt?rev=1531711&r1=1531710&r2=1531711&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/CHANGES.txt (original)
+++ lucene/dev/trunk/lucene/CHANGES.txt Sun Oct 13 16:36:05 2013
@@ -188,7 +188,7 @@ Build
   
 * LUCENE-5273: Binary artifacts in Lucene and Solr convenience binary
   distributions accompanying a release, including on Maven Central,
-  should be identical across all distributions. (Steve Rowe)
+  should be identical across all distributions. (Steve Rowe, Uwe Schindler)
 
 Tests
 

Modified: lucene/dev/trunk/lucene/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/common-build.xml?rev=1531711&r1=1531710&r2=1531711&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/common-build.xml (original)
+++ lucene/dev/trunk/lucene/common-build.xml Sun Oct 13 16:36:05 2013
@@ -493,6 +493,10 @@
   <property name="lucene.tgz.file" location="${common.dir}/dist/lucene-${version}.tgz"/>
   <available file="${lucene.tgz.file}" property="lucene.tgz.exists"/>
   <property name="lucene.tgz.unpack.dir" location="${common.build.dir}/lucene.tgz.unpacked"/>
+  <patternset id="patternset.lucene.solr.jars">
+    <include name="**/lucene-*.jar"/>
+    <include name="**/solr-*.jar"/>
+  </patternset>
   <available type="dir" file="${lucene.tgz.unpack.dir}" property="lucene.tgz.unpack.dir.exists"/>
   <target name="-ensure-lucene-tgz-exists" unless="lucene.tgz.exists">
     <ant dir="${common.dir}" target="package-tgz" inheritall="false"/>
@@ -500,7 +504,9 @@
   <target name="-unpack-lucene-tgz" unless="lucene.tgz.unpack.dir.exists">
     <antcall target="-ensure-lucene-tgz-exists" inheritall="false"/>
     <mkdir dir="${lucene.tgz.unpack.dir}"/>
-    <untar compression="gzip" src="${lucene.tgz.file}" dest="${lucene.tgz.unpack.dir}"/>
+    <untar compression="gzip" src="${lucene.tgz.file}" dest="${lucene.tgz.unpack.dir}">
+      <patternset refid="patternset.lucene.solr.jars"/>
+    </untar>
   </target>
   <property name="dist.jar.dir.prefix" value="${lucene.tgz.unpack.dir}/lucene"/>
   <pathconvert property="dist.jar.dir.suffix">

Modified: lucene/dev/trunk/solr/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/common-build.xml?rev=1531711&r1=1531710&r2=1531711&view=diff
==============================================================================
--- lucene/dev/trunk/solr/common-build.xml (original)
+++ lucene/dev/trunk/solr/common-build.xml Sun Oct 13 16:36:05 2013
@@ -59,7 +59,9 @@
   <target name="-unpack-solr-tgz" unless="${solr.tgz.unpack.dir.exists}">
     <antcall target="-ensure-solr-tgz-exists"/>
     <mkdir dir="${solr.tgz.unpack.dir}"/>
-    <untar compression="gzip" src="${solr.tgz.file}" dest="${solr.tgz.unpack.dir}"/>
+    <untar compression="gzip" src="${solr.tgz.file}" dest="${solr.tgz.unpack.dir}">
+      <patternset refid="patternset.lucene.solr.jars"/>
+    </untar>
   </target>
 
   <!-- backwards compatibility with existing targets/tasks; TODO: remove this! -->