You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pig.apache.org by da...@apache.org on 2009/10/15 00:08:37 UTC

svn commit: r825308 - in /hadoop/pig/trunk: CHANGES.txt build.xml

Author: daijy
Date: Wed Oct 14 22:08:37 2009
New Revision: 825308

URL: http://svn.apache.org/viewvc?rev=825308&view=rev
Log:
PIG-1020: Include an ant target to build pig.jar without hadoop libraries

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

Modified: hadoop/pig/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/pig/trunk/CHANGES.txt?rev=825308&r1=825307&r2=825308&view=diff
==============================================================================
--- hadoop/pig/trunk/CHANGES.txt (original)
+++ hadoop/pig/trunk/CHANGES.txt Wed Oct 14 22:08:37 2009
@@ -44,6 +44,8 @@
 
 PIG-960: Using Hadoop's optimized LineRecordReader for reading Tuples in PigStorage ( ankit.modi via daijy)
 
+PIG-1020: Include an ant target to build pig.jar without hadoop libraries (daijy)
+
 OPTIMIZATIONS
 
 BUG FIXES

Modified: hadoop/pig/trunk/build.xml
URL: http://svn.apache.org/viewvc/hadoop/pig/trunk/build.xml?rev=825308&r1=825307&r2=825308&view=diff
==============================================================================
--- hadoop/pig/trunk/build.xml (original)
+++ hadoop/pig/trunk/build.xml Wed Oct 14 22:08:37 2009
@@ -377,6 +377,15 @@
         <antcall target="jarWithOutSvn" inheritRefs="true" inheritall="true"/>
     </target>
     
+    <target name="jar-withouthadoop" depends="compile" description="Create pig jar">
+        <antcall target="jarWithSvn" inheritRefs="true" inheritall="true">
+            <param name="nohadooplib" value="yes" />
+        </antcall>
+        <antcall target="jarWithOutSvn" inheritRefs="true" inheritall="true">
+            <param name="nohadooplib" value="yes" />
+        </antcall>
+    </target>
+
     <target name="jarWithSvn" if="svn.revision">
         <antcall target="buildJar" inheritRefs="true" inheritall="true">
             <param name="svnString" value="${svn.revision}" />
@@ -415,7 +424,9 @@
                     <attribute name="Svn-Revision" value="${svnString}" />
                 </section>
             </manifest>
-            <zipfileset src="${lib.dir}/${hadoop.jarfile}" />
+            <zipfileset src="${lib.dir}/${hadoop.jarfile}">
+                <exclude name="**" if="nohadooplib"/>
+            </zipfileset>
             <zipfileset src="${ivy.lib.dir}/junit-${junit.version}.jar" />
             <zipfileset src="${ivy.lib.dir}/jsch-${jsch.version}.jar" />
             <zipfileset src="${ivy.lib.dir}/jline-${jline.version}.jar" />
@@ -426,11 +437,11 @@
     <!-- ================================================================== -->
     <!-- Run unit tests                                                     -->
     <!-- ================================================================== -->
-    <target name="test-core" depends="compile-test,jar" description="Run full set of unit tests">
+    <target name="test-core" depends="compile-test,jar-withouthadoop" description="Run full set of unit tests">
         <macro-test-runner test.file="${test.all.file}" />
     </target>
 
-    <target name="test-commit" depends="compile-test,jar" description="Run approximate 10-minute set of unit tests prior to commiting">
+    <target name="test-commit" depends="compile-test,jar-withouthadoop" description="Run approximate 10-minute set of unit tests prior to commiting">
         <macro-test-runner test.file="${test.commit.file}" />
     </target>