From 56cd29e5be9ac55d9647a0fb39d131e7396d977c Mon Sep 17 00:00:00 2001 From: Joe Di Pol Date: Wed, 28 Feb 2024 14:47:15 -0800 Subject: [PATCH] Don't include examples in checkstyle --- etc/scripts/checkstyle.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/scripts/checkstyle.sh b/etc/scripts/checkstyle.sh index 0ea1448c781..52c052e6ed9 100755 --- a/etc/scripts/checkstyle.sh +++ b/etc/scripts/checkstyle.sh @@ -1,6 +1,6 @@ #!/bin/bash -e # -# Copyright (c) 2018, 2022 Oracle and/or its affiliates. +# Copyright (c) 2018, 2024 Oracle and/or its affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ mvn ${MAVEN_ARGS} checkstyle:checkstyle-aggregate \ -f ${WS_DIR}/pom.xml \ -Dcheckstyle.output.format="plain" \ -Dcheckstyle.output.file="${RESULT_FILE}" \ - -Pexamples,ossrh-releases > ${LOG_FILE} 2>&1 || (cat ${LOG_FILE} ; exit 1) + -Possrh-releases > ${LOG_FILE} 2>&1 || (cat ${LOG_FILE} ; exit 1) grep "^\[ERROR\]" ${RESULT_FILE} \ && die "CHECKSTYLE ERROR" || echo "CHECKSTYLE OK"