This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ratis.git


The following commit(s) were added to refs/heads/master by this push:
     new 063ff07ea RATIS-2355. Duplicate output in checkstyle check (#1310)
063ff07ea is described below

commit 063ff07eae67d8ebd107dfc0e73b2370d3caaca5
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Tue Nov 11 17:47:49 2025 +0100

    RATIS-2355. Duplicate output in checkstyle check (#1310)
---
 dev-support/checks/checkstyle.sh | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dev-support/checks/checkstyle.sh b/dev-support/checks/checkstyle.sh
index cb06fdaac..473035bf1 100755
--- a/dev-support/checks/checkstyle.sh
+++ b/dev-support/checks/checkstyle.sh
@@ -26,16 +26,17 @@ REPORT_FILE="$REPORT_DIR/summary.txt"
 MAVEN_OPTIONS='-B -fae -Dcheckstyle.failOnViolation=false'
 
 declare -i rc
-${MVN} ${MAVEN_OPTIONS} checkstyle:check | tee  "${REPORT_DIR}/output.log"
+${MVN} ${MAVEN_OPTIONS} checkstyle:check > "${REPORT_DIR}/output.log"
 rc=$?
 if [[ ${rc} -ne 0 ]]; then
-  ${MVN} ${MAVEN_OPTIONS} clean test-compile checkstyle:check
+  ${MVN} ${MAVEN_OPTIONS} clean test-compile checkstyle:check > output.log
   rc=$?
   mkdir -p "$REPORT_DIR" # removed by mvn clean
-else
-  cat "${REPORT_DIR}/output.log"
+  mv output.log "${REPORT_DIR}"/
 fi
 
+cat "${REPORT_DIR}/output.log"
+
 #Print out the exact violations with parsing XML results with sed
 find "." -name checkstyle-result.xml -print0 \
   | xargs -0 sed '$!N; /<file.*\n<\/file/d;P;D' \

Reply via email to