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 2012/02/16 23:31:01 UTC

svn commit: r1245218 - in /pig/branches/branch-0.10: CHANGES.txt build.xml

Author: daijy
Date: Thu Feb 16 22:31:00 2012
New Revision: 1245218

URL: http://svn.apache.org/viewvc?rev=1245218&view=rev
Log:
PIG-2518: Add ability to clean ivy cache in build.xml

Modified:
    pig/branches/branch-0.10/CHANGES.txt
    pig/branches/branch-0.10/build.xml

Modified: pig/branches/branch-0.10/CHANGES.txt
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.10/CHANGES.txt?rev=1245218&r1=1245217&r2=1245218&view=diff
==============================================================================
--- pig/branches/branch-0.10/CHANGES.txt (original)
+++ pig/branches/branch-0.10/CHANGES.txt Thu Feb 16 22:31:00 2012
@@ -166,6 +166,8 @@ PIG-2228: support partial aggregation in
 
 BUG FIXES
 
+PIG-2518: Add ability to clean ivy cache in build.xml (daijy)
+
 PIG-2530: Reusing alias name in nested foreach causes incorrect results (daijy)
 
 PIG-2489: Input Path Globbing{} not working with PigStorageSchema or PigStorage('\t', '-schema') (daijy)

Modified: pig/branches/branch-0.10/build.xml
URL: http://svn.apache.org/viewvc/pig/branches/branch-0.10/build.xml?rev=1245218&r1=1245217&r2=1245218&view=diff
==============================================================================
--- pig/branches/branch-0.10/build.xml (original)
+++ pig/branches/branch-0.10/build.xml Thu Feb 16 22:31:00 2012
@@ -287,7 +287,10 @@
         <delete file="${output.jarfile.backcompat}" />
         <delete file="${output.jarfile.backcompat.withouthadoop}" />
     </target>
-    
+
+    <target name="very-clean" unless="offline" depends="ivy-clean-cache,clean"
+             description="Clean build artifacts and flush Ivy cache" />
+
     <target name="eclipse-files" depends="compile, ivy-buildJar"
 			description="Generate files for Eclipse">
         <pathconvert property="eclipse.project">
@@ -1525,6 +1528,11 @@
          <ivy:resolve settingsRef="${ant.project.name}.ivy.settings" conf="runtime"/>
      </target>	
 
+     <target name="ivy-clean-cache" depends="ivy-init-antlib"
+             description="Clean the Ivy cache">
+         <ivy:cleancache />
+     </target>
+
      <target name="assert-pig-jar-exists" depends="ivy-init">
          <fail>
              <condition >