building "jar" should not call "clean" (nkollar via szita)
git-svn-id: https://svn.apache.org/repos/asf/pig/trunk@1803628 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/CHANGES.txt b/CHANGES.txt
index ac0aebc..d9cb6ae 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -40,6 +40,8 @@
BUG FIXES
+PIG-5276: building "jar" should not call "clean" (nkollar via szita)
+
PIG-5246: Modify bin/pig about SPARK_HOME, SPARK_ASSEMBLY_JAR after upgrading spark to 2 (liyunzhang)
PIG-3655: BinStorage and InterStorage approach to record markers is broken (szita)
diff --git a/build.xml b/build.xml
index a99ca39..27cbe9e 100644
--- a/build.xml
+++ b/build.xml
@@ -454,6 +454,10 @@
<ant dir="${test.e2e.dir}" target="clean"/>
</target>
+ <target name="clean-deps" description="Cleanup dependencies">
+ <delete dir="${lib.dir}" />
+ </target>
+
<target name="very-clean" unless="offline" depends="ivy-clean-cache,jackson-pig-3039-test-clean,clean"
description="Clean build artifacts and flush Ivy cache" />
@@ -798,14 +802,14 @@
<target name="jar" description="Create pig jar with Spark 1 and 2">
<echo>Compiling against Spark 2</echo>
- <antcall target="clean" inheritRefs="true" inheritall="true"/>
+ <antcall target="clean-deps" inheritRefs="true" inheritall="true"/>
<propertyreset name="sparkversion" value="2"/>
<propertyreset name="src.exclude.dir" value="**/Spark1*.java" />
<antcall target="jar-core" inheritRefs="true" inheritall="true"/>
<move file="${output.jarfile.core}" tofile="${basedir}/_pig-shims.jar"/>
<echo>Compiling against Spark 1</echo>
- <antcall target="clean" inheritRefs="true" inheritall="true"/>
+ <antcall target="clean-deps" inheritRefs="true" inheritall="true"/>
<propertyreset name="sparkversion" value="1"/>
<propertyreset name="src.exclude.dir" value="**/Spark2*.java" />
<antcall target="jar-simple" inheritRefs="true" inheritall="true"/>