AMBARI-20625. Hadoop QA javac warnings increase check is broken -- fix for ambari-server
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8f95262d Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8f95262d Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8f95262d Branch: refs/heads/branch-feature-AMBARI-12556 Commit: 8f95262d43726e80a2922313d97c68db1ae4c2f4 Parents: c5e5999 Author: Attila Doroszlai <[email protected]> Authored: Thu Mar 30 15:24:55 2017 +0200 Committer: Attila Doroszlai <[email protected]> Committed: Mon Apr 3 20:26:04 2017 +0200 ---------------------------------------------------------------------- dev-support/test-patch.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/8f95262d/dev-support/test-patch.sh ---------------------------------------------------------------------- diff --git a/dev-support/test-patch.sh b/dev-support/test-patch.sh index 294c840..9b6d83e 100755 --- a/dev-support/test-patch.sh +++ b/dev-support/test-patch.sh @@ -261,8 +261,8 @@ prebuildWithoutPatch () { echo "" echo "" echo "Compiling $(pwd)" - echo "$MVN clean test -DskipTests -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunkJavacWarnings.txt 2>&1" - $MVN clean test -DskipTests -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunkJavacWarnings.txt 2>&1 + echo "$MVN clean test -DskipTests -Dxlint=all -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunkJavacWarnings.txt 2>&1" + $MVN clean test -DskipTests -Dxlint=all -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunkJavacWarnings.txt 2>&1 if [[ $? != 0 ]] ; then echo "Top-level trunk compilation is broken?" JIRA_COMMENT="$JIRA_COMMENT @@ -385,8 +385,8 @@ checkJavacWarnings () { echo "======================================================================" echo "" echo "" - echo "$MVN clean test -DskipTests -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/patchJavacWarnings.txt 2>&1" - $MVN clean test -DskipTests -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/patchJavacWarnings.txt 2>&1 + echo "$MVN clean test -DskipTests -Dxlint=all -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/patchJavacWarnings.txt 2>&1" + $MVN clean test -DskipTests -Dxlint=all -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/patchJavacWarnings.txt 2>&1 if [[ $? != 0 ]] ; then JIRA_COMMENT="$JIRA_COMMENT
