File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -26,16 +26,17 @@ REPORT_FILE="$REPORT_DIR/summary.txt"
2626MAVEN_OPTIONS=' -B -fae -Dcheckstyle.failOnViolation=false'
2727
2828declare -i rc
29- ${MVN} ${MAVEN_OPTIONS} checkstyle:check | tee " ${REPORT_DIR} /output.log"
29+ ${MVN} ${MAVEN_OPTIONS} checkstyle:check > " ${REPORT_DIR} /output.log"
3030rc=$?
3131if [[ ${rc} -ne 0 ]]; then
32- ${MVN} ${MAVEN_OPTIONS} clean test-compile checkstyle:check
32+ ${MVN} ${MAVEN_OPTIONS} clean test-compile checkstyle:check > output.log
3333 rc=$?
3434 mkdir -p " $REPORT_DIR " # removed by mvn clean
35- else
36- cat " ${REPORT_DIR} /output.log"
35+ mv output.log " ${REPORT_DIR} " /
3736fi
3837
38+ cat " ${REPORT_DIR} /output.log"
39+
3940# Print out the exact violations with parsing XML results with sed
4041find " ." -name checkstyle-result.xml -print0 \
4142 | xargs -0 sed ' $!N; /<file.*\n<\/file/d;P;D' \
You can’t perform that action at this time.
0 commit comments