You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2008/04/18 23:51:41 UTC
svn commit: r649704 - in /maven/plugins/trunk/maven-pmd-plugin/src:
main/java/org/apache/maven/plugin/pmd/AbstractPmdReport.java
site/apt/usage.apt
Author: bentmann
Date: Fri Apr 18 14:51:35 2008
New Revision: 649704
URL: http://svn.apache.org/viewvc?rev=649704&view=rev
Log:
[MPMD-75] PMD plugin unable to exclude groovy-stub files.
o Improved documentation to point out usage of excludeRoots
Modified:
maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdReport.java
maven/plugins/trunk/maven-pmd-plugin/src/site/apt/usage.apt
Modified: maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdReport.java?rev=649704&r1=649703&r2=649704&view=diff
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdReport.java (original)
+++ maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/AbstractPmdReport.java Fri Apr 18 14:51:35 2008
@@ -115,15 +115,18 @@
private File xrefTestLocation;
/**
- * A list of files to exclude from checking. Can contain ant-style wildcards and double wildcards.
- *
+ * A list of files to exclude from checking. Can contain Ant-style wildcards and double wildcards. Note that these
+ * exclusion patterns only operate on the path of a source file relative to its source root directory. In other
+ * words, files are excluded based on their package and/or class name. If you want to exclude entire source root
+ * directories, use the parameter <code>excludeRoots</code> instead.
+ *
* @parameter
* @since 2.2
*/
private String[] excludes;
-
+
/**
- * A list of files to include from checking. Can contain ant-style wildcards and double wildcards.
+ * A list of files to include from checking. Can contain Ant-style wildcards and double wildcards.
* Defaults to **\/*.java.
*
* @parameter
Modified: maven/plugins/trunk/maven-pmd-plugin/src/site/apt/usage.apt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/site/apt/usage.apt?rev=649704&r1=649703&r2=649704&view=diff
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/site/apt/usage.apt (original)
+++ maven/plugins/trunk/maven-pmd-plugin/src/site/apt/usage.apt Fri Apr 18 14:51:35 2008
@@ -102,6 +102,9 @@
<exclude>**/*Bean.java</exclude>
<exclude>**/generated/*.java</exclude>
</excludes>
+ <excludeRoots>
+ <excludeRoot>target/generated-sources/stubs</excludeRoot>
+ </excludeRoots>
</configuration>
</plugin>
</plugins>