From bd270260c847e0e8d0825c417215df60e2625539 Mon Sep 17 00:00:00 2001 From: Sam Tunnicliffe Date: Mon, 26 Apr 2021 19:33:30 +0100 Subject: [PATCH 1/2] Only include versioned files in rat-report Patch by Sam Tunnicliffe; reviewed by Benedict Elliott Smith and Mick Semb Wever for CASSANDRA-16633 --- .build/build-rat.xml | 99 ++++++++++++++++++++++++-------------------- build.xml | 32 +++++++------- 2 files changed, 68 insertions(+), 63 deletions(-) diff --git a/.build/build-rat.xml b/.build/build-rat.xml index 468c671b62..6565410ea2 100644 --- a/.build/build-rat.xml +++ b/.build/build-rat.xml @@ -1,21 +1,19 @@ - - - @@ -37,34 +32,46 @@ - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build.xml b/build.xml index 52ba87f6dd..014a77c298 100644 --- a/build.xml +++ b/build.xml @@ -1,22 +1,20 @@ + 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. +--> From 26163bb12aac590289aab6deabc21fe86371e22a Mon Sep 17 00:00:00 2001 From: Sam Tunnicliffe Date: Tue, 27 Apr 2021 10:16:28 +0100 Subject: [PATCH 2/2] Follow up fixes to CASSANDRA-16633 * Don't run rat check if git fails or not available * Check for presence of rat.txt before running eclipse-warnings task (to ensure that the report is always generated by CI runs) Patch by Sam Tunnicliffe; reviewed by Mick Semb Wever for CASSANDRA-16633 --- .build/build-rat.xml | 18 +++++++++++++++++- build.xml | 3 +-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.build/build-rat.xml b/.build/build-rat.xml index 6565410ea2..195edc991a 100644 --- a/.build/build-rat.xml +++ b/.build/build-rat.xml @@ -33,9 +33,14 @@ - + + + + + + @@ -101,4 +106,15 @@ + + + + + + + + + + + diff --git a/build.xml b/build.xml index 014a77c298..064d16dd39 100644 --- a/build.xml +++ b/build.xml @@ -1920,8 +1920,7 @@ - - +