Author: markt
Date: Tue Jan 11 15:00:05 2011
New Revision: 1057681
URL: http://svn.apache.org/viewvc?rev=1057681&view=rev
Log:
Get checkstyle to check Java files for AL2 headers
Added:
tomcat/trunk/res/checkstyle/header-al2.txt (with props)
Modified:
tomcat/trunk/build.xml
tomcat/trunk/res/checkstyle/checkstyle.xml
Modified: tomcat/trunk/build.xml
URL:
http://svn.apache.org/viewvc/tomcat/trunk/build.xml?rev=1057681&r1=1057680&r2=1057681&view=diff
==============================================================================
--- tomcat/trunk/build.xml (original)
+++ tomcat/trunk/build.xml Tue Jan 11 15:00:05 2011
@@ -429,8 +429,13 @@
<exclude name="output/**"/>
<exclude name="modules/**"/>
<exclude name="**/*.mdl"/>
- <!-- Exclude auto-generated files with known errors -->
- <exclude name="java/org/apache/el/parser/ELParser.java" />
+ <!-- Exclude auto-generated files -->
+ <exclude name="java/org/apache/el/parser/ELParser*.java" />
+ <exclude name="java/org/apache/el/parser/JJTELParserState.java" />
+ <exclude name="java/org/apache/el/parser/Node.java" />
+ <exclude name="java/org/apache/el/parser/ParseException.java" />
+ <exclude name="java/org/apache/el/parser/SimpleCharStream.java" />
+ <exclude name="java/org/apache/el/parser/Token*.java" />
<!-- Exclude these else Gump runs validate on them -->
<exclude name="**/org/apache/tomcat/dbcp/**"/>
<exclude name="**/tomcat-deps/**"/>
Modified: tomcat/trunk/res/checkstyle/checkstyle.xml
URL:
http://svn.apache.org/viewvc/tomcat/trunk/res/checkstyle/checkstyle.xml?rev=1057681&r1=1057680&r2=1057681&view=diff
==============================================================================
--- tomcat/trunk/res/checkstyle/checkstyle.xml (original)
+++ tomcat/trunk/res/checkstyle/checkstyle.xml Tue Jan 11 15:00:05 2011
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
+ 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
@@ -23,6 +23,12 @@
<!-- 'Standard Checks' in the Checkstyle documentation:
-->
<!-- http://checkstyle.sourceforge.net/config_coding.html
-->
+ <!-- Headers -->
+ <module name="RegexpHeader">
+ <property name="headerFile"
value="${basedir}/res/checkstyle/header-al2.txt"/>
+ <property name="fileExtensions" value="java"/>
+ </module>
+
<!-- Whitespace -->
<module name="FileTabCharacter"/>
Added: tomcat/trunk/res/checkstyle/header-al2.txt
URL:
http://svn.apache.org/viewvc/tomcat/trunk/res/checkstyle/header-al2.txt?rev=1057681&view=auto
==============================================================================
--- tomcat/trunk/res/checkstyle/header-al2.txt (added)
+++ tomcat/trunk/res/checkstyle/header-al2.txt Tue Jan 11 15:00:05 2011
@@ -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
Propchange: tomcat/trunk/res/checkstyle/header-al2.txt
------------------------------------------------------------------------------
svn:eol-style = native
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]