From 54eb72251dab3b7d6f0a33499a40951ea3c76ba3 Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 11 Jan 2011 15:29:58 +0000 Subject: [PATCH] Expand checkstyle license checks git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1057695 13f79535-47bb-0310-9956-ffa450edef68 --- build.xml | 5 +++++ res/checkstyle/checkstyle.xml | 3 ++- res/checkstyle/header-al2.txt | 33 ++++++++++++++++++--------------- 3 files changed, 25 insertions(+), 16 deletions(-) diff --git a/build.xml b/build.xml index da9e4a49a..5ebb319b4 100644 --- a/build.xml +++ b/build.xml @@ -425,10 +425,15 @@ + + + + + diff --git a/res/checkstyle/checkstyle.xml b/res/checkstyle/checkstyle.xml index 7dcea35b6..b9a23b104 100644 --- a/res/checkstyle/checkstyle.xml +++ b/res/checkstyle/checkstyle.xml @@ -26,7 +26,8 @@ - + + diff --git a/res/checkstyle/header-al2.txt b/res/checkstyle/header-al2.txt index 23b24ecff..723479356 100644 --- a/res/checkstyle/header-al2.txt +++ b/res/checkstyle/header-al2.txt @@ -1,16 +1,19 @@ +^<\?xml.*>$ +^@echo off$ +^#! ^\W*$ -^\W*Licensed to the Apache Software Foundation \(ASF\) under one or more$ -^\W*contributor license agreements\. See the NOTICE file distributed with$ -^\W*this work for additional information regarding copyright ownership\.$ -^\W*The ASF licenses this file to You under the Apache License, Version 2\.0$ -^\W*\(the "License"\); you may not use this file except in compliance with$ -^\W*the License\. You may obtain a copy of the License at$ -^\W*$ -^\W*http://www.apache.org/licenses/LICENSE-2\.0$ -^\W*$ -^\W*Unless required by applicable law or agreed to in writing, software$ -^\W*distributed under the License is distributed on an "AS IS" BASIS,$ -^\W*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.$ -^\W*See the License for the specific language governing permissions and$ -^\W*limitations under the License\.$ -^\W*$ \ No newline at end of file +^(rem)?\W*Licensed to the Apache Software Foundation \(ASF\) under one or more$ +^(rem)?\W*contributor license agreements\. See the NOTICE file distributed with$ +^(rem)?\W*this work for additional information regarding copyright ownership\.$ +^(rem)?\W*The ASF licenses this file to You under the Apache License, Version 2\.0$ +^(rem)?\W*\(the "License"\); you may not use this file except in compliance with$ +^(rem)?\W*the License\. You may obtain a copy of the License at$ +^(rem)?\W*$ +^(rem)?\W*http://www.apache.org/licenses/LICENSE-2\.0$ +^(rem)?\W*$ +^(rem)?\W*Unless required by applicable law or agreed to in writing, software$ +^(rem)?\W*distributed under the License is distributed on an "AS IS" BASIS,$ +^(rem)?\W*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.$ +^(rem)?\W*See the License for the specific language governing permissions and$ +^(rem)?\W*limitations under the License\.$ +^(rem)?\W*$ \ No newline at end of file -- 2.11.0