You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by tv...@apache.org on 2013/12/06 11:30:51 UTC

svn commit: r1548484 - in /tomee/tomee/trunk: checkstyle.xml pom.xml

Author: tveronezi
Date: Fri Dec  6 10:30:50 2013
New Revision: 1548484

URL: http://svn.apache.org/r1548484
Log:
adding the old checkstyle.xml and profile back.

Added:
    tomee/tomee/trunk/checkstyle.xml
Modified:
    tomee/tomee/trunk/pom.xml

Added: tomee/tomee/trunk/checkstyle.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/checkstyle.xml?rev=1548484&view=auto
==============================================================================
--- tomee/tomee/trunk/checkstyle.xml (added)
+++ tomee/tomee/trunk/checkstyle.xml Fri Dec  6 10:30:50 2013
@@ -0,0 +1,34 @@
+<!DOCTYPE module SYSTEM "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
+<!--
+  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.
+  -->
+<module name="Checker">
+  <module name="TreeWalker">
+
+    <!-- @MyAnnotation public void ....-->
+    <module name="RegexpSinglelineJava">
+      <property name="format" value="^ +@[^ ]+ [a-zA-Z]"/>
+      <property name="ignoreComments" value="true"/>
+    </module>
+
+    <!-- @MyAnnotation(foo = "bar") public void ....-->
+    <module name="RegexpSinglelineJava">
+      <property name="format" value="^ +@[^ (]+ *\([^)]+ *\) +[a-zA-Z]"/>
+      <property name="ignoreComments" value="true"/>
+    </module>
+
+  </module>
+</module>
\ No newline at end of file

Modified: tomee/tomee/trunk/pom.xml
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/pom.xml?rev=1548484&r1=1548483&r2=1548484&view=diff
==============================================================================
--- tomee/tomee/trunk/pom.xml (original)
+++ tomee/tomee/trunk/pom.xml Fri Dec  6 10:30:50 2013
@@ -384,6 +384,45 @@
       </modules>
     </profile>
     <profile>
+      <id>style</id>
+      <modules>
+      </modules>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-checkstyle-plugin</artifactId>
+            <version>2.9.1</version>
+            <configuration>
+              <sourceDirectory>${project.build.directory}/../container/openejb-core/src/main/java/org/apache/openejb/config</sourceDirectory>
+              <configLocation>checkstyle.xml</configLocation>
+              <consoleOutput>true</consoleOutput>
+              <enableRulesSummary>false</enableRulesSummary>
+              <failsOnError>true</failsOnError>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+      <repositories>
+        <repository>
+          <releases>
+            <enabled>false</enabled>
+          </releases>
+          <id>Codehaus Snapshots</id>
+          <url>http://snapshots.repository.codehaus.org/</url>
+        </repository>
+      </repositories>
+      <pluginRepositories>
+        <pluginRepository>
+          <releases>
+            <enabled>false</enabled>
+          </releases>
+          <id>Codehaus Snapshots</id>
+          <url>http://snapshots.repository.codehaus.org/</url>
+        </pluginRepository>
+      </pluginRepositories>
+    </profile>
+    <profile>
       <id>rat</id>
       <modules>
         <module>deps</module>