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
This commit is contained in:
Zhihong Yu 2013-03-10 02:12:09 +00:00
parent 6372e2dcff
commit 8f8decb1c9
1 changed files with 5 additions and 0 deletions

View File

@ -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