You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2009/09/10 00:19:48 UTC

svn commit: r813139 - in /maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report: ./ invoker.properties pom.xml verify.groovy

Author: olamy
Date: Wed Sep  9 22:19:47 2009
New Revision: 813139

URL: http://svn.apache.org/viewvc?rev=813139&view=rev
Log:
add a basic checkstyle report it.

Added:
    maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/
      - copied from r812262, maven/plugins/trunk/maven-checkstyle-plugin/src/it/check-pass/
    maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/verify.groovy   (with props)
Modified:
    maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/invoker.properties
    maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/pom.xml

Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/invoker.properties?rev=813139&r1=812262&r2=813139&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/invoker.properties (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/invoker.properties Wed Sep  9 22:19:47 2009
@@ -1 +1 @@
-invoker.goals=verify
+invoker.goals=clean site

Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/pom.xml?rev=813139&r1=812262&r2=813139&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/pom.xml (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/pom.xml Wed Sep  9 22:19:47 2009
@@ -40,15 +40,24 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-checkstyle-plugin</artifactId>
         <version>@pom.version@</version>
-        <executions>
-          <execution>
-            <id>check</id>
-            <goals>
-              <goal>check</goal>
-            </goals>
-          </execution>
-        </executions>
       </plugin>
     </plugins>
   </build>
+  <reporting>
+   <excludeDefaults>true</excludeDefaults>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+        <version>@pom.version@</version>
+        <reportSets>
+          <reportSet>
+            <reports>
+              <report>checkstyle</report>
+            </reports>
+          </reportSet>
+        </reportSets>
+      </plugin>
+    </plugins>
+  </reporting>
 </project>

Added: maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/verify.groovy
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/verify.groovy?rev=813139&view=auto
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/verify.groovy (added)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/verify.groovy Wed Sep  9 22:19:47 2009
@@ -0,0 +1,25 @@
+
+/*
+ * 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.
+ */
+assert new File(basedir, 'target/site/checkstyle.html').exists();
+
+File rssFile = new File( basedir, 'target/site/checkstyle.rss' );
+assert rssFile.exists();
+
+return true;
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/verify.groovy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-checkstyle-plugin/src/it/checkstyle-report/verify.groovy
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision