pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r1405888 - in /pig/branches/branch-0.11: CHANGES.txt build.xml contrib/piggybank/java/build.xml tutorial/build.xml
Date Mon, 05 Nov 2012 17:25:47 GMT
Author: gates
Date: Mon Nov  5 17:25:47 2012
New Revision: 1405888

URL: http://svn.apache.org/viewvc?rev=1405888&view=rev
Log:
PIG-3019 Need a target in build.xml for source releases

Modified:
    pig/branches/branch-0.11/CHANGES.txt
    pig/branches/branch-0.11/build.xml
    pig/branches/branch-0.11/contrib/piggybank/java/build.xml
    pig/branches/branch-0.11/tutorial/build.xml

Modified: pig/branches/branch-0.11/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.11/CHANGES.txt?rev=1405888&r1=1405887&r2=1405888&view=diff
==============================================================================
--- pig/branches/branch-0.11/CHANGES.txt (original)
+++ pig/branches/branch-0.11/CHANGES.txt Mon Nov  5 17:25:47 2012
@@ -28,6 +28,8 @@ PIG-1891 Enable StoreFunc to make intell
 
 IMPROVEMENTS
 
+PIG-3019: Need a target in build.xml for source releases (gates)
+
 PIG-2832: org.apache.pig.pigunit.pig.PigServer does not initialize udf.import.list of PigContext
(prkommireddi via rohini)
 
 PIG-2898: Parallel execution of e2e tests (iveselovsky via rohini)

Modified: pig/branches/branch-0.11/build.xml
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.11/build.xml?rev=1405888&r1=1405887&r2=1405888&view=diff
==============================================================================
--- pig/branches/branch-0.11/build.xml (original)
+++ pig/branches/branch-0.11/build.xml Mon Nov  5 17:25:47 2012
@@ -359,6 +359,28 @@
     <target name="very-clean" unless="offline" depends="ivy-clean-cache,clean"
             description="Clean build artifacts and flush Ivy cache" />
 
+    <target name="clean-piggybank" description="Cleanup piggybank">
+        <ant target="clean" dir="contrib/piggybank/java" inheritAll="false"/>
+    </target>
+
+    <target name="clean-zebra" description="Cleanup Zebra">
+        <ant target="clean" dir="contrib/zebra" inheritAll="false"/>
+    </target>
+
+    <target name="clean-penny" description="Cleanup Penny">
+        <ant target="clean" dir="contrib/penny/java" inheritAll="false"/>
+    </target>
+
+    <target name="clean-tutorial" description="Cleanup Tutorial">
+        <ant target="clean" dir="tutorial" inheritAll="false"/>
+    </target>
+
+    <target name="clean-test-e2e" description="Cleanup e2e tests">
+        <ant target="clean" dir="test/e2e/harness" inheritAll="false"/>
+        <ant target="clean" dir="test/e2e/pig" inheritAll="false"/>
+        <ant target="clean" dir="test/e2e/pig/udfs/java" inheritAll="false"/>
+    </target>
+
     <!--target name="eclipse-files" depends="compile, ivy-buildJar"
 			description="Generate files for Eclipse">
         <pathconvert property="eclipse.project">
@@ -1214,6 +1236,37 @@
     </target>
 
     <!-- ================================================================== -->
+    <!-- Make release tarball                                               -->
+    <!-- ================================================================== -->
+    <target name="src-release" depends="clean, clean-piggybank, clean-zebra, clean-penny,
clean-test-e2e, clean-tutorial" description="Source distribution">
+        <mkdir dir="${build.dir}"/>
+        <tar compression="gzip" longfile="gnu"
+             destfile="${build.dir}/${final.name}-src-${pig.version}.tar.gz">
+            <tarfileset dir="${basedir}" mode="644" prefix="${final.name}-src-${pig.version}">
+                <include name="conf/**"/>
+                <include name="contrib/**"/>
+                <include name="ivy/**"/>
+                <exclude name="ivy/*.jar"/>
+                <include name="lib/**"/>
+                <include name="lib-src/**"/>
+                <include name="license/**"/>
+                <include name="shims/**"/>
+                <include name="src/**"/>
+                <include name="test/**"/>
+                <exclude name="test/**/*.jar"/>
+                <include name="tutorial/**"/>
+                <include name="*.txt"/>
+                <include name="*.xml"/>
+                <include name="doap_Pig.rdf"/>
+                <include name="KEYS"/>
+            </tarfileset>
+            <tarfileset dir="" mode="755" prefix="${final.name}-src-${pig.version}">
+                <include name="bin/**"/>
+            </tarfileset>
+        </tar>
+    </target>
+
+    <!-- ================================================================== -->
     <!-- Findbugs                                                           -->
     <!-- ================================================================== -->
 

Modified: pig/branches/branch-0.11/contrib/piggybank/java/build.xml
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.11/contrib/piggybank/java/build.xml?rev=1405888&r1=1405887&r2=1405888&view=diff
==============================================================================
--- pig/branches/branch-0.11/contrib/piggybank/java/build.xml (original)
+++ pig/branches/branch-0.11/contrib/piggybank/java/build.xml Mon Nov  5 17:25:47 2012
@@ -85,6 +85,7 @@
     </target>
     <target name="clean">
         <delete dir="build"/>
+        <delete file="${udfjar}"/>
     </target>
     <target depends="init" name="compile" description="compile all of the class files">
         <echo> *** Compiling Pig UDFs ***</echo>

Modified: pig/branches/branch-0.11/tutorial/build.xml
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.11/tutorial/build.xml?rev=1405888&r1=1405887&r2=1405888&view=diff
==============================================================================
--- pig/branches/branch-0.11/tutorial/build.xml (original)
+++ pig/branches/branch-0.11/tutorial/build.xml Mon Nov  5 17:25:47 2012
@@ -53,6 +53,7 @@
     </target>
     <target name="clean">
         <delete dir="build"/>
+        <delete file="${zip.file}"/>
     </target>
     <target depends="jar" name="cp" description="prepare tar creation">
         <echo> *** Preparing tar creation ***</echo>



Mime
View raw message