From 317f2c896ffb0822e19a4787f8d76dc59875f362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Elek?= Date: Wed, 3 Jul 2019 22:13:48 +0200 Subject: [PATCH] fix rat problem --- hadoop-ozone/dev-support/checks/rat.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hadoop-ozone/dev-support/checks/rat.sh b/hadoop-ozone/dev-support/checks/rat.sh index 43b4639a34f..68ca56ed60e 100755 --- a/hadoop-ozone/dev-support/checks/rat.sh +++ b/hadoop-ozone/dev-support/checks/rat.sh @@ -17,12 +17,16 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" cd "$DIR/../../.." || exit 1 mkdir -p target -rm target/rat-aggregated.txt +REPORT_FILE="$DIR/../../../target/rat-aggretaged.txt" +mkdir -p "$(dirname "$REPORT_FILE")" + cd hadoop-hdds || exit 1 mvn -B -fn org.apache.rat:apache-rat-plugin:0.13:check cd ../hadoop-ozone || exit 1 mvn -B -fn org.apache.rat:apache-rat-plugin:0.13:check -grep -r --include=rat.txt "!????" | tee ./target/rat-aggregated.txt + +cd "$DIR/../../.." || exit 1 +grep -r --include=rat.txt "!????" | tee "$REPORT_FILE" if [ "$(cat target/rat-aggregated.txt)" ]; then exit 1 fi