Author: aheritier Date: Fri Feb 3 14:38:32 2006 New Revision: 374767 URL: http://svn.apache.org/viewcvs?rev=374767&view=rev Log: MPPMD-13 : New property "maven.pmd.console" to display pmd errors to the console.
Modified: maven/maven-1/plugins/trunk/pmd/plugin.jelly maven/maven-1/plugins/trunk/pmd/plugin.properties maven/maven-1/plugins/trunk/pmd/xdocs/changes.xml maven/maven-1/plugins/trunk/pmd/xdocs/properties.xml Modified: maven/maven-1/plugins/trunk/pmd/plugin.jelly URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pmd/plugin.jelly?rev=374767&r1=374766&r2=374767&view=diff ============================================================================== --- maven/maven-1/plugins/trunk/pmd/plugin.jelly (original) +++ maven/maven-1/plugins/trunk/pmd/plugin.jelly Fri Feb 3 14:38:32 2006 @@ -114,7 +114,7 @@ <j:choose> <j:when test="${sourcesPresent == 'true'}"> - <pmd rulesetfiles="${maven.pmd.rulesetfiles}"> + <pmd rulesetfiles="${maven.pmd.rulesetfiles}" printToConsole="${maven.pmd.console}"> <formatter type="xml" toFile="${maven.build.dir}/pmd-raw-report.xml"/> <fileset dir="${pom.build.sourceDirectory}" includes="${maven.pmd.includes}" Modified: maven/maven-1/plugins/trunk/pmd/plugin.properties URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pmd/plugin.properties?rev=374767&r1=374766&r2=374767&view=diff ============================================================================== --- maven/maven-1/plugins/trunk/pmd/plugin.properties (original) +++ maven/maven-1/plugins/trunk/pmd/plugin.properties Fri Feb 3 14:38:32 2006 @@ -41,4 +41,7 @@ maven.pmd.cpd.minimumtokencount = 100 # whether or not to run PMD on test files -maven.pmd.check.tests = true \ No newline at end of file +maven.pmd.check.tests = true + +# Print the output to the console +maven.pmd.console = false \ No newline at end of file Modified: maven/maven-1/plugins/trunk/pmd/xdocs/changes.xml URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pmd/xdocs/changes.xml?rev=374767&r1=374766&r2=374767&view=diff ============================================================================== --- maven/maven-1/plugins/trunk/pmd/xdocs/changes.xml (original) +++ maven/maven-1/plugins/trunk/pmd/xdocs/changes.xml Fri Feb 3 14:38:32 2006 @@ -25,6 +25,7 @@ </properties> <body> <release version="1.8-SNAPSHOT" date="In SVN"> + <action dev="aheritier" type="add" issue="MPPMD-13">New property "maven.pmd.console" to display pmd errors to the console.</action> <action dev="aheritier" type="fix">Do not generate links to JXR files if they are not created.</action> <action dev="aheritier" type="update">Use properties maven.jxr.destdir and maven.jxr.destdir.test to generate links from the PMD report to jxr files.</action> <action dev="aheritier" type="fix">Fix NullPointerException if pom.build.sourceDirectory or pom.build.unitTestSourceDirectory are not defined.</action> Modified: maven/maven-1/plugins/trunk/pmd/xdocs/properties.xml URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/pmd/xdocs/properties.xml?rev=374767&r1=374766&r2=374767&view=diff ============================================================================== --- maven/maven-1/plugins/trunk/pmd/xdocs/properties.xml (original) +++ maven/maven-1/plugins/trunk/pmd/xdocs/properties.xml Fri Feb 3 14:38:32 2006 @@ -94,6 +94,13 @@ Whether or not to run PMD on test sources. Defaults to true. </td> </tr> + <tr> + <td>maven.pmd.console</td> + <td>Yes</td> + <td> + Whether or not to display PMD errors to the console. Defaults to false. + </td> + </tr> </table> </section> </body>