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 2013/02/19 17:54:24 UTC
svn commit: r1447811 - in
/maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163: ./ src/ src/main/
src/main/java/ src/main/java/com/ src/main/java/com/mycompany/
src/main/java/com/mycompany/app/
Author: olamy
Date: Tue Feb 19 16:54:24 2013
New Revision: 1447811
URL: http://svn.apache.org/r1447811
Log:
add it for MPMD-163
Added:
maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/
maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/invoker.properties (with props)
maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/pom.xml (with props)
maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/
maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/
maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/
maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/com/
maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/com/mycompany/
maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/com/mycompany/app/
maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/com/mycompany/app/App.java (with props)
maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/com/mycompany/app/Foo.java (with props)
maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/verify.groovy (with props)
Added: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/invoker.properties?rev=1447811&view=auto
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/invoker.properties (added)
+++ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/invoker.properties Tue Feb 19 16:54:24 2013
@@ -0,0 +1 @@
+invoker.goals = clean pmd:check
\ No newline at end of file
Propchange: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/invoker.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/invoker.properties
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/pom.xml?rev=1447811&view=auto
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/pom.xml (added)
+++ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/pom.xml Tue Feb 19 16:54:24 2013
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.maven.plugin.pmd.it</groupId>
+ <artifactId>MPMD-163</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <name>my-app</name>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-pmd-plugin</artifactId>
+ <version>@project.version@</version>
+ <configuration>
+ <verbose>true</verbose>
+ <printFailingErrors>true</printFailingErrors>
+ <failurePriority>0</failurePriority>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+</project>
Propchange: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/pom.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/com/mycompany/app/App.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/com/mycompany/app/App.java?rev=1447811&view=auto
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/com/mycompany/app/App.java (added)
+++ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/com/mycompany/app/App.java Tue Feb 19 16:54:24 2013
@@ -0,0 +1,8 @@
+package com.mycompany.app;
+
+
+public class App
+{
+
+
+}
Propchange: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/com/mycompany/app/App.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/com/mycompany/app/App.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/com/mycompany/app/Foo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/com/mycompany/app/Foo.java?rev=1447811&view=auto
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/com/mycompany/app/Foo.java (added)
+++ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/com/mycompany/app/Foo.java Tue Feb 19 16:54:24 2013
@@ -0,0 +1,8 @@
+import java.util.ArrayList;
+public class Foo
+{
+ public Foo(final ArrayList<String> foo)
+ {
+ }
+
+}
Propchange: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/com/mycompany/app/Foo.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/src/main/java/com/mycompany/app/Foo.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/verify.groovy
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/verify.groovy?rev=1447811&view=auto
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/verify.groovy (added)
+++ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/verify.groovy Tue Feb 19 16:54:24 2013
@@ -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.
+ */
+
+File buildLog = new File( basedir, 'build.log' )
+assert buildLog.exists()
+
+assert 1 == buildLog.getText().count('You have 1 warning')
+assert 1 == buildLog.getText().count("PMD Warning: Foo:4 Rule:UnusedFormalParameter Priority:3 Avoid unused constructor parameters such as 'foo'..")
\ No newline at end of file
Propchange: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/verify.groovy
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-163/verify.groovy
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision