You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ad...@apache.org on 2022/04/21 13:28:52 UTC
[ozone] branch master updated: HDDS-6606. Rat check failure ignored for ozone-annotation-processing (#3321)
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/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new dc9da7d405 HDDS-6606. Rat check failure ignored for ozone-annotation-processing (#3321)
dc9da7d405 is described below
commit dc9da7d40548be1076f60cb3e8a2021f3eea8838
Author: Doroszlai, Attila <64...@users.noreply.github.com>
AuthorDate: Thu Apr 21 15:28:45 2022 +0200
HDDS-6606. Rat check failure ignored for ozone-annotation-processing (#3321)
---
.../org/apache/ozone/annotations/package-info.java | 20 +++++++++++++++++++-
hadoop-ozone/dev-support/checks/rat.sh | 15 +++++++--------
2 files changed, 26 insertions(+), 9 deletions(-)
diff --git a/dev-support/annotations/src/main/java/org/apache/ozone/annotations/package-info.java b/dev-support/annotations/src/main/java/org/apache/ozone/annotations/package-info.java
index b13720d560..d797aa0a8d 100644
--- a/dev-support/annotations/src/main/java/org/apache/ozone/annotations/package-info.java
+++ b/dev-support/annotations/src/main/java/org/apache/ozone/annotations/package-info.java
@@ -1,5 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
/**
* Annotation processors used at compile time by the Ozone project to validate
* internal annotations and related code as needed, if needed.
*/
-package org.apache.ozone.annotations;
\ No newline at end of file
+package org.apache.ozone.annotations;
diff --git a/hadoop-ozone/dev-support/checks/rat.sh b/hadoop-ozone/dev-support/checks/rat.sh
index b67c594cd6..a913579854 100755
--- a/hadoop-ozone/dev-support/checks/rat.sh
+++ b/hadoop-ozone/dev-support/checks/rat.sh
@@ -21,16 +21,15 @@ mkdir -p "$REPORT_DIR"
REPORT_FILE="$REPORT_DIR/summary.txt"
-cd dev-support/annotations || exit 1
-mvn -B -fn org.apache.rat:apache-rat-plugin:0.13:check
-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
+dirs="dev-support/annotations hadoop-hdds hadoop-ozone"
-cd "$DIR/../../.." || exit 1
+for d in $dirs; do
+ pushd "$d"
+ mvn -B -fn org.apache.rat:apache-rat-plugin:0.13:check
+ popd
+done
-grep -r --include=rat.txt "!????" hadoop-hdds hadoop-ozone | tee "$REPORT_FILE"
+grep -r --include=rat.txt "!????" $dirs | tee "$REPORT_FILE"
wc -l "$REPORT_FILE" | awk '{print $1}'> "$REPORT_DIR/failures"
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org