@@ -27,7 +27,7 @@ parseArgs() {
2727 # ## Set HUDSON to true to indicate that this script is being run by Hudson
2828 HUDSON=true
2929 if [[ $# != 18 ]] ; then
30- echo " ERROR: usage $0 HUDSON <PATCH_DIR> <SUPPORT_DIR> <PS_CMD> <WGET_CMD> <JIRACLI> <SVN_CMD> <GREP_CMD> <PATCH_CMD> <FINDBUGS_HOME> <FORREST_HOME> <ECLIPSE_HOME> <PYTHON_HOME> <WORKSPACE_BASEDIR> <JIRA_PASSWD> <JAVA5_HOME> < CURL_CMD> <DEFECT> "
30+ echo " ERROR: usage $0 HUDSON <PATCH_DIR> <SUPPORT_DIR> <PS_CMD> <WGET_CMD> <JIRACLI> <SVN_CMD> <GREP_CMD> <PATCH_CMD> <FINDBUGS_HOME> <FORREST_HOME> <ECLIPSE_HOME> <PYTHON_HOME> <WORKSPACE_BASEDIR> <JIRA_PASSWD> <CURL_CMD> <DEFECT> "
3131 cleanupAndExit 0
3232 fi
3333 PATCH_DIR=$2
@@ -44,7 +44,6 @@ parseArgs() {
4444 PYTHON_HOME=${13}
4545 BASEDIR=${14}
4646 JIRA_PASSWD=${15}
47- JAVA5_HOME=${16}
4847 CURL=${17}
4948 defect=${18}
5049
@@ -65,7 +64,7 @@ parseArgs() {
6564 # ## Set HUDSON to false to indicate that this script is being run by a developer
6665 HUDSON=false
6766 if [[ $# != 10 ]] ; then
68- echo " ERROR: usage $0 DEVELOPER <PATCH_FILE> <SCRATCH_DIR> <SVN_CMD> <GREP_CMD> <PATCH_CMD> <FINDBUGS_HOME> <FORREST_HOME> <WORKSPACE_BASEDIR> <JAVA5_HOME> "
67+ echo " ERROR: usage $0 DEVELOPER <PATCH_FILE> <SCRATCH_DIR> <SVN_CMD> <GREP_CMD> <PATCH_CMD> <FINDBUGS_HOME> <FORREST_HOME> <WORKSPACE_BASEDIR>"
6968 cleanupAndExit 0
7069 fi
7170 # ## PATCH_FILE contains the location of the patchfile
@@ -91,7 +90,6 @@ parseArgs() {
9190 FINDBUGS_HOME=$7
9291 FORREST_HOME=$8
9392 BASEDIR=$9
94- JAVA5_HOME=${10}
9593 # ## Obtain the patch filename to append it to the version number
9694 defect=` basename $PATCH_FILE `
9795 ;;
@@ -181,8 +179,8 @@ setup () {
181179 echo " ======================================================================"
182180 echo " "
183181 echo " "
184- echo " $ANT_HOME /bin/ant -Djavac.args=" -Xlint -Xmaxwarns 1000" $ECLIPSE_PROPERTY -Djava5.home= ${JAVA5_HOME} - Dforrest.home=${FORREST_HOME} -D${PROJECT_NAME} PatchProcess= clean tar > $PATCH_DIR /trunkJavacWarnings.txt 2>&1"
185- $ANT_HOME /bin/ant -Djavac.args=" -Xlint -Xmaxwarns 1000" $ECLIPSE_PROPERTY -Djava5.home= ${JAVA5_HOME} - Dforrest.home=${FORREST_HOME} -D${PROJECT_NAME} PatchProcess= clean tar > $PATCH_DIR /trunkJavacWarnings.txt 2>&1
182+ echo " $ANT_HOME /bin/ant -Djavac.args=" -Xlint -Xmaxwarns 1000" $ECLIPSE_PROPERTY -Dforrest.home=${FORREST_HOME} -D${PROJECT_NAME} PatchProcess= clean tar > $PATCH_DIR /trunkJavacWarnings.txt 2>&1"
183+ $ANT_HOME /bin/ant -Djavac.args=" -Xlint -Xmaxwarns 1000" $ECLIPSE_PROPERTY -Dforrest.home=${FORREST_HOME} -D${PROJECT_NAME} PatchProcess= clean tar > $PATCH_DIR /trunkJavacWarnings.txt 2>&1
186184 if [[ $? != 0 ]] ; then
187185 echo " Trunk compilation is broken?"
188186 cleanupAndExit 1
@@ -329,8 +327,8 @@ checkJavacWarnings () {
329327 echo " ======================================================================"
330328 echo " "
331329 echo " "
332- echo " $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -Djavac.args=" -Xlint -Xmaxwarns 1000" $ECLIPSE_PROPERTY -Djava5.home= ${JAVA5_HOME} - Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= clean tar > $PATCH_DIR /patchJavacWarnings.txt 2>&1"
333- $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -Djavac.args=" -Xlint -Xmaxwarns 1000" $ECLIPSE_PROPERTY -Djava5.home= ${JAVA5_HOME} - Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= clean tar > $PATCH_DIR /patchJavacWarnings.txt 2>&1
330+ echo " $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -Djavac.args=" -Xlint -Xmaxwarns 1000" $ECLIPSE_PROPERTY -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= clean tar > $PATCH_DIR /patchJavacWarnings.txt 2>&1"
331+ $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -Djavac.args=" -Xlint -Xmaxwarns 1000" $ECLIPSE_PROPERTY -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= clean tar > $PATCH_DIR /patchJavacWarnings.txt 2>&1
334332 if [[ $? != 0 ]] ; then
335333 JIRA_COMMENT=" $JIRA_COMMENT
336334
@@ -369,8 +367,8 @@ checkReleaseAuditWarnings () {
369367 echo " ======================================================================"
370368 echo " "
371369 echo " "
372- echo " $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -Djava5.home= ${JAVA5_HOME} - Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= releaseaudit > $PATCH_DIR /patchReleaseAuditWarnings.txt 2>&1"
373- $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -Djava5.home= ${JAVA5_HOME} - Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= releaseaudit > $PATCH_DIR /patchReleaseAuditWarnings.txt 2>&1
370+ echo " $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= releaseaudit > $PATCH_DIR /patchReleaseAuditWarnings.txt 2>&1"
371+ $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= releaseaudit > $PATCH_DIR /patchReleaseAuditWarnings.txt 2>&1
374372
375373 # ## Compare trunk and patch release audit warning numbers
376374 if [[ -f $PATCH_DIR /patchReleaseAuditWarnings.txt ]] ; then
@@ -443,8 +441,8 @@ checkFindbugsWarnings () {
443441 echo " ======================================================================"
444442 echo " "
445443 echo " "
446- echo " $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -Dfindbugs.home=$FINDBUGS_HOME -Djava5.home= ${JAVA5_HOME} - Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= findbugs"
447- $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -Dfindbugs.home=$FINDBUGS_HOME -Djava5.home= ${JAVA5_HOME } -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= findbugs
444+ echo " $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -Dfindbugs.home=$FINDBUGS_HOME -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= findbugs"
445+ $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -Dfindbugs.home=$FINDBUGS_HOME } -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= findbugs
448446 if [ $? != 0 ] ; then
449447 JIRA_COMMENT=" $JIRA_COMMENT
450448
@@ -498,8 +496,8 @@ runCoreTests () {
498496 PreTestTarget=" create-c++-configure"
499497 fi
500498
501- echo " $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=no -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME -Djava5.home= $JAVA5_HOME $PreTestTarget test-core"
502- $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=no -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME -Djava5.home= $JAVA5_HOME $PreTestTarget test-core
499+ echo " $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=no -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME $PreTestTarget test-core"
500+ $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=no -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME $PreTestTarget test-core
503501 if [[ $? != 0 ]] ; then
504502 # ## Find and format names of failed tests
505503 failed_tests=` grep -l -E " <failure|<error" $WORKSPACE /trunk/build/test/* .xml | sed -e " s|.*build/test/TEST-| |g" | sed -e " s|\.xml||g" `
@@ -561,8 +559,8 @@ checkInjectSystemFaults () {
561559 # ## Kill any rogue build processes from the last attempt
562560 $PS auxwww | $GREP HadoopPatchProcess | /usr/bin/nawk ' {print $2}' | /usr/bin/xargs -t -I {} /bin/kill -9 {} > /dev/null
563561
564- echo " $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=no -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME -Djava5.home= $JAVA5_HOME inject-system-faults"
565- $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=no -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME -Djava5.home= $JAVA5_HOME inject-system-faults
562+ echo " $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=no -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME inject-system-faults"
563+ $ANT_HOME /bin/ant -Dversion=" ${VERSION} " -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=no -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME inject-system-faults
566564 if [[ $? != 0 ]] ; then
567565 JIRA_COMMENT=" $JIRA_COMMENT
568566
0 commit comments