HBASE-5872 ADDENDUM - improve hadoop 23 compile sucess/fail message

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1331248 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Hsieh 2012-04-27 06:55:13 +00:00
parent 3b2a20eed9
commit f7e3a14850
1 changed files with 7 additions and 2 deletions

View File

@ -365,10 +365,15 @@ checkHadoop23Compile () {
# build core and tests
$MVN clean test -DskipTests -Dhadoop.profile=23 -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunk23JavacWarnings.txt 2>&1
if [[ $? != 0 ]] ; then
echo "Failed to compile against hadoop 23".
JIRA_COMMENT="$JIRA_COMMENT
-1 hadoop23. The patch failed to compile against the hadoop 0.23.x profile."
cleanupAndExit 1
fi
JIRA_COMMENT="$JIRA_COMMENT
+1 hadoop23. The patch compiles against the hadoop 0.23.x profile."
return 0
}