hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ni...@apache.org
Subject svn commit: r612933 - in /lucene/hadoop/trunk: CHANGES.txt build.xml
Date Thu, 17 Jan 2008 19:14:01 GMT
Author: nigel
Date: Thu Jan 17 11:13:59 2008
New Revision: 612933

URL: http://svn.apache.org/viewvc?rev=612933&view=rev
Log:
HADOOP-2298. Add Ant target for a binary-only distribution. Contributed by Hrishikesh.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/build.xml

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?rev=612933&r1=612932&r2=612933&view=diff
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Thu Jan 17 11:13:59 2008
@@ -260,6 +260,9 @@
     HADOOP-1742. Improve JavaDoc documentation for ClientProtocol, DFSClient,
     and FSNamesystem. (Konstantin Shvachko)
 
+    HADOOP-2298. Add Ant target for a binary-only distribution.
+    (Hrishikesh via nigel)
+
   OPTIMIZATIONS
 
     HADOOP-1898.  Release the lock protecting the last time of the last stack

Modified: lucene/hadoop/trunk/build.xml
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/build.xml?rev=612933&r1=612932&r2=612933&view=diff
==============================================================================
--- lucene/hadoop/trunk/build.xml (original)
+++ lucene/hadoop/trunk/build.xml Thu Jan 17 11:13:59 2008
@@ -131,6 +131,20 @@
   </path>
 
   <!-- ====================================================== -->
+  <!-- Macro definitions                                      -->
+  <!-- ====================================================== -->
+  <macrodef name="macro_tar" description="Worker Macro for tar">
+    <attribute name="param.destfile"/>
+    <element name="param.listofitems"/>
+    <sequential>
+      <tar compression="gzip" longfile="gnu"
+      destfile="@{param.destfile}">
+      <param.listofitems/>
+      </tar>
+    </sequential>
+  </macrodef>
+
+  <!-- ====================================================== -->
   <!-- Stuff needed by all targets                            -->
   <!-- ====================================================== -->
   <target name="init">
@@ -752,23 +766,40 @@
   <!-- Make release tarball                                               -->
   <!-- ================================================================== -->
   <target name="tar" depends="package" description="Make release tarball">
-    <tar compression="gzip" longfile="gnu"
-      destfile="${build.dir}/${final.name}.tar.gz">
-      <tarfileset dir="${build.dir}" mode="664">
-        <exclude name="${final.name}/bin/*" />
-        <exclude name="${final.name}/src/contrib/ec2/bin/*" />
-        <exclude name="${final.name}/src/contrib/ec2/bin/image/*" />
-        <include name="${final.name}/**" />
-      </tarfileset>
-      <tarfileset dir="${build.dir}" mode="755">
-        <include name="${final.name}/bin/*" />
-        <include name="${final.name}/contrib/*/bin/*" />
-        <include name="${final.name}/src/contrib/ec2/bin/*" />
-        <include name="${final.name}/src/contrib/ec2/bin/image/*" />
-      </tarfileset>
-    </tar>
+    <macro_tar param.destfile="${build.dir}/${final.name}.tar.gz">
+      <param.listofitems>
+        <tarfileset dir="${build.dir}" mode="664">
+          <exclude name="${final.name}/bin/*" />
+          <exclude name="${final.name}/src/contrib/ec2/bin/*" />
+          <exclude name="${final.name}/src/contrib/ec2/bin/image/*" />
+          <include name="${final.name}/**" />
+        </tarfileset>
+        <tarfileset dir="${build.dir}" mode="755">
+          <include name="${final.name}/bin/*" />
+          <include name="${final.name}/contrib/*/bin/*" />
+          <include name="${final.name}/src/contrib/ec2/bin/*" />
+          <include name="${final.name}/src/contrib/ec2/bin/image/*" />
+        </tarfileset>
+      </param.listofitems>
+    </macro_tar>
+  </target>
+
+  <target name="binary" depends="package" description="Make tarball without source and
documentation">
+    <macro_tar param.destfile="${build.dir}/${final.name}-bin.tar.gz">
+      <param.listofitems>
+        <tarfileset dir="${build.dir}" mode="664">
+          <exclude name="${final.name}/bin/*" />
+          <exclude name="${final.name}/src/**" />
+          <exclude name="${final.name}/docs/**" />
+          <include name="${final.name}/**" />
+        </tarfileset>
+        <tarfileset dir="${build.dir}" mode="755">
+          <include name="${final.name}/bin/*" />
+        </tarfileset>
+      </param.listofitems>
+    </macro_tar>
   </target>
-	
+
   <!-- ================================================================== -->
   <!-- Clean.  Delete the build files, and their directories              -->
   <!-- ================================================================== -->



Mime
View raw message