From: markt Date: Tue, 11 Jan 2011 15:00:05 +0000 (+0000) Subject: Get checkstyle to check Java files for AL2 headers X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9d6e2f4191e8a8172fda9c4d210a981352a2feb7;p=tomcat7.0 Get checkstyle to check Java files for AL2 headers git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1057681 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/build.xml b/build.xml index a9a805cc4..da9e4a49a 100644 --- a/build.xml +++ b/build.xml @@ -429,8 +429,13 @@ - - + + + + + + + diff --git a/res/checkstyle/checkstyle.xml b/res/checkstyle/checkstyle.xml index 5204bc7eb..7dcea35b6 100644 --- a/res/checkstyle/checkstyle.xml +++ b/res/checkstyle/checkstyle.xml @@ -1,6 +1,6 @@ + + + + + + diff --git a/res/checkstyle/header-al2.txt b/res/checkstyle/header-al2.txt new file mode 100644 index 000000000..23b24ecff --- /dev/null +++ b/res/checkstyle/header-al2.txt @@ -0,0 +1,16 @@ +^\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