From 9c656cc1040948412db0bb0d9ed55b2d06084a34 Mon Sep 17 00:00:00 2001 From: Jaikiran Pai Date: Sun, 1 Sep 2019 10:57:59 +0530 Subject: [PATCH] Use a custom copyright license matcher for RAT to allow usage of https links in copyright headers A recent commit changed the license text in the copyright header on source files to use https instead of http for refering to the license file. This causes RAT tool to not match such copyright headers against Apache License, Version 2.0. The use of "https" instead of "http" in the copyright headers is considered valid as per the discussion here https://mail-archives.apache.org/mod_mbox/ant-dev/201905.mbox/%3C87ftowunkc.fsf%40v45346.1blu.de%3E This commit introduces a custom license matcher for RAT which matches such copyright headers and considers them as "approved". --- check.xml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/check.xml b/check.xml index d18c468d0..c72f3e8b4 100644 --- a/check.xml +++ b/check.xml @@ -105,7 +105,7 @@ + +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 + + https://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. + +