From 8f8decb1c9b84356689eeda9e8ccd9a5407f122e Mon Sep 17 00:00:00 2001 From: Zhihong Yu Date: Sun, 10 Mar 2013 02:12:09 +0000 Subject: [PATCH] HBASE-8059 Enhance test-patch.sh so that patch can specify hadoop-2.0 as the default profile, part 1 (Ted Yu) git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1454777 13f79535-47bb-0310-9956-ffa450edef68 --- dev-support/test-patch.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev-support/test-patch.sh b/dev-support/test-patch.sh index df08f389a13..a9aa46172f7 100755 --- a/dev-support/test-patch.sh +++ b/dev-support/test-patch.sh @@ -354,6 +354,11 @@ checkHadoop20Compile () { echo "" echo "" + patchForHadoop2=`$GREP -c -i 'hadoop.profile=2.0' $PATCH_DIR/patch` + if [[ $patchForHadoop2 != 0 ]] ; then + return 0; + fi + export MAVEN_OPTS="${MAVEN_OPTS}" # build core and tests $MVN clean test help:active-profiles -X -DskipTests -Dhadoop.profile=2.0 -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunk2.0JavacWarnings.txt 2>&1