svn commit: r999063 [26/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReportGenerator.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReportGenerator.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReportGenerator.html Sat Oct 8 16:53:12 2016 @@ -60,7 +60,7 @@ 52 53 private ResourceBundle bundle; 54 -55 private HashSetRuleViolation violations = new HashSetRuleViolation(); +55 private HashSetRuleViolation violations = new HashSet(); 56 57 private boolean aggregate; 58 @@ -86,12 +86,12 @@ 78 79 public void setViolations( CollectionRuleViolation violations ) 80 { -81 this.violations = new HashSetRuleViolation( violations ); +81 this.violations = new HashSet( violations ); 82 } 83 84 public ListRuleViolation getViolations() 85 { -86 return new ArrayListRuleViolation( violations ); +86 return new ArrayList( violations ); 87 } 88 89 // public ListMetric getMetrics() @@ -171,7 +171,7 @@ 163 throws IOException 164 { 165 fileCount = files.size(); -166 ArrayListRuleViolation violations2 = new ArrayListRuleViolation( violations ); +166 ArrayListRuleViolation violations2 = new ArrayList( violations ); 167 Collections.sort( violations2, new ComparatorRuleViolation() 168 { 169 /** {@inheritDoc} */ @@ -331,6 +331,6 @@ 323 } -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdViolationCheckMojo.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdViolationCheckMojo.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdViolationCheckMojo.html Sat Oct 8 16:53:12 2016 @@ -27,44 +27,44 @@ 19 * under the License. 20 */ 21 -22 import org.apache.maven.plugin.MojoExecutionException; -23 import org.apache.maven.plugin.MojoFailureException; -24 import org.apache.maven.plugin.pmd.model.PmdErrorDetail; -25 import org.apache.maven.plugin.pmd.model.PmdFile; -26 import org.apache.maven.plugin.pmd.model.Violation; -27 import org.apache.maven.plugin.pmd.model.io.xpp3.PmdXpp3Reader; -28 import org.apache.maven.plugins.annotations.Execute; -29 import org.apache.maven.plugins.annotations.LifecyclePhase; -30 import org.apache.maven.plugins.annotations.Mojo; -31 import org.apache.maven.plugins.annotations.Parameter; -32 import org.codehaus.plexus.util.IOUtil; -33 import org.codehaus.plexus.util.StringUtils; -34 import org.codehaus.plexus.util.xml.pull.XmlPullParserException; -35 -36 import java.io.File; -37 import java.io.FileInputStream; -38 import java.io.FileReader; -39 import java.io.IOException; -40 import java.util.ArrayList; -41 import java.util.HashMap; -42 import java.util.HashSet; -43 import java.util.List; -44 import java.util.Map; -45 import java.util.Map.Entry; -46 import java.util.Properties; -47 import java.util.Set; -48 -49 /** -50 * Fail the build if there were any PMD violations in the source code. -51 * -52 * @version $Id$ -53 * @since 2.0 -54 */ -55 @Mojo( name = "check", defaultPhase = LifecyclePhase.VERIFY, threadSafe = true ) -56 @Execute( goal = "pmd" ) -57 public class PmdViolationCheckMojo -58 extends AbstractPmdViolationCheckMojoViolation -59 { +22 import java.io.File; +23 import java.io.FileReader; +24 import java.io.IOException; +25 import java.util.ArrayList; +26 import java.util.List; +27 +28 import org.apache.maven.plugin.MojoExecutionException; +29 import org.apache.maven.plugin.MojoFailureException; +30 import org.apache.maven.plugin.pmd.model.PmdErrorDetail; +31 import org.apache.maven.plugin.pmd.model.PmdFile; +32 import org.apache.maven.plugin.pmd.model.Violation; +33 import org.apache.maven.plugin.pmd.model.io.xpp3.PmdXpp3Reader; +34 import org.apache.maven.plugins.annotations.Execute; +35 import org.apache.maven.plugins.annotations.LifecyclePhase; +36 import org.apache.maven.plugins.annotations.Mojo; +37 import org.apache.maven.plugins.annotations.Parameter; +38 import org.codehaus.plexus.util.StringUtils; +39 import org.codehaus.plexus.util.xml.pull.XmlPullParserException; +40 +41
svn commit: r999063 [6/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cla
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/cpd-check-mojo.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/cpd-check-mojo.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/cpd-check-mojo.html Sat Oct 8 16:53:12 2016 @@ -1,31 +1,37 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin pmd:cpd-check - + - + - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - + + + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-140879-1']); + _gaq.push(['_trackPageview']); + + (function() { +var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; +ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; +var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + + @@ -34,8 +40,8 @@ -http://www.apache.org/; id="bannerLeft"> - +https://www.apache.org/; id="bannerLeft"> + @@ -47,10 +53,9 @@ - - + -http://www.apache.org/; class="externalLink" title="Apache"> +https://www.apache.org/; class="externalLink" title="Apache"> Apache / @@ -64,18 +69,17 @@ Plugins / - - + + Apache Maven PMD Plugin / pmd:cpd-check - - - | Last Published: 2015-12-13 + + | Last Published: 2016-10-08 -Version: 3.6 +Version: 3.7 @@ -85,8 +89,7 @@ - - + Overview @@ -135,6 +138,13 @@ + + +Multimodule Configuration + + + + Remove Report @@ -200,13 +210,6 @@ - - -Ant Tasks - - - - Archetype @@ -306,40 +309,39 @@ - http://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> + https://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> How Apache Works - http://www.apache.org/foundation/; class="externalLink" title="Foundation"> + https://www.apache.org/foundation/; class="externalLink" title="Foundation"> Foundation - http://www.apache.org/foundation/sponsorship.html; class="externalLink" title="Sponsoring Apache"> + https://www.apache.org/foundation/sponsorship.html; class="externalLink" title="Sponsoring Apache"> Sponsoring Apache - http://www.apache.org/foundation/thanks.html; class="externalLink" title="Thanks"> + https://www.apache.org/foundation/thanks.html; class="externalLink" title="Thanks"> Thanks - - + https://www.google.com/search; method="get" >
svn commit: r999063 [13/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/plugins.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/plugins.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/plugins.html Sat Oct 8 16:53:12 2016 @@ -1,31 +1,37 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + -Apache Maven PMD Plugin Project Build Plugins - +Apache Maven PMD Plugin Project Plugins + - + - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - + + + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-140879-1']); + _gaq.push(['_trackPageview']); + + (function() { +var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; +ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; +var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + + @@ -34,8 +40,8 @@ -http://www.apache.org/; id="bannerLeft"> - +https://www.apache.org/; id="bannerLeft"> + @@ -47,10 +53,9 @@ - - + -http://www.apache.org/; class="externalLink" title="Apache"> +https://www.apache.org/; class="externalLink" title="Apache"> Apache / @@ -64,18 +69,17 @@ Plugins / - - + + Apache Maven PMD Plugin / -Project Build Plugins +Project Plugins - - - | Last Published: 2015-12-13 + + | Last Published: 2016-10-08 -Version: 3.6 +Version: 3.7 @@ -85,8 +89,7 @@ - - + Overview @@ -135,6 +138,13 @@ + + +Multimodule Configuration + + + + Remove Report @@ -199,9 +209,9 @@ - + -Project Summary +Summary @@ -213,23 +223,23 @@ - + -Project Team +Team - + -Source Repository +Source Code Management - + -Issue Tracking +Issue Management @@ -262,9 +272,9 @@ - + -Continuous Integration +CI Management @@ -276,7 +286,7 @@ -Project Plugins +Plugins @@ -298,13 +308,6 @@ - - -Ant Tasks - - - - Archetype @@ -404,40 +407,39 @@ - http://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> + https://www.apache.org/foundation/how-it-works.html;
svn commit: r999063 [10/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/jspReport.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/jspReport.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/jspReport.html Sat Oct 8 16:53:12 2016 @@ -1,438 +1,419 @@ - - -http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - - - - - - - -Apache Maven PMD Plugin Analyzing JSP Code - - - - - - - - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - - - - - - - - - -http://www.apache.org/; id="bannerLeft"> - - - - - - - - - - - - - - - -http://www.apache.org/; class="externalLink" title="Apache"> -Apache -/ - - - -Maven -/ - - - -Plugins -/ - - - -Apache Maven PMD Plugin -/ - -Analyzing JSP Code - - - - | Last Published: 2015-12-13 - -Version: 3.6 - - - - - - - - - - - - -Overview - - - - - -Introduction - - - - - - -Goals - - - - - - -Usage - - - - - - -FAQ - - - - - http://www.apache.org/licenses/; class="externalLink" title="License"> - -License - - - - - - -Download - - Examples - - - - - -Remove Report - - - - - - -Target JDK - - - - - - -Using Rule Sets - - - - - - -Violation Checking - - - - - - -Analyzing JavaScript - - - - -Analyzing Java Server Pages - - - - - - -Violations Exclusions - - Project Documentation - - - - - -Project Information - - - - - - -Project Reports - - Maven Projects - - - - - -Ant Tasks - - - - - - -Archetype - - - - - - -Doxia - - - - -
svn commit: r999063 [16/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/overview-tree.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/overview-tree.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/overview-tree.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -Class Hierarchy (Apache Maven PMD Plugin 3.6 Test API) +Class Hierarchy (Apache Maven PMD Plugin 3.7 Test API) @@ -173,6 +173,6 @@ -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/package-list == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/package-list (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/package-list Sat Oct 8 16:53:12 2016 @@ -1,2 +1,2 @@ -org.apache.maven.plugin.pmd -org.apache.maven.plugin.pmd.stubs +org.apache.maven.plugin.pmd +org.apache.maven.plugin.pmd.stubs Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/usage.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/usage.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/usage.html Sat Oct 8 16:53:12 2016 @@ -1,7 +1,7 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> @@ -9,25 +9,31 @@ - + Apache Maven PMD Plugin Usage - + - + - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - + + + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-140879-1']); + _gaq.push(['_trackPageview']); + + (function() { +var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; +ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; +var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + + @@ -36,8 +42,8 @@ -http://www.apache.org/; id="bannerLeft"> - +https://www.apache.org/; id="bannerLeft"> + @@ -49,10 +55,9 @@ - - + -http://www.apache.org/; class="externalLink" title="Apache"> +https://www.apache.org/; class="externalLink" title="Apache"> Apache / @@ -66,18 +71,17 @@ Plugins / - - + + Apache Maven PMD Plugin / Usage - - - | Last Published: 2015-12-13 + + | Last Published: 2016-10-08 -Version: 3.6 +Version: 3.7 @@ -87,8 +91,7 @@ - - + Overview @@ -135,6 +138,13 @@ + + +Multimodule Configuration + + + +
svn commit: r999063 [8/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cla
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-convergence.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-convergence.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-convergence.html Sat Oct 8 16:53:12 2016 @@ -1,31 +1,37 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin Dependency Convergence - + - + - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - + + + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-140879-1']); + _gaq.push(['_trackPageview']); + + (function() { +var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; +ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; +var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + + @@ -34,8 +40,8 @@ -http://www.apache.org/; id="bannerLeft"> - +https://www.apache.org/; id="bannerLeft"> + @@ -47,10 +53,9 @@ - - + -http://www.apache.org/; class="externalLink" title="Apache"> +https://www.apache.org/; class="externalLink" title="Apache"> Apache / @@ -64,18 +69,17 @@ Plugins / - - + + Apache Maven PMD Plugin / Dependency Convergence - - - | Last Published: 2015-12-13 + + | Last Published: 2016-10-08 -Version: 3.6 +Version: 3.7 @@ -85,8 +89,7 @@ - - + Overview @@ -135,6 +138,13 @@ + + +Multimodule Configuration + + + + Remove Report @@ -199,9 +209,9 @@ - + -Project Summary +Summary @@ -213,23 +223,23 @@ - + -Project Team +Team - + -Source Repository +Source Code Management - + -Issue Tracking +Issue Management @@ -260,9 +270,9 @@ - + -Continuous Integration +CI Management @@ -274,9 +284,9 @@ - + -Project Plugins +Plugins @@ -298,13 +308,6 @@ - - -Ant Tasks - - - - Archetype @@ -404,40 +407,39 @@ - http://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> +
svn commit: r999063 [12/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/invoker-report.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/invoker-report.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/invoker-report.html Sat Oct 8 16:53:12 2016 @@ -1,31 +1,37 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin Invoker Report - + - + - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - + + + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-140879-1']); + _gaq.push(['_trackPageview']); + + (function() { +var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; +ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; +var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + + @@ -34,8 +40,8 @@ -http://www.apache.org/; id="bannerLeft"> - +https://www.apache.org/; id="bannerLeft"> + @@ -47,10 +53,9 @@ - - + -http://www.apache.org/; class="externalLink" title="Apache"> +https://www.apache.org/; class="externalLink" title="Apache"> Apache / @@ -64,18 +69,17 @@ Plugins / - - + + Apache Maven PMD Plugin / Invoker Report - - - | Last Published: 2015-12-13 + + | Last Published: 2016-10-08 -Version: 3.6 +Version: 3.7 @@ -85,8 +89,7 @@ - - + Overview @@ -135,6 +138,13 @@ + + +Multimodule Configuration + + + + Remove Report @@ -291,13 +301,6 @@ - - -Ant Tasks - - - - Archetype @@ -397,40 +400,39 @@ - http://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> + https://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> How Apache Works - http://www.apache.org/foundation/; class="externalLink" title="Foundation"> + https://www.apache.org/foundation/; class="externalLink" title="Foundation"> Foundation - http://www.apache.org/foundation/sponsorship.html; class="externalLink" title="Sponsoring Apache"> + https://www.apache.org/foundation/sponsorship.html; class="externalLink" title="Sponsoring Apache"> Sponsoring Apache - http://www.apache.org/foundation/thanks.html; class="externalLink" title="Thanks"> + https://www.apache.org/foundation/thanks.html; class="externalLink" title="Thanks"> Thanks - - + https://www.google.com/search; method="get" >
svn commit: r999063 [15/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/allclasses-frame.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/allclasses-frame.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/allclasses-frame.html Sat Oct 8 16:53:12 2016 @@ -1,9 +1,9 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -All Classes (Apache Maven PMD Plugin 3.6 Test API) +All Classes (Apache Maven PMD Plugin 3.7 Test API) Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/allclasses-noframe.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/allclasses-noframe.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/allclasses-noframe.html Sat Oct 8 16:53:12 2016 @@ -1,9 +1,9 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -All Classes (Apache Maven PMD Plugin 3.6 Test API) +All Classes (Apache Maven PMD Plugin 3.7 Test API) Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/constant-values.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/constant-values.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/constant-values.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -Constant Field Values (Apache Maven PMD Plugin 3.6 Test API) +Constant Field Values (Apache Maven PMD Plugin 3.7 Test API) @@ -110,6 +110,6 @@ -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/deprecated-list.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/deprecated-list.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/deprecated-list.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -Deprecated List (Apache Maven PMD Plugin 3.6 Test API) +Deprecated List (Apache Maven PMD Plugin 3.7 Test API) @@ -110,6 +110,6 @@ -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/help-doc.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/help-doc.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/help-doc.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -API Help (Apache Maven PMD Plugin 3.6 Test API) +API Help (Apache Maven PMD Plugin 3.7 Test API) @@ -215,6 +215,6 @@ -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/index-all.html
svn commit: r999063 [25/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReport.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReport.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReport.html Sat Oct 8 16:53:12 2016 @@ -35,624 +35,663 @@ 27 import java.io.PrintStream; 28 import java.io.Writer; 29 import java.util.ArrayList; -30 import java.util.Collections; -31 import java.util.List; -32 import java.util.Locale; -33 import java.util.Properties; -34 import java.util.ResourceBundle; -35 -36 import net.sourceforge.pmd.PMD; -37 import net.sourceforge.pmd.PMDConfiguration; -38 import net.sourceforge.pmd.Report; -39 import net.sourceforge.pmd.RuleContext; -40 import net.sourceforge.pmd.RulePriority; -41 import net.sourceforge.pmd.RuleSetFactory; -42 import net.sourceforge.pmd.RuleSetReferenceId; -43 import net.sourceforge.pmd.benchmark.Benchmarker; -44 import net.sourceforge.pmd.benchmark.TextReport; -45 import net.sourceforge.pmd.lang.LanguageRegistry; -46 import net.sourceforge.pmd.lang.LanguageVersion; -47 import net.sourceforge.pmd.renderers.CSVRenderer; -48 import net.sourceforge.pmd.renderers.HTMLRenderer; -49 import net.sourceforge.pmd.renderers.Renderer; -50 import net.sourceforge.pmd.renderers.TextRenderer; -51 import net.sourceforge.pmd.renderers.XMLRenderer; -52 import net.sourceforge.pmd.util.datasource.DataSource; -53 import net.sourceforge.pmd.util.datasource.FileDataSource; -54 -55 import org.apache.maven.doxia.sink.Sink; -56 import org.apache.maven.plugins.annotations.Component; -57 import org.apache.maven.plugins.annotations.Mojo; -58 import org.apache.maven.plugins.annotations.Parameter; -59 import org.apache.maven.plugins.annotations.ResolutionScope; -60 import org.apache.maven.reporting.MavenReportException; -61 import org.codehaus.plexus.resource.ResourceManager; -62 import org.codehaus.plexus.resource.loader.FileResourceCreationException; -63 import org.codehaus.plexus.resource.loader.FileResourceLoader; -64 import org.codehaus.plexus.resource.loader.ResourceNotFoundException; -65 import org.codehaus.plexus.util.FileUtils; -66 import org.codehaus.plexus.util.IOUtil; -67 import org.codehaus.plexus.util.ReaderFactory; -68 import org.codehaus.plexus.util.StringUtils; -69 -70 /** -71 * Creates a PMD report. -72 * -73 * @author Brett Porter -74 * @version $Id$ -75 * @since 2.0 -76 */ -77 @Mojo( name = "pmd", threadSafe = true, requiresDependencyResolution = ResolutionScope.TEST ) -78 public class PmdReport -79 extends AbstractPmdReport -80 { -81 /** -82 * The target JDK to analyze based on. Should match the target used in the compiler plugin. Valid values are -83 * currently code1.3/code, code1.4/code, code1.5/code, code1.6/code, code1.7/code and -84 * code1.8/code. -85 * p -86 * bNote:/b this parameter is only used if the language parameter is set to codejava/code. -87 * /p -88 */ -89 @Parameter( property = "targetJdk", defaultValue = "${maven.compiler.target}" ) -90 private String targetJdk; -91 -92 /** -93 * The programming language to be analyzed by PMD. Valid values are currently codejava/code, -94 * codejavascript/code and codejsp/code. -95 * -96 * @since 3.0 -97 */ -98 @Parameter( defaultValue = "java" ) -99 private String language; -100 -101 /** -102 * The rule priority threshold; rules with lower priority than this will not be evaluated. -103 * -104 * @since 2.1 -105 */ -106 @Parameter( property = "minimumPriority", defaultValue = "5" ) -107 private int minimumPriority = 5; -108 -109 /** -110 * Skip the PMD report generation. Most useful on the command line via "-Dpmd.skip=true". -111 * -112 * @since 2.1 -113 */ -114 @Parameter( property = "pmd.skip", defaultValue = "false" ) -115 private boolean skip; -116 -117 /** -118 * The PMD rulesets to use. See the a href="http://pmd.sourceforge.net/rules/index.html; target="alexandria_uri">http://pmd.sourceforge.net/rules/index.html"Stock Rulesets/a for a -119 * list of some included. Defaults to the java-basic, java-imports and java-unusedcode rulesets. -120 */ -121 @Parameter -122 private String[] rulesets = new String[] { "java-basic", "java-unusedcode", "java-imports" }; -123 -124 /** -125 * Controls whether the project's compile/test classpath should be passed to PMD to enable its type resolution -126 * feature. -127 * -128 * @since 3.0 -129 */ -130 @Parameter( property = "pmd.typeResolution", defaultValue =
svn commit: r999063 [11/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/violation-exclusions.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/violation-exclusions.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/violation-exclusions.html Sat Oct 8 16:53:12 2016 @@ -1,32 +1,38 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin Violation Exclusions - + - + - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - + + + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-140879-1']); + _gaq.push(['_trackPageview']); + + (function() { +var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; +ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; +var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + + @@ -35,8 +41,8 @@ -http://www.apache.org/; id="bannerLeft"> - +https://www.apache.org/; id="bannerLeft"> + @@ -48,10 +54,9 @@ - - + -http://www.apache.org/; class="externalLink" title="Apache"> +https://www.apache.org/; class="externalLink" title="Apache"> Apache / @@ -66,17 +71,16 @@ / - + Apache Maven PMD Plugin / Violation Exclusions - - - | Last Published: 2015-12-13 + + | Last Published: 2016-10-08 -Version: 3.6 +Version: 3.7 @@ -86,8 +90,7 @@ - - + Overview @@ -136,6 +139,13 @@ + + +Multimodule Configuration + + + + Remove Report @@ -199,13 +209,6 @@ - - -Ant Tasks - - - - Archetype @@ -305,40 +308,39 @@ - http://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> + https://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> How Apache Works - http://www.apache.org/foundation/; class="externalLink" title="Foundation"> + https://www.apache.org/foundation/; class="externalLink" title="Foundation"> Foundation - http://www.apache.org/foundation/sponsorship.html; class="externalLink" title="Sponsoring Apache"> + https://www.apache.org/foundation/sponsorship.html; class="externalLink" title="Sponsoring Apache"> Sponsoring Apache - http://www.apache.org/foundation/thanks.html; class="externalLink" title="Thanks"> + https://www.apache.org/foundation/thanks.html; class="externalLink" title="Thanks"> Thanks - - + https://www.google.com/search; method="get"
svn commit: r999063 [7/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cla
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependencies.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependencies.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependencies.html Sat Oct 8 16:53:12 2016 @@ -1,31 +1,37 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin Project Dependencies - + - + - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - + + + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-140879-1']); + _gaq.push(['_trackPageview']); + + (function() { +var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; +ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; +var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + + @@ -34,8 +40,8 @@ -http://www.apache.org/; id="bannerLeft"> - +https://www.apache.org/; id="bannerLeft"> + @@ -47,10 +53,9 @@ - - + -http://www.apache.org/; class="externalLink" title="Apache"> +https://www.apache.org/; class="externalLink" title="Apache"> Apache / @@ -64,18 +69,17 @@ Plugins / - - + + Apache Maven PMD Plugin / Project Dependencies - - - | Last Published: 2015-12-13 + + | Last Published: 2016-10-08 -Version: 3.6 +Version: 3.7 @@ -85,8 +89,7 @@ - - + Overview @@ -135,6 +138,13 @@ + + +Multimodule Configuration + + + + Remove Report @@ -199,9 +209,9 @@ - + -Project Summary +Summary @@ -213,23 +223,23 @@ - + -Project Team +Team - + -Source Repository +Source Code Management - + -Issue Tracking +Issue Management @@ -260,9 +270,9 @@ - + -Continuous Integration +CI Management @@ -274,9 +284,9 @@ - + -Project Plugins +Plugins @@ -298,13 +308,6 @@ - - -Ant Tasks - - - - Archetype @@ -404,40 +407,39 @@ - http://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> + https://www.apache.org/foundation/how-it-works.html;
svn commit: r999063 [20/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/AbstractPmdReport.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/AbstractPmdReport.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/AbstractPmdReport.html Sat Oct 8 16:53:12 2016 @@ -134,383 +134,432 @@ 126 private ListString includes; 127 128 /** -129 * The directories containing the sources to be compiled. -130 */ -131 @Parameter( defaultValue = "${project.compileSourceRoots}" ) -132 private ListString compileSourceRoots; -133 -134 /** -135 * The directories containing the test-sources to be compiled. -136 */ -137 @Parameter( defaultValue = "${project.testCompileSourceRoots}" ) -138 private ListString testSourceRoots; -139 -140 /** -141 * The project source directories that should be excluded. -142 * -143 * @since 2.2 -144 */ -145 @Parameter -146 private File[] excludeRoots; -147 -148 /** -149 * Run PMD on the tests. -150 * -151 * @since 2.2 -152 */ -153 @Parameter( defaultValue = "false" ) -154 protected boolean includeTests; -155 -156 /** -157 * Whether to build an aggregated report at the root, or build individual reports. -158 * -159 * @since 2.2 -160 */ -161 @Parameter( property = "aggregate", defaultValue = "false" ) -162 protected boolean aggregate; -163 -164 /** -165 * The file encoding to use when reading the Java sources. -166 * -167 * @since 2.3 -168 */ -169 @Parameter( property = "encoding", defaultValue = "${project.build.sourceEncoding}" ) -170 private String sourceEncoding; -171 -172 /** -173 * The file encoding when writing non-HTML reports. -174 * -175 * @since 2.5 -176 */ -177 @Parameter( property = "outputEncoding", defaultValue = "${project.reporting.outputEncoding}" ) -178 private String outputEncoding; -179 -180 /** -181 * The projects in the reactor for aggregation report. -182 */ -183 @Parameter( property = "reactorProjects", readonly = true ) -184 protected ListMavenProject reactorProjects; -185 -186 /** -187 * Whether to include the xml files generated by PMD/CPD in the site. -188 * -189 * @since 3.0 -190 */ -191 @Parameter( defaultValue = "false" ) -192 protected boolean includeXmlInSite; -193 -194 /** -195 * Skip the PMD/CPD report generation if there are no violations or duplications found. Defaults to -196 * codetrue/code. -197 * -198 * @since 3.1 -199 */ -200 @Parameter( defaultValue = "true" ) -201 protected boolean skipEmptyReport; -202 -203 /** The files that are being analyzed. */ -204 protected MapFile, PmdFileInfo filesToProcess; -205 -206 /** -207 * {@inheritDoc} -208 */ -209 @Override -210 protected MavenProject getProject() -211 { -212 return project; -213 } -214 -215 /** -216 * {@inheritDoc} -217 */ -218 @Override -219 protected Renderer getSiteRenderer() -220 { -221 return siteRenderer; -222 } -223 -224 protected String constructXRefLocation( boolean test ) -225 { -226 String location = null; -227 if ( linkXRef ) -228 { -229 File xrefLoc = test ? xrefTestLocation : xrefLocation; +129 * Specifies the location of the source directories to be used for PMD. +130 * Defaults to codeproject.compileSourceRoots/code. +131 * @since 3.7 +132 */ +133 @Parameter( defaultValue = "${project.compileSourceRoots}" ) +134 private ListString compileSourceRoots; +135 +136 /** +137 * The directories containing the test-sources to be used for PMD. +138 * Defaults to codeproject.testCompileSourceRoots/code +139 * @since 3.7 +140 */ +141 @Parameter( defaultValue = "${project.testCompileSourceRoots}" ) +142 private ListString testSourceRoots; +143 +144 /** +145 * The project source directories that should be excluded. +146 * +147 * @since 2.2 +148 */ +149 @Parameter +150 private File[] excludeRoots; +151 +152 /** +153 * Run PMD on the tests. +154 * +155 * @since 2.2 +156 */ +157 @Parameter( defaultValue = "false" ) +158 protected boolean includeTests; +159 +160 /** +161 * Whether to build an aggregated report at the root, or build individual reports. +162 * +163 * @since 2.2 +164 */ +165 @Parameter( property = "aggregate", defaultValue = "false" ) +166 protected boolean aggregate; +167 +168 /** +169
svn commit: r999063 [14/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
d=mms=60; alt="" /> dkulp Daniel Kulp @@ -558,7 +552,7 @@ ASF PMC Member -5 - + http://www.gravatar.com/avatar/efe7252f3b18253bf4318062ece95a3b?d=mms=60; alt="" /> evenisse Emmanuel Venisse @@ -566,15 +560,15 @@ ASF PMC Member +1 - -http://www.gravatar.com/avatar/5eb06f355d82f3267f3db16c6359601e?d=mms=60; alt="" /> -jdcasey -John Casey -mailto:jdca...@apache.org;>jdca...@apache.org -ASF -PMC Member --6 +http://www.gravatar.com/avatar/a52c0cfedf677c3dbf7ff1eaa4f3d8b4?d=mms=60; alt="" /> +ifedorenko +Igor Fedorenko +mailto:i...@ifedorenko.com;>i...@ifedorenko.com +Sonatype +PMC Member +-5 + http://www.gravatar.com/avatar/81f0dd51add422563de0b7ce828b0728?d=mms=60; alt="" /> jvanzyl Jason van Zyl @@ -582,7 +576,7 @@ - PMC Member -5 - + http://www.gravatar.com/avatar/a7a7de61eca1a5af56823753b1b3b838?d=mms=60; alt="" /> khmarbaise Karl Heinz Marbaise @@ -590,7 +584,7 @@ - PMC Member +1 - + http://www.gravatar.com/avatar/3c2ad6b6efb1c84d9ff60259f8c8ef95?d=mms=60; alt="" /> krosenvold Kristian Rosenvold @@ -598,14 +592,6 @@ - PMC Member +1 - -http://www.gravatar.com/avatar/7575e2568caf22d6613fc0c4c6653363?d=mms=60; alt="" /> -markh -Mark Hobson -mailto:ma...@apache.org;>ma...@apache.org -- -PMC Member -0 http://www.gravatar.com/avatar/?d=blankf=ys=60; alt="" /> mkleint @@ -615,14 +601,6 @@ PMC Member - -http://www.gravatar.com/avatar/?d=blankf=ys=60; alt="" /> -oching -Maria Odea B. Ching -- -- -PMC Member -- - http://www.gravatar.com/avatar/bab29f762bea8e578505424443d8cd41?d=mms=60; alt="" /> olamy Olivier Lamy @@ -630,6 +608,14 @@ - PMC Member Australia/Melbourne + +http://www.gravatar.com/avatar/f6caee604fc0ee8ffb030dcac691c9e3?d=mms=60; alt="" /> +michaelo +Michael Osipov +mailto:micha...@apache.org;>micha...@apache.org +- +PMC Member +Europe/Berlin http://www.gravatar.com/avatar/d035aeb839495240c58bbb03992ceda8?d=mms=60; alt="" /> rfscholte @@ -663,6 +649,14 @@ PMC Member 0 +http://www.gravatar.com/avatar/feb64254400eb261c6ba03afadd092a3?d=mms=60; alt="" /> +tibordigana +Tibor Digaa +mailto:tibordig...@apache.org;>tibordig...@apache.org +- +PMC Member +Europe/Bratislava + http://www.gravatar.com/avatar/6b3c87a9fd95fb1d0af16816a075224e?d=mms=60; alt="" /> vsiveton Vincent Siveton @@ -670,7 +664,7 @@ ASF PMC Member -5 - + http://www.gravatar.com/avatar/c662f616ca2c1b04d5ba7b96ca3b5171?d=mms=60; alt="" /> wfay Wayne Fay @@ -678,15 +672,15 @@ ASF PMC Member -6 - -http://www.gravatar.com/avatar/cbe8a9133ef3337eb267252a06f649bf?d=mms=60; alt="" /> -agudian -Andreas Gudian -mailto:agud...@apache.org;>agud...@apache.org + +http://www.gravatar.com/avatar/ea3935a08a086d01b5ee12fb2d6e923a?d=mms=60; alt="" /> +adangel +Andreas Dangel +mailto:adan...@apache.org;>adan...@apache.org - Committer Europe/Berlin - + http://www.gravatar.com/avatar/b44837697ce1ec56d63e7e851ee3967e?d=mms=60; alt="" /> andham Anders Hammar @@ -694,7 +688,7 @@ - Committer +1 - + http://www.gravatar.com/avatar/bb362cf0ab5e1d0068665a9d9f0167e7?d=mms=60; alt="" /> bdemers Brian Demers @@ -702,7 +696,7 @@ Sonatype Committer -5 - + http://www.gravatar.com/avatar/?d=blankf=ys=60; alt="" /> bellingard Fabrice Bellingard @@ -710,7 +704,7 @@ - Committer - - + http://www.gravatar.com/avatar/9a790b32ad665e9aa78988ba378250c1?d=mms=60; alt="" /> bentmann Benjamin Bentmann @@ -718,7 +712,7 @@ Sonatype Committer +1 - + http://www.gravatar.com/avatar/456da78808527c596ccd30fba769dd6d?d=mms=60; alt="" /> chrisgwarp Chris Graham @@ -726,7 +720,7 @@ - Committer Australia/Melbourne - + http://www.gravatar.com/avatar/be9859a805a76f3482204de9e95a7b6f?d=mms=60; alt="" /> dantran Dan Tran @@ -734,7 +728,7 @@ - Committer -8 - + http://www.gravatar.com/avatar/ea665d843e7e25fc1799a344fba022e0?d=mms=60; alt="" /> dbradicich Damian Bradicich @@ -742,6 +736,14 @@ Sonatype Committer -5 + +http://www.gravatar.com/avatar/1db61ec29963d4a77ef2275140144fd4?d=mms=60; alt="" /> +brett +Brett Porter +mailto:br...@apache.org;>br...@apache.org +ASF +Committer ++10 http://www.gravatar.com/avatar/be211eb53b665c51eb3f2e421bdc77cb?d=mms=60; alt="" /> dfabulich @@ -775,14 +777,6 @@ Committer 0 -http://www.gravatar.com/avatar/a52c0cfedf677c3dbf7ff1eaa4f3d8b4?d=mms=60; alt="" /> -ifedorenko -Igor Fedorenko -mailto:i...@ifedorenko.com;>i...@ifedorenko.com -Sonatype -Committer --5 - http://www.gravatar.com/avatar/f831da7fdd81e6abb2ef577b410b7787?d=mms=60; alt="" /> im
svn commit: r999063 [9/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cla
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-info.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-info.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-info.html Sat Oct 8 16:53:12 2016 @@ -1,31 +1,37 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin Dependency Information - + - + - - -https://www.google-analytics.com/urchin.js" type="text/javascript"> - - -_uacct = "UA-140879-1"; -urchinTracker(); - - + + + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-140879-1']); + _gaq.push(['_trackPageview']); + + (function() { +var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; +ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; +var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + + + @@ -34,8 +40,8 @@ -http://www.apache.org/; id="bannerLeft"> - +https://www.apache.org/; id="bannerLeft"> + @@ -47,10 +53,9 @@ - - + -http://www.apache.org/; class="externalLink" title="Apache"> +https://www.apache.org/; class="externalLink" title="Apache"> Apache / @@ -64,18 +69,17 @@ Plugins / - - + + Apache Maven PMD Plugin / Dependency Information - - - | Last Published: 2015-12-13 + + | Last Published: 2016-10-08 -Version: 3.6 +Version: 3.7 @@ -85,8 +89,7 @@ - - + Overview @@ -135,6 +138,13 @@ + + +Multimodule Configuration + + + + Remove Report @@ -199,9 +209,9 @@ - + -Project Summary +Summary @@ -211,23 +221,23 @@ - + -Project Team +Team - + -Source Repository +Source Code Management - + -Issue Tracking +Issue Management @@ -260,9 +270,9 @@ - + -Continuous Integration +CI Management @@ -274,9 +284,9 @@ - + -Project Plugins +Plugins @@ -298,13 +308,6 @@ - - -Ant Tasks - - - - Archetype @@ -404,40 +407,39 @@ - http://www.apache.org/foundation/how-it-works.html; class="externalLink" title="How Apache Works"> +
svn commit: r999063 [19/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdViolationCheckMojoTest.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdViolationCheckMojoTest.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdViolationCheckMojoTest.html Sat Oct 8 16:53:12 2016 @@ -159,13 +159,13 @@ 151 new File( getBasedir(), 152 "src/test/resources/unit/default-configuration/pmd-check-pmd-exclusions-configuration-plugin-config.xml" ); 153 final PmdViolationCheckMojo pmdViolationMojo = (PmdViolationCheckMojo) lookupMojo( "check", testPom ); -154 pmdViolationMojo.execute(); -155 -156 assertTrue( true ); +154 +155 // this call shouldn't throw an exception, as the classes with violations have been excluded +156 pmdViolationMojo.execute(); 157 } 158 } -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-frame.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-frame.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-frame.html Sat Oct 8 16:53:12 2016 @@ -3,7 +3,7 @@ - Apache Maven PMD Plugin 3.6 Reference Package org.apache.maven.plugin.pmd + Apache Maven PMD Plugin 3.7 Reference Package org.apache.maven.plugin.pmd Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-summary.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-summary.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-summary.html Sat Oct 8 16:53:12 2016 @@ -3,7 +3,7 @@ - Apache Maven PMD Plugin 3.6 Reference Package org.apache.maven.plugin.pmd + Apache Maven PMD Plugin 3.7 Reference Package org.apache.maven.plugin.pmd @@ -88,7 +88,7 @@ - Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. + Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/stubs/CustomConfigurationMavenProjectStub.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/stubs/CustomConfigurationMavenProjectStub.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/stubs/CustomConfigurationMavenProjectStub.html Sat Oct 8 16:53:12 2016 @@ -49,7 +49,7 @@ 41 { 42 private Build build; 43 -44 private ListReportPlugin reportPlugins = new ArrayListReportPlugin(); +44 private ListReportPlugin reportPlugins = new ArrayList(); 45 46 public CustomConfigurationMavenProjectStub() 47 { @@ -88,7 +88,7 @@ 80 setReportPlugins( model.getReporting().getPlugins() ); 81 82 String basedir = getBasedir().getAbsolutePath(); -83 ListString compileSourceRoots = new ArrayListString(); +83 ListString compileSourceRoots = new ArrayList(); 84 compileSourceRoots.add( basedir + "/src/test/resources/unit/custom-configuration/custom/configuration" ); 85 setCompileSourceRoots( compileSourceRoots ); 86 @@ -128,6 +128,6 @@ 120 } -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \
svn commit: r999063 [23/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/CpdReportGenerator.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/CpdReportGenerator.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/CpdReportGenerator.html Sat Oct 8 16:53:12 2016 @@ -227,6 +227,6 @@ 219 } -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/CpdViolationCheckMojo.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/CpdViolationCheckMojo.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/CpdViolationCheckMojo.html Sat Oct 8 16:53:12 2016 @@ -30,211 +30,123 @@ 22 import java.io.File; 23 import java.io.FileReader; 24 import java.io.IOException; -25 import java.io.LineNumberReader; -26 import java.util.ArrayList; -27 import java.util.HashSet; -28 import java.util.List; -29 import java.util.Set; -30 -31 import org.apache.maven.plugin.MojoExecutionException; -32 import org.apache.maven.plugin.MojoFailureException; -33 import org.apache.maven.plugin.pmd.model.CpdErrorDetail; -34 import org.apache.maven.plugin.pmd.model.CpdFile; -35 import org.apache.maven.plugin.pmd.model.Duplication; -36 import org.apache.maven.plugin.pmd.model.io.xpp3.CpdXpp3Reader; -37 import org.apache.maven.plugins.annotations.Execute; -38 import org.apache.maven.plugins.annotations.LifecyclePhase; -39 import org.apache.maven.plugins.annotations.Mojo; -40 import org.apache.maven.plugins.annotations.Parameter; -41 import org.codehaus.plexus.util.xml.pull.XmlPullParserException; -42 -43 /** -44 * Fail the build if there were any CPD violations in the source code. -45 * -46 * @version $Id$ -47 * @since 2.0 -48 */ -49 @Mojo( name = "cpd-check", defaultPhase = LifecyclePhase.VERIFY, threadSafe = true ) -50 @Execute( goal = "cpd" ) -51 public class CpdViolationCheckMojo -52 extends AbstractPmdViolationCheckMojoDuplication -53 { -54 -55 /** -56 * Skip the CPD violation checks. Most useful on the command line via "-Dcpd.skip=true". -57 */ -58 @Parameter( property = "cpd.skip", defaultValue = "false" ) -59 private boolean skip; -60 -61 private final ListSetString exclusionList = new ArrayListSetString(); -62 -63 /** -64 * Whether to fail the build if the validation check fails. -65 * -66 * @since 3.0 -67 */ -68 @Parameter( property = "cpd.failOnViolation", defaultValue = "true", required = true ) -69 protected boolean failOnViolation; -70 -71 /** -72 * {@inheritDoc} -73 */ -74 public void execute() -75 throws MojoExecutionException, MojoFailureException -76 { -77 if ( !skip ) -78 { -79 executeCheck( "cpd.xml", "duplication", "CPD duplication", 10 ); -80 } -81 } -82 -83 /** -84 * {@inheritDoc} -85 */ -86 @Override -87 protected void printError( Duplication item, String severity ) -88 { -89 int lines = item.getLines(); -90 -91 StringBuilder buff = new StringBuilder( 100 ); -92 buff.append( "CPD " ).append( severity ).append( ": Found " ); -93 buff.append( lines ).append( " lines of duplicated code at locations:" ); -94 this.getLog().info( buff.toString() ); -95 -96 for ( CpdFile file : item.getFiles() ) -97 { -98 buff.setLength( 0 ); -99 buff.append( "" ); -100 buff.append( file.getPath() ); -101 buff.append( " line " ).append( file.getLine() ); -102 this.getLog().info( buff.toString() ); -103 } -104 -105 this.getLog().debug( "CPD " + severity + ": Code Fragment " ); -106 this.getLog().debug( item.getCodefragment() ); -107 } -108 -109 /** -110 * {@inheritDoc} -111 */ -112 @Override -113 protected ListDuplication getErrorDetails( File cpdFile ) -114 throws XmlPullParserException, IOException -115 { -116 CpdXpp3Reader reader = new CpdXpp3Reader(); -117 CpdErrorDetail details = reader.read( new FileReader( cpdFile ), false ); -118 return details.getDuplications();
svn commit: r999063 [24/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdCollectingRenderer.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdCollectingRenderer.html (added) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdCollectingRenderer.html Sat Oct 8 16:53:12 2016 @@ -0,0 +1,165 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + +PmdCollectingRenderer xref + + + +View Javadoc +1 package org.apache.maven.plugin.pmd; +2 +3 /* +4* Licensed to the Apache Software Foundation (ASF) under one +5* or more contributor license agreements. See the NOTICE file +6* distributed with this work for additional information +7* regarding copyright ownership. The ASF licenses this file +8* to you under the Apache License, Version 2.0 (the +9* "License"); you may not use this file except in compliance +10 * with the License. You may obtain a copy of the License at +11 * +12 * http://www.apache.org/licenses/LICENSE-2.; target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0 +13 * +14 * Unless required by applicable law or agreed to in writing, +15 * software distributed under the License is distributed on an +16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +17 * KIND, either express or implied. See the License for the +18 * specific language governing permissions and limitations +19 * under the License. +20 */ +21 +22 import java.io.IOException; +23 import java.util.ArrayList; +24 import java.util.Collections; +25 import java.util.Iterator; +26 import java.util.List; +27 +28 import net.sourceforge.pmd.Report; +29 import net.sourceforge.pmd.Report.ProcessingError; +30 import net.sourceforge.pmd.RuleViolation; +31 import net.sourceforge.pmd.renderers.AbstractRenderer; +32 import net.sourceforge.pmd.util.datasource.DataSource; +33 +34 import org.codehaus.plexus.util.StringUtils; +35 +36 +37 /** +38 * A PMD renderer, that collects all violations and processing errors +39 * from a pmd execution. +40 * +41 * @author Andreas Dangel +42 */ +43 public class PmdCollectingRenderer extends AbstractRenderer +44 { +45 private ListProcessingError errors = Collections.synchronizedList( new ArrayListProcessingError() ); +46 private ListRuleViolation violations = Collections.synchronizedList( new ArrayListRuleViolation() ); +47 +48 /** +49 * Collects all reports from all threads. +50 */ +51 public PmdCollectingRenderer() +52 { +53 super( PmdCollectingRenderer.class.getSimpleName(), "Collects all reports from all threads" ); +54 } +55 +56 @Override +57 public void renderFileReport( Report report ) throws IOException +58 { +59 for ( RuleViolation v : report ) +60 { +61 violations.add( v ); +62 } +63 for ( IteratorProcessingError it = report.errors(); it.hasNext(); ) +64 { +65 errors.add( it.next() ); +66 } +67 } +68 +69 /** +70 * Checks whether any violations have been found. +71 * @return codetrue/code if at least one violations has been found +72 */ +73 public boolean hasViolations() +74 { +75 return !violations.isEmpty(); +76 } +77 +78 /** +79 * Gets the list of all found violations. +80 * @return the violations +81 */ +82 public ListRuleViolation getViolations() +83 { +84 return violations; +85 } +86 +87 /** +88 * Checks whether any processing errors have been found. +89 * @return codetrue/code if any errors have been found +90 */ +91 public boolean hasErrors() +92 { +93 return !errors.isEmpty(); +94 } +95 +96 /** +97 * Gets all the processing errors. +98 * @return the errors +99 */ +100 public ListProcessingError getErrors() +101 { +102 return errors; +103 } +104 +105 /** +106 * Gets the errors as a single string. Each error is in its own line. +107 * @return the errors as string +108 */ +109 public String getErrorsAsString() +110 { +111 ListString errorsAsString = new ArrayList( errors.size() ); +112 for ( ProcessingError error : errors ) +113 { +114 errorsAsString.add( error.getFile() + ": " + error.getMsg() ); +115 } +116 return StringUtils.join( errorsAsString.toArray(), System.getProperty( "line.separator" ) ); +117 } +118 +119 /** +120 * Create a new single report with all violations for further rendering
svn commit: r999063 [18/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdReportTest.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdReportTest.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdReportTest.html Sat Oct 8 16:53:12 2016 @@ -32,414 +32,447 @@ 24 import java.io.FileReader; 25 import java.io.IOException; 26 import java.net.URL; -27 import java.util.Locale; -28 -29 import org.apache.commons.io.IOUtils; -30 import org.codehaus.plexus.util.FileUtils; -31 import org.codehaus.plexus.util.IOUtil; -32 -33 import com.github.tomakehurst.wiremock.WireMockServer; -34 import com.github.tomakehurst.wiremock.client.WireMock; -35 -36 /** -37 * @author a href="mailto:och...@apache.org; target="alexandria_uri">mailto:och...@apache.org"Maria Odea Ching/a -38 * @version $Id$ -39 */ -40 public class PmdReportTest -41 extends AbstractPmdReportTest -42 { -43 /** -44 * {@inheritDoc} -45 */ -46 @Override -47 protected void setUp() -48 throws Exception -49 { -50 super.setUp(); -51 FileUtils.deleteDirectory( new File( getBasedir(), "target/test/unit" ) ); -52 } -53 -54 public void testDefaultConfiguration() -55 throws Exception -56 { -57 FileUtils.copyDirectoryStructure( new File( getBasedir(), -58 "src/test/resources/unit/default-configuration/jxr-files" ), -59 new File( getBasedir(), "target/test/unit/default-configuration/target/site" ) ); -60 -61 File testPom = -62 new File( getBasedir(), -63 "src/test/resources/unit/default-configuration/default-configuration-plugin-config.xml" ); -64 PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom ); -65 mojo.execute(); -66 -67 // check if the PMD files were generated -68 File generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/pmd.xml" ); -69 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -70 -71 // check if the rulesets, that have been applied, have been copied -72 generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/java-basic.xml" ); -73 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -74 -75 generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/java-imports.xml" ); -76 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -77 -78 generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/java-unusedcode.xml" ); -79 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -80 -81 generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/site/pmd.html" ); -82 renderer( mojo, generatedFile ); -83 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -84 -85 // check if there's a link to the JXR files -86 String str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/pmd.html" ) ); -87 -88 assertTrue( str.contains( "/xref/def/configuration/App.html#L31" ) ); -89 -90 assertTrue( str.contains( "/xref/def/configuration/AppSample.html#L45" ) ); -91 } -92 -93 public void testJavascriptConfiguration() -94 throws Exception -95 { -96 File testPom = -97 new File( getBasedir(), -98 "src/test/resources/unit/default-configuration/javascript-configuration-plugin-config.xml" ); -99 PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom ); -100 mojo.execute(); -101 -102 // check if the PMD files were generated -103 File generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/pmd.xml" ); -104 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -105 -106 // these are the rulesets, that have been applied... -107 generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/ecmascript-basic.xml" ); -108 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -109 -110 generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/ecmascript-braces.xml" ); -111 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -112
svn commit: r999063 [3/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cla
Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdCollectingRenderer.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdCollectingRenderer.html (added) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdCollectingRenderer.html Sat Oct 8 16:53:12 2016 @@ -0,0 +1,483 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + + + +PmdCollectingRenderer (Apache Maven PMD Plugin 3.7 API) + + + + + + +JavaScript is disabled on your browser. + + + + + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +Prev Class +Next Class + + +Frames +No Frames + + +All Classes + + + + + + + +Summary: +Nested| +Field| +Constr| +Method + + +Detail: +Field| +Constr| +Method + + + + + + + + +org.apache.maven.plugin.pmd +Class PmdCollectingRenderer + + + +http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true; title="class or interface in java.lang">java.lang.Object + + +http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/AbstractPropertySource.html?is-external=true; title="class or interface in net.sourceforge.pmd">net.sourceforge.pmd.AbstractPropertySource + + +http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/renderers/AbstractRenderer.html?is-external=true; title="class or interface in net.sourceforge.pmd.renderers">net.sourceforge.pmd.renderers.AbstractRenderer + + +org.apache.maven.plugin.pmd.PmdCollectingRenderer + + + + + + + + + + + +All Implemented Interfaces: +http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/PropertySource.html?is-external=true; title="class or interface in net.sourceforge.pmd">PropertySource, http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/renderers/Renderer.html?is-external=true; title="class or interface in net.sourceforge.pmd.renderers">Renderer + + + +public class PmdCollectingRenderer +extends http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/renderers/AbstractRenderer.html?is-external=true; title="class or interface in net.sourceforge.pmd.renderers">AbstractRenderer +A PMD renderer, that collects all violations and processing errors + from a pmd execution. +Author: + Andreas Dangel + + + + + + + + + + + +Field Summary + + + + +Fields inherited from classnet.sourceforge.pmd.renderers.http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/renderers/AbstractRenderer.html?is-external=true; title="class or interface in net.sourceforge.pmd.renderers">AbstractRenderer +http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/renderers/AbstractRenderer.html?is-external=true#description; title="class or interface in net.sourceforge.pmd.renderers">description, http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/renderers/AbstractRenderer.html?is-external=true#name; title="class or interface in net.sourceforge.pmd.renderers">name, http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/renderers/AbstractRenderer.html?is-external=true#propertyDefinitions; title="class or interface in net.sourceforge.pmd.renderers">propertyDefinitions, http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/renderers/AbstractRenderer.html?is-external=true#showSuppressedViolations; title="class or interface in net.sourceforge.pmd.renderers">showSuppressedViolations, http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/renderers/AbstractRenderer.html?is-externa l=true#writer" title="class or interface in net.sourceforge.pmd.renderers">writer + + + + + +Fields inherited from classnet.sourceforge.pmd.http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/AbstractPropertySource.html?is-external=true; title="class or interface in net.sourceforge.pmd">AbstractPropertySource +http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/AbstractPropertySource.html?is-external=true#propertyDescriptors; title="class or interface in net.sourceforge.pmd">propertyDescriptors, http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/AbstractPropertySource.html?is-external=true#propertyValuesByDescriptor; title="class or interface in net.sourceforge.pmd">propertyValuesByDescriptor + + + + + + + + +Constructor Summary + +Constructors + +Constructor and Description + + +PmdCollectingRenderer() +Collects all reports from all threads. + + + + + + + + + + +Method
svn commit: r999063 [2/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cla
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -AbstractPmdViolationCheckMojo (Apache Maven PMD Plugin 3.6 API) +AbstractPmdViolationCheckMojo (Apache Maven PMD Plugin 3.7 API) @@ -171,10 +171,14 @@ extends http://maven.apache.org Constructors -Constructor and Description +Modifier +Constructor and Description -AbstractPmdViolationCheckMojo() +protected +AbstractPmdViolationCheckMojo(ExcludeFromFileDexcludeFromFile) +Initialize this abstact check mojo by giving the correct ExcludeFromFile helper. + @@ -209,17 +213,9 @@ extends http://maven.apache.org getPriority(DerrorDetail) -protected abstract boolean -isExcludedFromFailure(DerrorDetail) - - boolean isFailOnViolation() - -protected abstract void -loadExcludeFromFailuresData(http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">StringexcludeFromFailureFile) - protected abstract ViolationDetailsD newViolationDetailsInstance() @@ -322,13 +318,15 @@ protectedorg.apache.maven.project. Constructor Detail - + AbstractPmdViolationCheckMojo -publicAbstractPmdViolationCheckMojo() +protectedAbstractPmdViolationCheckMojo(ExcludeFromFileDexcludeFromFile) +Initialize this abstact check mojo by giving the correct ExcludeFromFile helper. +Parameters:excludeFromFile - the needed helper, for the specific violation type @@ -356,18 +354,6 @@ protectedorg.apache.maven.project. http://maven.apache.org/maven-plugin-api/apidocs/org/apache/maven/plugin/MojoExecutionException.html?is-external=true; title="class or interface in org.apache.maven.plugin">MojoExecutionException - - - - - -loadExcludeFromFailuresData -protected abstractvoidloadExcludeFromFailuresData(http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">StringexcludeFromFailureFile) - throws http://maven.apache.org/maven-plugin-api/apidocs/org/apache/maven/plugin/MojoExecutionException.html?is-external=true; title="class or interface in org.apache.maven.plugin">MojoExecutionException -Throws: -http://maven.apache.org/maven-plugin-api/apidocs/org/apache/maven/plugin/MojoExecutionException.html?is-external=true; title="class or interface in org.apache.maven.plugin">MojoExecutionException - - @@ -379,17 +365,6 @@ protectedorg.apache.maven.project. protected abstractintgetPriority(DerrorDetail) - - - - - - - -isExcludedFromFailure -protected abstractbooleanisExcludedFromFailure(DerrorDetail) - - @@ -432,12 +407,12 @@ protectedorg.apache.maven.project. getErrorDetails protected abstracthttp://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true; title="class or interface in java.util">ListDgetErrorDetails(http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true; title="class or interface in java.io">FileanalisysFile) -throws http://plexus.codehaus.org/plexus-utils/apidocs/org/codehaus/plexus/util/xml/pull/XmlPullParserException.html?is-external=true; title="class or interface in org.codehaus.plexus.util.xml.pull">XmlPullParserException, +throws http://codehaus-plexus.github.io/plexus-utils/apidocs/org/codehaus/plexus/util/xml/pull/XmlPullParserException.html?is-external=true; title="class or interface in org.codehaus.plexus.util.xml.pull">XmlPullParserException, http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true; title="class or interface in java.io">IOException Gets the attributes and text for the violation tag and puts them in a HashMap Parameters:analisysFile - Throws: -http://plexus.codehaus.org/plexus-utils/apidocs/org/codehaus/plexus/util/xml/pull/XmlPullParserException.html?is-external=true; title="class or interface in org.codehaus.plexus.util.xml.pull">XmlPullParserException
svn commit: r999063 [22/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/CpdReport.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/CpdReport.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/CpdReport.html Sat Oct 8 16:53:12 2016 @@ -34,387 +34,418 @@ 26 import java.io.OutputStreamWriter; 27 import java.io.UnsupportedEncodingException; 28 import java.io.Writer; -29 import java.util.Locale; -30 import java.util.Properties; -31 import java.util.ResourceBundle; -32 -33 import net.sourceforge.pmd.cpd.CPD; -34 import net.sourceforge.pmd.cpd.CPDConfiguration; -35 import net.sourceforge.pmd.cpd.CSVRenderer; -36 import net.sourceforge.pmd.cpd.EcmascriptLanguage; -37 import net.sourceforge.pmd.cpd.JSPLanguage; -38 import net.sourceforge.pmd.cpd.JavaLanguage; -39 import net.sourceforge.pmd.cpd.JavaTokenizer; -40 import net.sourceforge.pmd.cpd.Language; -41 import net.sourceforge.pmd.cpd.LanguageFactory; -42 import net.sourceforge.pmd.cpd.Renderer; -43 import net.sourceforge.pmd.cpd.XMLRenderer; -44 -45 import org.apache.maven.plugins.annotations.Mojo; -46 import org.apache.maven.plugins.annotations.Parameter; -47 import org.apache.maven.reporting.MavenReportException; -48 import org.codehaus.plexus.util.FileUtils; -49 import org.codehaus.plexus.util.IOUtil; -50 import org.codehaus.plexus.util.StringUtils; -51 import org.codehaus.plexus.util.WriterFactory; -52 -53 /** -54 * Creates a report for PMD's CPD tool. See a -55 * href="http://pmd.sourceforge.net/cpd.html; target="alexandria_uri">http://pmd.sourceforge.net/cpd.html"http://pmd.sourceforge.net/cpd.html; target="alexandria_uri">http://pmd.sourceforge.net/cpd.html/a for more detail. -56 * -57 * @author Mike Perham -58 * @version $Id$ -59 * @since 2.0 -60 */ -61 @Mojo( name = "cpd", threadSafe = true ) -62 public class CpdReport -63 extends AbstractPmdReport -64 { -65 /** -66 * The programming language to be analyzed by CPD. Valid values are currently codejava/code, -67 * codejavascript/code or codejsp/code. -68 * -69 * @since 3.5 -70 */ -71 @Parameter( defaultValue = "java" ) -72 private String language; -73 -74 /** -75 * The minimum number of tokens that need to be duplicated before it causes a violation. -76 */ -77 @Parameter( property = "minimumTokens", defaultValue = "100" ) -78 private int minimumTokens; -79 -80 /** -81 * Skip the CPD report generation. Most useful on the command line via "-Dcpd.skip=true". -82 * -83 * @since 2.1 -84 */ -85 @Parameter( property = "cpd.skip", defaultValue = "false" ) -86 private boolean skip; -87 -88 /** -89 * If true, CPD ignores literal value differences when evaluating a duplicate block. This means that -90 * codefoo=42;/code and codefoo=43;/code will be seen as equivalent. You may want to run PMD with this -91 * option off to start with and then switch it on to see what it turns up. -92 * -93 * @since 2.5 -94 */ -95 @Parameter( property = "cpd.ignoreLiterals", defaultValue = "false" ) -96 private boolean ignoreLiterals; -97 -98 /** -99 * Similar to codeignoreLiterals/code but for identifiers; i.e., variable names, methods names, and so forth. -100 * -101 * @since 2.5 -102 */ -103 @Parameter( property = "cpd.ignoreIdentifiers", defaultValue = "false" ) -104 private boolean ignoreIdentifiers; -105 -106 /** The CPD instance used to analyze the files. Will itself collect the duplicated code matches. */ -107 private CPD cpd; -108 -109 /** -110 * {@inheritDoc} -111 */ -112 public String getName( Locale locale ) -113 { -114 return getBundle( locale ).getString( "report.cpd.name" ); -115 } -116 -117 /** -118 * {@inheritDoc} -119 */ -120 public String getDescription( Locale locale ) -121 { -122 return getBundle( locale ).getString( "report.cpd.description" ); -123 } -124 -125 /** -126 * {@inheritDoc} -127 */ -128 @Override -129 public void executeReport( Locale locale ) -130 throws MavenReportException -131 { -132 try -133 { -134 execute( locale ); -135 } -136 finally -137 { -138 if ( getSink() != null ) -139 { -140 getSink().close(); -141 } +29 import java.util.ArrayList; +30 import java.util.Iterator; +31 import java.util.List; +32 import java.util.Locale; +33 import java.util.Properties; +34 import java.util.ResourceBundle; +35 +36 import
svn commit: r999063 [21/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.html Sat Oct 8 16:53:12 2016 @@ -37,271 +37,270 @@ 29 import org.apache.maven.plugin.MojoFailureException; 30 import org.apache.maven.plugins.annotations.Parameter; 31 import org.apache.maven.project.MavenProject; -32 import org.codehaus.plexus.util.StringUtils; -33 import org.codehaus.plexus.util.xml.pull.XmlPullParserException; -34 -35 /** -36 * Base class for mojos that check if there were any PMD violations. -37 * -38 * @param D type of the check, e.g. {@link Violation} or {@link Duplication}. -39 * @author a href="mailto:br...@apache.org; target="alexandria_uri">mailto:br...@apache.org"Brett Porter/a -40 * @version $Id$ -41 */ -42 public abstract class AbstractPmdViolationCheckMojoD -43 extends AbstractMojo -44 { -45 /** -46 * The location of the XML report to check, as generated by the PMD report. -47 */ -48 @Parameter( property = "project.build.directory", required = true ) -49 private File targetDirectory; -50 -51 /** -52 * Whether to fail the build if the validation check fails. -53 */ -54 @Parameter( property = "pmd.failOnViolation", defaultValue = "true", required = true ) -55 protected boolean failOnViolation; -56 -57 /** -58 * The project language, for determining whether to run the report. -59 */ -60 @Parameter( property = "project.artifact.artifactHandler.language", required = true, readonly = true ) -61 private String language; -62 -63 /** -64 * Whether to build an aggregated report at the root, or build individual reports. -65 * -66 * @since 2.2 -67 */ -68 @Parameter( property = "aggregate", defaultValue = "false" ) -69 protected boolean aggregate; -70 -71 /** -72 * Print details of check failures to build output. -73 */ -74 @Parameter( property = "pmd.verbose", defaultValue = "false" ) -75 private boolean verbose; -76 -77 /** -78 * Print details of errors that cause build failure -79 * -80 * @since 3.0 -81 */ -82 @Parameter( property = "pmd.printFailingErrors", defaultValue = "false" ) -83 private boolean printFailingErrors; -84 -85 /** -86 * File that lists classes and rules to be excluded from failures For PMD, this is a properties file For CPD, this -87 * is a text file that contains comma-separated lists of classes that are allowed to duplicate -88 * -89 * @since 3.0 -90 */ -91 @Parameter( property = "pmd.excludeFromFailureFile", defaultValue = "" ) -92 private String excludeFromFailureFile; -93 -94 /** -95 * The project to analyze. -96 */ -97 @Parameter( defaultValue = "${project}", readonly = true, required = true ) -98 protected MavenProject project; -99 -100 protected void executeCheck( final String filename, final String tagName, final String key, -101 final int failurePriority ) -102 throws MojoFailureException, MojoExecutionException -103 { -104 if ( aggregate !project.isExecutionRoot() ) -105 { -106 return; -107 } -108 -109 if ( "pom".equals( project.getPackaging() ) !aggregate ) -110 { -111 return; -112 } -113 -114 if ( !StringUtils.isEmpty( excludeFromFailureFile ) ) -115 { -116 loadExcludeFromFailuresData( excludeFromFailureFile ); -117 } -118 final File outputFile = new File( targetDirectory, filename ); -119 -120 if ( outputFile.exists() ) -121 { -122 try -123 { -124 final ViolationDetailsD violations = getViolations( outputFile, failurePriority ); -125 -126 final ListD failures = violations.getFailureDetails(); -127 final ListD warnings = violations.getWarningDetails(); -128 -129 if ( verbose ) -130 { -131 printErrors( failures, warnings ); -132 } -133 -134 final int failureCount = failures.size(); -135 final int warningCount = warnings.size(); -136 -137 final String message = getMessage( failureCount, warningCount, key, outputFile ); -138 -139 getLog().debug( "PMD failureCount: " + failureCount + ",
svn commit: r999063 [5/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cla
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/package-summary.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/package-summary.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/package-summary.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -org.apache.maven.plugin.pmd (Apache Maven PMD Plugin 3.6 API) +org.apache.maven.plugin.pmd (Apache Maven PMD Plugin 3.7 API) @@ -67,6 +67,21 @@ + +Interface Summary + +Interface +Description + + + +ExcludeFromFileD + + + + + + Class Summary @@ -105,33 +120,48 @@ +ExcludeDuplicationsFromFile + +This class contains utility methods to load property files which define which files + should be excluded from the CPD duplication results. + + + +ExcludeViolationsFromFile + +This class contains utility for loading property files, which define which PMD violations + from which classes should be ignored and not cause a failure. + + + HelpMojo Display help information on maven-pmd-plugin. +PmdCollectingRenderer + +A PMD renderer, that collects all violations and processing errors + from a pmd execution. + + + PmdFileInfo - + PmdReport Creates a PMD report. - + PmdReportGenerator Render the PMD violations into Doxia events. - -PmdReportListener - -Handle events from PMD and collect violations. - - PmdViolationCheckMojo @@ -194,6 +224,6 @@ -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/package-tree.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/package-tree.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/package-tree.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -org.apache.maven.plugin.pmd Class Hierarchy (Apache Maven PMD Plugin 3.6 API) +org.apache.maven.plugin.pmd Class Hierarchy (Apache Maven PMD Plugin 3.7 API) @@ -94,14 +94,28 @@ org.apache.maven.plugin.pmd.HelpMojo +net.sourceforge.pmd.http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/AbstractPropertySource.html?is-external=true; title="class or interface in net.sourceforge.pmd">AbstractPropertySource (implements net.sourceforge.pmd.http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/PropertySource.html?is-external=true; title="class or interface in net.sourceforge.pmd">PropertySource) + +net.sourceforge.pmd.renderers.http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/renderers/AbstractRenderer.html?is-external=true; title="class or interface in net.sourceforge.pmd.renderers">AbstractRenderer (implements net.sourceforge.pmd.renderers.http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/renderers/Renderer.html?is-external=true; title="class or interface in net.sourceforge.pmd.renderers">Renderer) + +org.apache.maven.plugin.pmd.PmdCollectingRenderer + + + + org.apache.maven.plugin.pmd.CpdReportGenerator +org.apache.maven.plugin.pmd.ExcludeDuplicationsFromFile (implements org.apache.maven.plugin.pmd.ExcludeFromFileD) +org.apache.maven.plugin.pmd.ExcludeViolationsFromFile (implements org.apache.maven.plugin.pmd.ExcludeFromFileD) org.apache.maven.plugin.pmd.PmdFileInfo org.apache.maven.plugin.pmd.PmdReportGenerator -org.apache.maven.plugin.pmd.PmdReportListener (implements net.sourceforge.pmd.http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/ReportListener.html?is-external=true; title="class or interface in net.sourceforge.pmd">ReportListener) org.apache.maven.plugin.pmd.ViolationDetailsD +Interface Hierarchy +
svn commit: r999063 [17/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/CpdReportTest.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/CpdReportTest.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/CpdReportTest.html Sat Oct 8 16:53:12 2016 @@ -34,18 +34,18 @@ 26 import java.util.ArrayList; 27 import java.util.Iterator; 28 import java.util.List; -29 import java.util.Locale; -30 -31 import javax.xml.parsers.DocumentBuilder; -32 import javax.xml.parsers.DocumentBuilderFactory; -33 -34 import net.sourceforge.pmd.cpd.CPD; -35 import net.sourceforge.pmd.cpd.CPDConfiguration; -36 import net.sourceforge.pmd.cpd.JavaLanguage; -37 import net.sourceforge.pmd.cpd.Mark; -38 import net.sourceforge.pmd.cpd.Match; -39 import net.sourceforge.pmd.cpd.TokenEntry; -40 +29 +30 import javax.xml.parsers.DocumentBuilder; +31 import javax.xml.parsers.DocumentBuilderFactory; +32 +33 import net.sourceforge.pmd.cpd.CPD; +34 import net.sourceforge.pmd.cpd.CPDConfiguration; +35 import net.sourceforge.pmd.cpd.JavaLanguage; +36 import net.sourceforge.pmd.cpd.Mark; +37 import net.sourceforge.pmd.cpd.Match; +38 import net.sourceforge.pmd.cpd.TokenEntry; +39 +40 import org.apache.commons.lang3.StringUtils; 41 import org.codehaus.plexus.util.FileUtils; 42 import org.w3c.dom.Document; 43 @@ -91,253 +91,267 @@ 83 84 // check the contents of cpd.html 85 String str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ) ); -86 assertTrue( str.toLowerCase().contains( "AppSample.java".toLowerCase() ) ); +86 assertTrue( lowerCaseContains( str, "AppSample.java" ) ); 87 88 str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ) ); -89 assertTrue( str.toLowerCase().contains( "App.java".toLowerCase() ) ); +89 assertTrue( lowerCaseContains( str, "App.java" ) ); 90 91 str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ) ); -92 assertTrue( str.toLowerCase().contains( "public String dup( String str )".toLowerCase() ) ); +92 assertTrue( lowerCaseContains( str, "public String dup( String str )" ) ); 93 94 str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ) ); -95 assertTrue( str.toLowerCase().contains( "tmp = tmp + str.substring( i, i + 1);".toLowerCase() ) ); -96 -97 } -98 -99 /** -100 * Test CPDReport using custom configuration -101 * -102 * @throws Exception -103 */ -104 public void testCustomConfiguration() -105 throws Exception -106 { -107 File testPom = -108 new File( getBasedir(), -109 "src/test/resources/unit/custom-configuration/cpd-custom-configuration-plugin-config.xml" ); -110 CpdReport mojo = (CpdReport) lookupMojo( "cpd", testPom ); -111 mojo.execute(); -112 -113 // check if the CPD files were generated -114 File generatedFile = new File( getBasedir(), "target/test/unit/custom-configuration/target/cpd.csv" ); -115 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -116 -117 generatedFile = new File( getBasedir(), "target/test/unit/custom-configuration/target/site/cpd.html" ); -118 renderer( mojo, generatedFile ); -119 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -120 -121 // Contents that should NOT be in the report -122 String str = readFile( new File( getBasedir(), "target/test/unit/custom-configuration/target/site/cpd.html" ) ); -123 assertTrue( !str.toLowerCase().contains( "/Sample.java".toLowerCase() ) ); -124 -125 str = readFile( new File( getBasedir(), "target/test/unit/custom-configuration/target/site/cpd.html" ) ); -126 assertTrue( !str.toLowerCase().contains( "public void duplicateMethod( int i )".toLowerCase() ) ); -127 -128 // Contents that should be in the report -129 str = readFile( new File( getBasedir(), "target/test/unit/custom-configuration/target/site/cpd.html" ) ); -130 assertTrue( str.toLowerCase().contains( "AnotherSample.java".toLowerCase() ) ); -131 -132 str = readFile( new File( getBasedir(), "target/test/unit/custom-configuration/target/site/cpd.html" ) ); -133 assertTrue( str.toLowerCase().contains( "public static void main( String[] args )".toLowerCase() ) ); -134 -135 str = readFile( new File( getBasedir(),
svn commit: r999063 [4/26] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cla
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/HelpMojo.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/HelpMojo.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/HelpMojo.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -Uses of Class org.apache.maven.plugin.pmd.HelpMojo (Apache Maven PMD Plugin 3.6 API) +Uses of Class org.apache.maven.plugin.pmd.HelpMojo (Apache Maven PMD Plugin 3.7 API) @@ -110,6 +110,6 @@ -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdCollectingRenderer.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdCollectingRenderer.html (added) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdCollectingRenderer.html Sat Oct 8 16:53:12 2016 @@ -0,0 +1,115 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + + + +Uses of Class org.apache.maven.plugin.pmd.PmdCollectingRenderer (Apache Maven PMD Plugin 3.7 API) + + + + + + +JavaScript is disabled on your browser. + + + + + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +Prev +Next + + +Frames +No Frames + + +All Classes + + + + + + + + + + +Uses of Classorg.apache.maven.plugin.pmd.PmdCollectingRenderer + +No usage of org.apache.maven.plugin.pmd.PmdCollectingRenderer + + + + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +Prev +Next + + +Frames +No Frames + + +All Classes + + + + + + + + + +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. + + \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdFileInfo.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdFileInfo.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdFileInfo.html Sat Oct 8 16:53:12 2016 @@ -1,15 +1,15 @@ http://www.w3.org/TR/html4/loose.dtd;> - + -Uses of Class org.apache.maven.plugin.pmd.PmdFileInfo (Apache Maven PMD Plugin 3.6 API) +Uses of Class org.apache.maven.plugin.pmd.PmdFileInfo (Apache Maven PMD Plugin 3.7 API) @@ -194,6 +194,6 @@ -Copyright 20052015 http://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdReport.html
svn commit: r999501 - /websites/production/maven/components/plugins/maven-pmd-plugin/
Author: adangel Date: Sun Oct 16 08:24:35 2016 New Revision: 999501 Log: Publish new site (m-pmd-p 3.7). Added: websites/production/maven/components/plugins/maven-pmd-plugin/ - copied from r999500, websites/production/maven/components/plugins-archives/maven-pmd-plugin-3.7/
svn commit: r999499 - /websites/production/maven/components/plugins-archives/maven-pmd-plugin-3.7/
Author: adangel Date: Sun Oct 16 08:23:03 2016 New Revision: 999499 Log: Archive versioned site (m-pmd-p 3.7) Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-3.7/ - copied from r999498, websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/
svn commit: r1011460 [12/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/c
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReportGenerator.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReportGenerator.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReportGenerator.html Mon May 1 07:24:19 2017 @@ -331,6 +331,6 @@ 323 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdViolationCheckMojo.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdViolationCheckMojo.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdViolationCheckMojo.html Mon May 1 07:24:19 2017 @@ -179,6 +179,6 @@ 171 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/ViolationDetails.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/ViolationDetails.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/ViolationDetails.html Mon May 1 07:24:19 2017 @@ -77,6 +77,6 @@ 69 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/CpdErrorDetail.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/CpdErrorDetail.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/CpdErrorDetail.html Mon May 1 07:24:19 2017 @@ -110,6 +110,6 @@ 102 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/CpdFile.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/CpdFile.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/CpdFile.html Mon May 1 07:24:19 2017 @@ -85,6 +85,6 @@ 77 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/Duplication.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/Duplication.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/Duplication.html Mon May 1 07:24:19 2017 @@ -160,6 +160,6 @@ 152 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/model/PmdErrorDetail.html
svn commit: r1011460 [5/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/javascriptReport.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/javascriptReport.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/javascriptReport.html Mon May 1 07:24:19 2017 @@ -1,6 +1,6 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> @@ -9,7 +9,7 @@ - + Apache Maven PMD Plugin Analyzing JavaScript Code @@ -79,9 +79,9 @@ Analyzing JavaScript Code - | Last Published: 2016-10-08 + | Last Published: 2017-05-01 -Version: 3.7 +Version: 3.8 @@ -378,7 +378,7 @@ plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId -version3.7/version +version3.8/version configuration languagejavascript/language rulesets @@ -408,7 +408,7 @@ - Copyright 20052016 + Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/jspReport.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/jspReport.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/jspReport.html Mon May 1 07:24:19 2017 @@ -1,6 +1,6 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> @@ -9,7 +9,7 @@ - + Apache Maven PMD Plugin Analyzing JSP Code @@ -79,9 +79,9 @@ Analyzing JSP Code - | Last Published: 2016-10-08 + | Last Published: 2017-05-01 -Version: 3.7 +Version: 3.8 @@ -378,7 +378,7 @@ plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId -version3.7/version +version3.8/version configuration languagejsp/language rulesets @@ -406,7 +406,7 @@ - Copyright 20052016 + Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/multi-module-config.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/multi-module-config.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/examples/multi-module-config.html Mon May 1 07:24:19 2017 @@ -1,6 +1,6 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> @@ -8,7 +8,7 @@ - + Apache Maven PMD Plugin Multimodule Configuration @@ -78,9 +78,9 @@ Multimodule Configuration - | Last Published: 2016-10-08 + | Last Published: 2017-05-01 -Version: 3.7 +Version: 3.8 @@ -436,7 +436,7 @@ plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId -version3.7/version +version3.8/version configuration rulesets rulesetwhizbang/pmd-ruleset.xml/ruleset @@ -465,7 +465,7 @@ plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId -version3.7/version +version3.8/version configuration rulesets rulesetwhizbang/pmd-ruleset.xml/ruleset @@ -497,7 +497,7 @@ - Copyright 20052016 + Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All
svn commit: r1011460 [10/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/c
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdViolationCheckMojoTest.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdViolationCheckMojoTest.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdViolationCheckMojoTest.html Mon May 1 07:24:19 2017 @@ -166,6 +166,6 @@ 158 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-frame.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-frame.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-frame.html Mon May 1 07:24:19 2017 @@ -3,7 +3,7 @@ - Apache Maven PMD Plugin 3.7 Reference Package org.apache.maven.plugin.pmd + Apache Maven PMD Plugin 3.8 Reference Package org.apache.maven.plugin.pmd Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-summary.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-summary.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/package-summary.html Mon May 1 07:24:19 2017 @@ -3,7 +3,7 @@ - Apache Maven PMD Plugin 3.7 Reference Package org.apache.maven.plugin.pmd + Apache Maven PMD Plugin 3.8 Reference Package org.apache.maven.plugin.pmd @@ -88,7 +88,7 @@ - Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. + Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/stubs/CustomConfigurationMavenProjectStub.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/stubs/CustomConfigurationMavenProjectStub.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/stubs/CustomConfigurationMavenProjectStub.html Mon May 1 07:24:19 2017 @@ -128,6 +128,6 @@ 120 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/stubs/DefaultArtifactHandlerStub.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/stubs/DefaultArtifactHandlerStub.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/stubs/DefaultArtifactHandlerStub.html Mon May 1 07:24:19 2017 @@ -57,6 +57,6 @@ 49 } -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/stubs/DefaultConfigurationMavenProjectStub.html == ---
svn commit: r1011460 [1/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Author: adangel Date: Mon May 1 07:24:19 2017 New Revision: 1011460 Log: Site checkin for project Apache Maven PMD Plugin Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/allclasses-frame.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/allclasses-noframe.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/constant-values.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/deprecated-list.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/help-doc.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/index-all.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/index.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/AbstractPmdReport.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/AbstractPmdViolationCheckMojo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/CpdReport.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/CpdReportGenerator.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/CpdViolationCheckMojo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/ExcludeDuplicationsFromFile.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/ExcludeFromFile.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/ExcludeViolationsFromFile.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/HelpMojo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdCollectingRenderer.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdFileInfo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdReport.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdReportGenerator.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdViolationCheckMojo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/ViolationDetails.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/AbstractPmdReport.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/AbstractPmdViolationCheckMojo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/CpdReport.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/CpdReportGenerator.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/CpdViolationCheckMojo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/ExcludeDuplicationsFromFile.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/ExcludeFromFile.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/ExcludeViolationsFromFile.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/HelpMojo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdCollectingRenderer.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdFileInfo.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use/PmdReport.html websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/class-use
svn commit: r1011460 [9/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdReportTest.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdReportTest.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/PmdReportTest.html Mon May 1 07:24:19 2017 @@ -99,232 +99,232 @@ 91 assertTrue( str.contains( "/xref/def/configuration/AppSample.html#L45" ) ); 92 } 93 -94 public void testJavascriptConfiguration() -95 throws Exception +94 public void testDefaultConfigurationWithAnalysisCache() +95 throws Exception 96 { -97 File testPom = -98 new File( getBasedir(), -99 "src/test/resources/unit/default-configuration/javascript-configuration-plugin-config.xml" ); -100 PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom ); -101 mojo.execute(); -102 -103 // check if the PMD files were generated -104 File generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/pmd.xml" ); -105 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); +97 FileUtils.copyDirectoryStructure( new File( getBasedir(), +98 "src/test/resources/unit/default-configuration/jxr-files" ), +99 new File( getBasedir(), "target/test/unit/pmd-with-analysis-cache-plugin-config/target/site" ) ); +100 +101 File testPom = +102 new File( getBasedir(), +103 "src/test/resources/unit/default-configuration/pmd-with-analysis-cache-plugin-config.xml" ); +104 PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom ); +105 mojo.execute(); 106 -107 // these are the rulesets, that have been applied... -108 generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/ecmascript-basic.xml" ); -109 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -110 -111 generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/ecmascript-braces.xml" ); -112 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -113 -114 generatedFile = -115 new File( getBasedir(), "target/test/unit/default-configuration/target/ecmascript-unnecessary.xml" ); -116 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -117 -118 generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/site/pmd.html" ); -119 renderer( mojo, generatedFile ); -120 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -121 -122 String str = readFile( generatedFile ); -123 assertTrue( str.contains( "Avoid using global variables" ) ); -124 } -125 -126 public void testFileURL() -127 throws Exception -128 { -129 FileUtils.copyDirectoryStructure( new File( getBasedir(), -130 "src/test/resources/unit/default-configuration/jxr-files" ), -131 new File( getBasedir(), "target/test/unit/default-configuration/target/site" ) ); -132 -133 File testPom = -134 new File( getBasedir(), -135 "src/test/resources/unit/default-configuration/default-configuration-plugin-config.xml" ); -136 PmdReport mojo = (PmdReport) lookupMojo( "pmd", testPom ); -137 -138 // Additional test case for MPMD-174 (http://jira.codehaus.org/browse/MPMD-174). -139 WireMockServer mockServer = new WireMockServer( 3456 ); -140 mockServer.start(); -141 -142 String sonarRuleset = -143 IOUtils.toString( getClass().getClassLoader().getResourceAsStream( "unit/default-configuration/rulesets/sonar-way-ruleset.xml" ), -144 StandardCharsets.UTF_8 ); -145 -146 String sonarMainPageHtml = -147 IOUtils.toString( getClass().getClassLoader().getResourceAsStream( "unit/default-configuration/rulesets/sonar-main-page.html" ), -148 StandardCharsets.UTF_8 ); -149 -150 final String sonarBaseUrl = "/profiles"; -151 final String sonarProfileUrl = sonarBaseUrl + "/export?format=pmdlanguage=javaname=Sonar%2520way"; -152 final String sonarExportRulesetUrl = "http://localhost:; + mockServer.port() + sonarProfileUrl; -153 -154 mockServer.stubFor( WireMock.get( WireMock.urlEqualTo( sonarBaseUrl ) ).willReturn(
svn commit: r1011460 [8/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/CpdReportTest.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/CpdReportTest.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref-test/org/apache/maven/plugin/pmd/CpdReportTest.html Mon May 1 07:24:19 2017 @@ -38,270 +38,270 @@ 30 import javax.xml.parsers.DocumentBuilder; 31 import javax.xml.parsers.DocumentBuilderFactory; 32 -33 import net.sourceforge.pmd.cpd.CPD; -34 import net.sourceforge.pmd.cpd.CPDConfiguration; -35 import net.sourceforge.pmd.cpd.JavaLanguage; -36 import net.sourceforge.pmd.cpd.Mark; -37 import net.sourceforge.pmd.cpd.Match; -38 import net.sourceforge.pmd.cpd.TokenEntry; -39 -40 import org.apache.commons.lang3.StringUtils; -41 import org.codehaus.plexus.util.FileUtils; -42 import org.w3c.dom.Document; -43 -44 /** -45 * @author a href="mailto:och...@apache.org; target="alexandria_uri">mailto:och...@apache.org"Maria Odea Ching/a -46 * @version $Id$ -47 */ -48 public class CpdReportTest -49 extends AbstractPmdReportTest -50 { -51 /** -52 * {@inheritDoc} -53 */ -54 @Override -55 protected void setUp() -56 throws Exception -57 { -58 super.setUp(); -59 FileUtils.deleteDirectory( new File( getBasedir(), "target/test/unit" ) ); -60 } -61 -62 /** -63 * Test CPDReport given the default configuration -64 * -65 * @throws Exception -66 */ -67 public void testDefaultConfiguration() -68 throws Exception -69 { -70 File testPom = -71 new File( getBasedir(), -72 "src/test/resources/unit/default-configuration/cpd-default-configuration-plugin-config.xml" ); -73 CpdReport mojo = (CpdReport) lookupMojo( "cpd", testPom ); -74 mojo.execute(); -75 -76 // check if the CPD files were generated -77 File generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/cpd.xml" ); -78 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -79 -80 generatedFile = new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ); -81 renderer( mojo, generatedFile ); -82 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -83 -84 // check the contents of cpd.html -85 String str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ) ); -86 assertTrue( lowerCaseContains( str, "AppSample.java" ) ); -87 -88 str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ) ); -89 assertTrue( lowerCaseContains( str, "App.java" ) ); -90 -91 str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ) ); -92 assertTrue( lowerCaseContains( str, "public String dup( String str )" ) ); -93 -94 str = readFile( new File( getBasedir(), "target/test/unit/default-configuration/target/site/cpd.html" ) ); -95 assertTrue( lowerCaseContains( str, "tmp = tmp + str.substring( i, i + 1);" ) ); -96 } -97 -98 /** -99 * Test CPDReport using custom configuration -100 * -101 * @throws Exception -102 */ -103 public void testCustomConfiguration() -104 throws Exception -105 { -106 File testPom = -107 new File( getBasedir(), -108 "src/test/resources/unit/custom-configuration/cpd-custom-configuration-plugin-config.xml" ); -109 CpdReport mojo = (CpdReport) lookupMojo( "cpd", testPom ); -110 mojo.execute(); -111 -112 // check if the CPD files were generated -113 File generatedFile = new File( getBasedir(), "target/test/unit/custom-configuration/target/cpd.csv" ); -114 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -115 -116 generatedFile = new File( getBasedir(), "target/test/unit/custom-configuration/target/site/cpd.html" ); -117 renderer( mojo, generatedFile ); -118 assertTrue( FileUtils.fileExists( generatedFile.getAbsolutePath() ) ); -119 -120 // Contents that should NOT be in the report -121 String str = readFile( new File( getBasedir(), "target/test/unit/custom-configuration/target/site/cpd.html" ) ); -122 assertFalse( lowerCaseContains( str, "/Sample.java" ) ); -123 -124 str = readFile( new File( getBasedir(), "target/test/unit/custom-configuration/target/site/cpd.html" ) ); -125
svn commit: r1011460 [4/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-convergence.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-convergence.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/dependency-convergence.html Mon May 1 07:24:19 2017 @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin Dependency Convergence @@ -77,9 +77,9 @@ Dependency Convergence - | Last Published: 2016-10-08 + | Last Published: 2017-05-01 -Version: 3.7 +Version: 3.8 @@ -477,19 +477,19 @@ Number of dependencies (NOD): -110 +109 Number of unique artifacts (NOA): 142 Number of version-conflicting artifacts (NOC): -18 +19 Number of SNAPSHOT artifacts (NOS): 0 Convergence (NOD/NOA): -77 % +76 % Ready for release (100% convergence and no SNAPSHOTS): ErrorYou do not have 100% convergence. @@ -505,11 +505,11 @@ 1.1 -org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.7\-org.apache.maven.plugin-testing:maven-plugin-testing-harness:jar:1.3:test\-org.apache.maven:maven-core:jar:2.2.1:test\-(classworlds:classworlds:jar:1.1:test - omitted for conflict with 1.1-alpha-2) +org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.8\-org.apache.maven.plugin-testing:maven-plugin-testing-harness:jar:1.3:test\-org.apache.maven:maven-core:jar:2.2.1:test\-(classworlds:classworlds:jar:1.1:test - omitted for conflict with 1.1-alpha-2) 1.1-alpha-2 -org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.7+-org.apache.maven:maven-project:jar:2.2.1:compile|\-org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile|\-classworlds:classworlds:jar:1.1-alpha-2:compile\-org.apache.maven.plugin-testing:maven-plugin-testing-harness:jar:1.3:test\-org.apache.maven:maven-core:jar:2.2.1:test\-org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:test\-(classworlds:classworlds:jar:1.1-alpha-2:test - omitted for duplicate) +org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.8+-org.apache.maven:maven-project:jar:2.2.1:compile|\-org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile|\-classworlds:classworlds:jar:1.1-alpha-2:compile\-org.apache.maven.plugin-testing:maven-plugin-testing-harness:jar:1.3:test\-org.apache.maven:maven-core:jar:2.2.1:test\-org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:test\-(classworlds:classworlds:jar:1.1-alpha-2:test - omitted for duplicate) com.fasterxml.jackson.core:jackson-annotations @@ -520,11 +520,11 @@ 2.4.0 -org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.7\-com.github.tomakehurst:wiremock:jar:1.52:test\-com.fasterxml.jackson.core:jackson-databind:jar:2.4.2:test\-(com.fasterxml.jackson.core:jackson-annotations:jar:2.4.0:test - omitted for conflict with 2.4.2) +org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.8\-com.github.tomakehurst:wiremock:jar:1.52:test\-com.fasterxml.jackson.core:jackson-databind:jar:2.4.2:test\-(com.fasterxml.jackson.core:jackson-annotations:jar:2.4.0:test - omitted for conflict with 2.4.2) 2.4.2 -org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.7\-com.github.tomakehurst:wiremock:jar:1.52:test\-com.fasterxml.jackson.core:jackson-annotations:jar:2.4.2:test +org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.8\-com.github.tomakehurst:wiremock:jar:1.52:test\-com.fasterxml.jackson.core:jackson-annotations:jar:2.4.2:test commons-codec:commons-codec @@ -535,11 +535,11 @@ 1.2 -org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.7\-org.apache.maven.plugin-testing:maven-plugin-testing-harness:jar:1.3:test\-org.apache.maven:maven-core:jar:2.2.1:test\-org.apache.maven.wagon:wagon-webdav-jackrabbit:jar:1.0-beta-6:test\-org.apache.jackrabbit:jackrabbit-webdav:jar:1.5.0:test\-commons-httpclient:commons-httpclient:jar:3.0:test\-(commons-codec:commons-codec:jar:1.2:test - omitted for conflict with 1.3) +org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.8\-org.apache.maven.plugin-testing:maven-plugin-testing-harness:jar:1.3:test\-org.apache.maven:maven-core:jar:2.2.1:test\-org.apache.maven.wagon:wagon-webdav-jackrabbit:jar:1.0-beta-6:test\-org.apache.jackrabbit:jackrabbit-webdav:jar:1.5.0:test\-commons-httpclient:commons-httpclient:jar:3.0:test\-(commons-codec:commons-codec:jar:1.2:test - omitted for conflict with 1.3) 1.6 -org.apache.maven.plugins:maven-pmd-plugin:maven-plugin:3.7\-org.apache.httpcomponents:httpclient:jar:4.3.5:test (scope not updated to compile)\-commons-codec:commons-codec:jar:1.6:test
svn commit: r1011460 [7/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/DefaultArtifactHandlerStub.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/DefaultArtifactHandlerStub.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/DefaultArtifactHandlerStub.html Mon May 1 07:24:19 2017 @@ -3,13 +3,13 @@ -Uses of Class org.apache.maven.plugin.pmd.stubs.DefaultArtifactHandlerStub (Apache Maven PMD Plugin 3.7 Test API) +Uses of Class org.apache.maven.plugin.pmd.stubs.DefaultArtifactHandlerStub (Apache Maven PMD Plugin 3.8 Test API) @@ -110,6 +110,6 @@ -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/DefaultConfigurationMavenProjectStub.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/DefaultConfigurationMavenProjectStub.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/DefaultConfigurationMavenProjectStub.html Mon May 1 07:24:19 2017 @@ -3,13 +3,13 @@ -Uses of Class org.apache.maven.plugin.pmd.stubs.DefaultConfigurationMavenProjectStub (Apache Maven PMD Plugin 3.7 Test API) +Uses of Class org.apache.maven.plugin.pmd.stubs.DefaultConfigurationMavenProjectStub (Apache Maven PMD Plugin 3.8 Test API) @@ -110,6 +110,6 @@ -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/InvalidFormatMavenProjectStub.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/InvalidFormatMavenProjectStub.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/InvalidFormatMavenProjectStub.html Mon May 1 07:24:19 2017 @@ -3,13 +3,13 @@ -Uses of Class org.apache.maven.plugin.pmd.stubs.InvalidFormatMavenProjectStub (Apache Maven PMD Plugin 3.7 Test API) +Uses of Class org.apache.maven.plugin.pmd.stubs.InvalidFormatMavenProjectStub (Apache Maven PMD Plugin 3.8 Test API) @@ -110,6 +110,6 @@ -Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugin/pmd/stubs/class-use/PmdPluginArtifactStub.html == ---
svn commit: r1011460 [6/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/surefire-report.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/surefire-report.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/surefire-report.html Mon May 1 07:24:19 2017 @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin Surefire Report @@ -77,9 +77,9 @@ Surefire Report - | Last Published: 2016-10-08 + | Last Published: 2017-05-01 -Version: 3.7 +Version: 3.8 @@ -488,12 +488,12 @@ function toggleDisplay(elementId) { Success Rate Time -34 +35 0 0 0 100% -6.276 +6.19 Note: failures are anticipated and checked for with assertions while errors are unanticipated. Package List @@ -509,12 +509,12 @@ function toggleDisplay(elementId) { Time org.apache.maven.plugin.pmd -34 +35 0 0 0 100% -6.276 +6.19 Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers. org.apache.maven.plugin.pmd @@ -529,23 +529,23 @@ function toggleDisplay(elementId) { Success Rate Time - -PmdReportTest -15 + +CpdViolationCheckMojoTest +4 0 0 0 100% -2.602 +0.179 - -CpdViolationCheckMojoTest -4 + +PmdReportTest +16 0 0 0 100% -1.561 +3.411 CpdReportTest @@ -554,7 +554,7 @@ function toggleDisplay(elementId) { 0 0 100% -1.121 +2.199 PmdViolationCheckMojoTest @@ -563,158 +563,162 @@ function toggleDisplay(elementId) { 0 0 100% -0.992 +0.401 Test Cases [Summary] [Package List] [Test Cases] -PmdReportTest +CpdViolationCheckMojoTest -testCustomConfiguration -0.327 +testDefaultConfiguration +0.027 -testInvalidFormat -0.145 +testExclusionsConfiguration +0.056 -testSkipEmptyReportConfiguration -0.113 +testNotFailOnViolation +0.078 -testEmptyReportConfiguration -0.167 +testException +0.018 + +PmdReportTest + -testDefaultConfiguration -0.197 +testDefaultConfigurationWithAnalysisCache +0.492 -testJspConfiguration -0.136 +testJavascriptConfiguration +0.243 -testPMDProcessingError -0.065 +testSkipConfiguration +0.023 -testPMDExcludeRootsShouldExcludeSubdirectories -0.107 +testInvalidTargetJdk +0.023 -testViolationExclusion -0.16 +testLocationTemp +0.024 -testJavascriptConfiguration -0.197 +testSuppressMarkerConfiguration +0.211 -testFileURL -0.712 +testJspConfiguration +0.17 -testSkipConfiguration -0.022 +testPMDProcessingError +0.071 -testInvalidTargetJdk -0.021 +testPMDExcludeRootsShouldExcludeSubdirectories +0.122 -testLocationTemp -0.022 +testViolationExclusion +0.204 -testSuppressMarkerConfiguration -0.211 - -CpdViolationCheckMojoTest - +testDefaultConfiguration +0.305 + + +testEmptyReportConfiguration +0.137 -testException -0.323 +testFileURL +0.967 -testNotFailOnViolation -0.938 +testCustomConfiguration +0.246 -testDefaultConfiguration -0.091 +testInvalidFormat +0.087 -testExclusionsConfiguration -0.2 +testSkipEmptyReportConfiguration +0.086 CpdReportTest -testCustomConfiguration -0.223 +testDefaultConfiguration +1.262 -testInvalidFormat -0.044 +testEmptyReportConfiguration +0.162 -testWriteNonHtml -0.07 +testCpdEncodingConfiguration +0.18 -testSkipEmptyReportConfiguration -0.049 +testCpdJavascriptConfiguration +0.142 -testEmptyReportConfiguration -0.128 +testCpdJspConfiguration +0.096 -testCpdEncodingConfiguration -0.104 +testExclusionsConfiguration +0.089 -testCpdJavascriptConfiguration -0.111 +testWriteNonHtml +0.045 -testCpdJspConfiguration -0.115 +testCustomConfiguration +0.14 -testDefaultConfiguration -0.176 +testInvalidFormat +0.034 -testExclusionsConfiguration -0.1 +testSkipEmptyReportConfiguration +0.03 PmdViolationCheckMojoTest -testException -0.03 +testViolationExclusion +0.154 -testNotFailOnViolation -0.469 - - testDefaultConfiguration 0.021 + + +testNotFailOnViolation +0.103 testFailurePriority -0.234 +0.105 -testViolationExclusion -0.237 +testException +0.017 @@ -724,7 +728,7 @@ function toggleDisplay(elementId) { - Copyright 20052016 + Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/taglist.html
svn commit: r1011460 [11/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/c
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReport.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReport.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugin/pmd/PmdReport.html Mon May 1 07:24:19 2017 @@ -140,7 +140,7 @@ 132 * 133 * @since 3.0 134 */ -135 @Parameter( property = "pmd.typeResolution", defaultValue = "false" ) +135 @Parameter( property = "pmd.typeResolution", defaultValue = "true" ) 136 private boolean typeResolution; 137 138 /** @@ -190,508 +190,537 @@ 182 private boolean skipPmdError; 183 184 /** -185 * {@inheritDoc} -186 */ -187 public String getName( Locale locale ) -188 { -189 return getBundle( locale ).getString( "report.pmd.name" ); -190 } -191 -192 /** -193 * {@inheritDoc} -194 */ -195 public String getDescription( Locale locale ) -196 { -197 return getBundle( locale ).getString( "report.pmd.description" ); -198 } -199 -200 public void setRulesets( String[] rules ) -201 { -202 rulesets = rules; -203 } -204 -205 /** -206 * {@inheritDoc} -207 */ -208 @Override -209 public void executeReport( Locale locale ) -210 throws MavenReportException +185 * Enables the analysis cache, which speeds up PMD. This +186 * requires a cache file, that contains the results of the last +187 * PMD run. Thus the cache is only effective, if this file is +188 * not cleaned between runs. +189 * +190 * @since 3.8 +191 */ +192 @Parameter( property = "pmd.analysisCache", defaultValue = "false" ) +193 private boolean analysisCache; +194 +195 /** +196 * The location of the analysis cache, if it is enabled. +197 * This file contains the results of the last PMD run and must not be cleaned +198 * between consecutive PMD runs. Otherwise the cache is not in use. +199 * If the file doesn't exist, PMD executes as if there is no cache enabled and +200 * all files are analyzed. Otherwise only changed files will be analyzed again. +201 * +202 * @since 3.8 +203 */ +204 @Parameter( property = "pmd.analysisCacheLocation", defaultValue = "${project.build.directory}/pmd/pmd.cache" ) +205 private String analysisCacheLocation; +206 +207 /** +208 * {@inheritDoc} +209 */ +210 public String getName( Locale locale ) 211 { -212 try -213 { -214 execute( locale ); -215 } -216 finally -217 { -218 if ( getSink() != null ) -219 { -220 getSink().close(); -221 } -222 } -223 } -224 -225 private void execute( Locale locale ) -226 throws MavenReportException -227 { -228 if ( !skip canGenerateReport() ) -229 { -230 ClassLoader origLoader = Thread.currentThread().getContextClassLoader(); -231 try -232 { -233 Thread.currentThread().setContextClassLoader( this.getClass().getClassLoader() ); -234 -235 Report report = generateReport( locale ); -236 -237 if ( !isHtml() !isXml() ) -238 { -239 writeNonHtml( report ); -240 } -241 } -242 finally -243 { -244 Thread.currentThread().setContextClassLoader( origLoader ); -245 } -246 } -247 } -248 -249 @Override -250 public boolean canGenerateReport() -251 { -252 if ( skip ) -253 { -254 return false; -255 } -256 -257 boolean result = super.canGenerateReport(); -258 if ( result ) -259 { -260 try -261 { -262 executePmdWithClassloader(); -263 if ( skipEmptyReport ) -264 { -265 result = renderer.hasViolations(); -266 if ( result ) -267 { -268 getLog().debug( "Skipping report since skipEmptyReport is true and" -269 + "there are no PMD violations." ); -270 } -271 } -272 } -273 catch ( MavenReportException e ) -274 { -275 throw new RuntimeException( e ); -276 } -277 } -278 return result; -279 } -280 -281 private void executePmdWithClassloader() -282 throws MavenReportException -283 { -284 ClassLoader origLoader =
svn commit: r1011460 [2/12] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/pmd/ apidocs/org/apache/maven/plugin/pmd/cl
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdReport.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdReport.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdReport.html Mon May 1 07:24:19 2017 @@ -3,13 +3,13 @@ -PmdReport (Apache Maven PMD Plugin 3.7 API) +PmdReport (Apache Maven PMD Plugin 3.8 API) @@ -195,7 +195,7 @@ extends canGenerateReport() -http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/renderers/Renderer.html?is-external=true; title="class or interface in net.sourceforge.pmd.renderers">Renderer +net.sourceforge.pmd.renderers.Renderer createRenderer() Create and return the correct renderer for the output type. @@ -223,7 +223,7 @@ extends getOutputName() -http://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/PMDConfiguration.html?is-external=true; title="class or interface in net.sourceforge.pmd">PMDConfiguration +net.sourceforge.pmd.PMDConfiguration getPMDConfiguration() Constructs the PMD configuration class, passing it an argument that configures the target JDK. @@ -368,8 +368,8 @@ extends getPMDConfiguration -publichttp://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/PMDConfiguration.html?is-external=true; title="class or interface in net.sourceforge.pmd">PMDConfigurationgetPMDConfiguration() - throws http://maven.apache.org/shared/maven-reporting-api/apidocs/org/apache/maven/reporting/MavenReportException.html?is-external=true; title="class or interface in org.apache.maven.reporting">MavenReportException +publicnet.sourceforge.pmd.PMDConfigurationgetPMDConfiguration() + throws http://maven.apache.org/shared/maven-reporting-api/apidocs/org/apache/maven/reporting/MavenReportException.html?is-external=true; title="class or interface in org.apache.maven.reporting">MavenReportException Constructs the PMD configuration class, passing it an argument that configures the target JDK. Returns:the resulting PMD Throws: @@ -391,8 +391,8 @@ extends createRenderer -public finalhttp://pmd.sourceforge.net/pmd-core/apidocs/net/sourceforge/pmd/renderers/Renderer.html?is-external=true; title="class or interface in net.sourceforge.pmd.renderers">RenderercreateRenderer() - throws http://maven.apache.org/shared/maven-reporting-api/apidocs/org/apache/maven/reporting/MavenReportException.html?is-external=true; title="class or interface in org.apache.maven.reporting">MavenReportException +public finalnet.sourceforge.pmd.renderers.RenderercreateRenderer() +throws http://maven.apache.org/shared/maven-reporting-api/apidocs/org/apache/maven/reporting/MavenReportException.html?is-external=true; title="class or interface in org.apache.maven.reporting">MavenReportException Create and return the correct renderer for the output type. Returns:the renderer based on the configured output Throws: @@ -466,6 +466,6 @@ extends Copyright 20052016 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdReportGenerator.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdReportGenerator.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugin/pmd/PmdReportGenerator.html Mon May 1 07:24:19 2017 @@ -3,13 +3,13 @@ -PmdReportGenerator (Apache Maven PMD Plugin 3.7 API) +PmdReportGenerator (Apache Maven PMD Plugin 3.8 API) @@ -149,7 +149,7 @@ extends http://docs.oracle.com/ endDocument() -http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true; title="class or interface in
svn commit: r1011676 - /websites/production/maven/components/plugins/maven-pmd-plugin/
Author: adangel Date: Fri May 5 07:52:31 2017 New Revision: 1011676 Log: Remove old site. Removed: websites/production/maven/components/plugins/maven-pmd-plugin/
svn commit: r1011677 - /websites/production/maven/components/plugins/maven-pmd-plugin/
Author: adangel Date: Fri May 5 07:52:37 2017 New Revision: 1011677 Log: Publish new site. Added: websites/production/maven/components/plugins/maven-pmd-plugin/ - copied from r1011676, websites/production/maven/components/plugins-archives/maven-pmd-plugin-3.8/
svn commit: r1011681 - /websites/production/maven/content/
Author: adangel Date: Fri May 5 08:40:03 2017 New Revision: 1011681 Log: m-pmd-p 3.8 Added: websites/production/maven/content/ - copied from r1011680, websites/staging/maven/trunk/content/
svn commit: r1011675 - /websites/production/maven/components/plugins-archives/maven-pmd-plugin-3.8/
Author: adangel Date: Fri May 5 07:51:25 2017 New Revision: 1011675 Log: Archive versioned site. Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-3.8/ - copied from r1011674, websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/
svn commit: r1011736 - /websites/production/maven/content/
Author: adangel Date: Sat May 6 08:01:23 2017 New Revision: 1011736 Log: Publishing svnmucc operation to maven site by adangel Added: websites/production/maven/content/ - copied from r1011735, websites/staging/maven/trunk/content/
svn commit: r1024551 - /websites/production/maven/content/
Author: adangel Date: Mon Jan 29 20:21:18 2018 New Revision: 1024551 Log: Publishing svnmucc operation to maven site by adangel Added: websites/production/maven/content/ - copied from r1024550, websites/staging/maven/trunk/content/
svn commit: r1024526 - in /websites/production/maven/components: plugins-archives/maven-pmd-plugin-3.9.0/ plugins/maven-pmd-plugin/
Author: adangel Date: Mon Jan 29 17:02:00 2018 New Revision: 1024526 Log: Publish maven-pmd-plugin 3.9.0 documentation Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-3.9.0/ - copied from r1024525, websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/ websites/production/maven/components/plugins/maven-pmd-plugin/ - copied from r1024525, websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/
svn commit: r1024528 - /websites/production/maven/content/
Author: adangel Date: Mon Jan 29 17:07:54 2018 New Revision: 1024528 Log: Publishing svnmucc operation to maven site by adangel Added: websites/production/maven/content/ - copied from r1024527, websites/staging/maven/trunk/content/
svn commit: r1024531 - /websites/production/maven/content/
Author: adangel Date: Mon Jan 29 17:18:53 2018 New Revision: 1024531 Log: Publishing svnmucc operation to maven site by adangel Added: websites/production/maven/content/ - copied from r1024530, websites/staging/maven/trunk/content/
svn commit: r1024105 [36/42] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/ apidocs/org/apache/maven/plugins/ apidocs
Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugins/pmd/HelpMojo.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugins/pmd/HelpMojo.html (added) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugins/pmd/HelpMojo.html Sun Jan 21 17:23:18 2018 @@ -0,0 +1,471 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + +HelpMojo xref + + + +View Javadoc +1 +2 package org.apache.maven.plugins.pmd; +3 +4 import org.apache.maven.plugin.AbstractMojo; +5 import org.apache.maven.plugin.MojoExecutionException; +6 import org.apache.maven.plugins.annotations.Mojo; +7 import org.apache.maven.plugins.annotations.Parameter; +8 +9 import org.w3c.dom.Document; +10 import org.w3c.dom.Element; +11 import org.w3c.dom.Node; +12 import org.w3c.dom.NodeList; +13 import org.xml.sax.SAXException; +14 +15 import javax.xml.parsers.DocumentBuilder; +16 import javax.xml.parsers.DocumentBuilderFactory; +17 import javax.xml.parsers.ParserConfigurationException; +18 import java.io.IOException; +19 import java.io.InputStream; +20 import java.util.ArrayList; +21 import java.util.List; +22 +23 /** +24 * Display help information on maven-pmd-plugin.br +25 * Call codemvn pmd:help -Ddetail=true -Dgoal=lt;goal-namegt;/code to display parameter details. +26 * @author maven-plugin-tools +27 */ +28 @Mojo( name = "help", requiresProject = false, threadSafe = true ) +29 public class HelpMojo +30 extends AbstractMojo +31 { +32 /** +33 * If codetrue/code, display all settable properties for each goal. +34 * +35 */ +36 @Parameter( property = "detail", defaultValue = "false" ) +37 private boolean detail; +38 +39 /** +40 * The name of the goal for which to show help. If unspecified, all goals will be displayed. +41 * +42 */ +43 @Parameter( property = "goal" ) +44 private java.lang.String goal; +45 +46 /** +47 * The maximum length of a display line, should be positive. +48 * +49 */ +50 @Parameter( property = "lineLength", defaultValue = "80" ) +51 private int lineLength; +52 +53 /** +54 * The number of spaces per indentation level, should be positive. +55 * +56 */ +57 @Parameter( property = "indentSize", defaultValue = "2" ) +58 private int indentSize; +59 +60 // groupId/artifactId/plugin-help.xml +61 private static final String PLUGIN_HELP_PATH = +62 "/META-INF/maven/org.apache.maven.plugins/maven-pmd-plugin/plugin-help.xml"; +63 +64 private static final int DEFAULT_LINE_LENGTH = 80; +65 +66 private Document build() +67 throws MojoExecutionException +68 { +69 getLog().debug( "load plugin-help.xml: " + PLUGIN_HELP_PATH ); +70 InputStream is = null; +71 try +72 { +73 is = getClass().getResourceAsStream( PLUGIN_HELP_PATH ); +74 DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); +75 DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); +76 return dBuilder.parse( is ); +77 } +78 catch ( IOException e ) +79 { +80 throw new MojoExecutionException( e.getMessage(), e ); +81 } +82 catch ( ParserConfigurationException e ) +83 { +84 throw new MojoExecutionException( e.getMessage(), e ); +85 } +86 catch ( SAXException e ) +87 { +88 throw new MojoExecutionException( e.getMessage(), e ); +89 } +90 finally +91 { +92 if ( is != null ) +93 { +94 try +95 { +96 is.close(); +97 } +98 catch ( IOException e ) +99 { +100 throw new MojoExecutionException( e.getMessage(), e ); +101 } +102 } +103 } +104 } +105 +106 /** +107 * {@inheritDoc} +108 */ +109 public void execute() +110 throws MojoExecutionException +111 { +112 if ( lineLength = 0 ) +113 { +114 getLog().warn( "The parameter 'lineLength' should be positive, using '80' as default." ); +115 lineLength = DEFAULT_LINE_LENGTH; +116 } +117 if ( indentSize = 0 ) +118 { +119 getLog().warn( "The parameter 'indentSize' should be positive, using '2' as default." ); +120 indentSize = 2; +121 } +122 +123 Document doc = build(); +124 +125
svn commit: r1024105 [18/42] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/ apidocs/org/apache/maven/plugins/ apidocs
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/pmd-mojo.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/pmd-mojo.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/pmd-mojo.html Sun Jan 21 17:23:18 2018 @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin pmd:pmd @@ -77,9 +77,9 @@ pmd:pmd - | Last Published: 2017-05-01 + | Last Published: 2018-01-21 -Version: 3.8 +Version: 3.9.0 @@ -138,6 +138,13 @@ + + +Upgrading PMD at Runtime + + + + Multimodule Configuration @@ -199,7 +206,7 @@ Project Information - + @@ -375,7 +382,7 @@ Full name: -org.apache.maven.plugins:maven-pmd-plugin:3.8:pmd +org.apache.maven.plugins:maven-pmd-plugin:3.9.0:pmd Description: @@ -389,8 +396,6 @@ Requires dependency resolution of artifacts in scope: test. -The goal is thread-safe and supports parallel builds. - Since version: 2.0. @@ -422,7 +427,7 @@ parameter is only evaluated if the goal is run directly from the command line or during the default lifecycle. If the goal is run indirectly as part of a site generation, the output directory -configured in the Maven Site Plugin is used instead.User property is: project.reporting.outputDirectory. +configured in the Maven Site Plugin is used instead.User property is: project.reporting.outputDirectory. @@ -433,7 +438,7 @@ configured in the Maven Site Plugin is u 2.0 -The output directory for the intermediate XML report.User property is: project.build.directory. +The output directory for the intermediate XML report.User property is: project.build.directory. @@ -463,7 +468,7 @@ configured in the Maven Site Plugin is u 2.2 Whether to build an aggregated report at the root, or build -individual reports.Default value is: false.User property is: aggregate. +individual reports.Default value is: false.User property is: aggregate. @@ -476,7 +481,7 @@ individual reports.Default valu Enables the analysis cache, which speeds up PMD. This requires a cache file, that contains the results of the last PMD run. Thus the -cache is only effective, if this file is not cleaned between runs.Default value is: false.User property is: pmd.analysisCache. +cache is only effective, if this file is not cleaned between runs.Default value is: false.User property is: pmd.analysisCache. @@ -492,7 +497,7 @@ contains the results of the last PMD run between consecutive PMD runs. Otherwise the cache is not in use. If the file doesn't exist, PMD executes as if there is no cache enabled and all files are analyzed. Otherwise only changed files -will be analyzed again.Default value is: ${project.build.directory}/pmd/pmd.cache.User property is: pmd.analysisCacheLocation. +will be analyzed again.Default value is: ${project.build.directory}/pmd/pmd.cache.User property is: pmd.analysisCacheLocation. @@ -503,7 +508,7 @@ will be analyzed again.Default 3.1 -Controls whether PMD will track benchmark information.Default value is: false.User property is: pmd.benchmark. +Controls whether PMD will track benchmark information.Default value is: false.User property is: pmd.benchmark. @@ -514,7 +519,7 @@ will be analyzed again.Default 3.1 -Benchmark output filename.Default value is: ${project.build.directory}/pmd-benchmark.txt.User property is: pmd.benchmarkOutputFilename. +Benchmark output filename.Default value is: ${project.build.directory}/pmd-benchmark.txt.User property is:
svn commit: r1024105 [17/42] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/ apidocs/org/apache/maven/plugins/ apidocs
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/findbugs.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/findbugs.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/findbugs.html Sun Jan 21 17:23:18 2018 @@ -1,13 +1,13 @@ http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> - + Apache Maven PMD Plugin FindBugs Bug Detector Report @@ -77,9 +77,9 @@ FindBugs Bug Detector Report - | Last Published: 2017-05-01 + | Last Published: 2018-01-21 -Version: 3.8 +Version: 3.9.0 @@ -138,6 +138,13 @@ + + +Upgrading PMD at Runtime + + + + Multimodule Configuration @@ -199,7 +206,7 @@ Project Information - + @@ -223,13 +230,6 @@ - - -PMD - - - - Source Xref @@ -472,8 +472,8 @@ Errors Missing Classes -24 -24 +25 +23 0 0 @@ -483,64 +483,76 @@ Class Bugs -org.apache.maven.plugin.pmd.CpdReport +org.apache.maven.plugins.pmd.AbstractPmdReport 1 -org.apache.maven.plugin.pmd.CpdViolationCheckMojo -2 +org.apache.maven.plugins.pmd.CpdReport +1 -org.apache.maven.plugin.pmd.ExcludeDuplicationsFromFile +org.apache.maven.plugins.pmd.CpdViolationCheckMojo 1 -org.apache.maven.plugin.pmd.PmdReport -3 - -org.apache.maven.plugin.pmd.PmdViolationCheckMojo +org.apache.maven.plugins.pmd.ExcludeDuplicationsFromFile 1 + +org.apache.maven.plugins.pmd.PmdReport +2 -org.apache.maven.plugin.pmd.model.io.xpp3.CpdXpp3Reader -8 +org.apache.maven.plugins.pmd.PmdViolationCheckMojo +1 -org.apache.maven.plugin.pmd.model.io.xpp3.PmdXpp3Reader -8 +org.apache.maven.plugins.pmd.model.io.xpp3.CpdXpp3Reader +8 + +org.apache.maven.plugins.pmd.model.io.xpp3.PmdXpp3Reader +8 -org.apache.maven.plugin.pmd.CpdReport +org.apache.maven.plugins.pmd.AbstractPmdReport - + Bug Category Details Line Priority + +Changes to logger could be lost in org.apache.maven.plugins.pmd.AbstractPmdReport.setupPmdLogging() +EXPERIMENTAL +http://findbugs.sourceforge.net/bugDescriptions.html#LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE;>LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE +559 +High + +org.apache.maven.plugins.pmd.CpdReport + -Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.pmd.CpdReport.writeNonHtml(CPD) +Bug +Category +Details +Line +Priority + +Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.pmd.CpdReport.writeNonHtml(CPD) BAD_PRACTICE http://findbugs.sourceforge.net/bugDescriptions.html#RV_RETURN_VALUE_IGNORED_BAD_PRACTICE;>RV_RETURN_VALUE_IGNORED_BAD_PRACTICE -374 -Medium +377 +Medium -org.apache.maven.plugin.pmd.CpdViolationCheckMojo +org.apache.maven.plugins.pmd.CpdViolationCheckMojo - + Bug Category Details Line Priority - -Found reliance on default encoding in org.apache.maven.plugin.pmd.CpdViolationCheckMojo.getErrorDetails(File): new java.io.FileReader(File) + +Found reliance on default encoding in org.apache.maven.plugins.pmd.CpdViolationCheckMojo.getErrorDetails(File): new java.io.FileReader(File) I18N http://findbugs.sourceforge.net/bugDescriptions.html#DM_DEFAULT_ENCODING;>DM_DEFAULT_ENCODING -118 -High - -org.apache.maven.plugin.pmd.CpdViolationCheckMojo.getErrorDetails(File) may fail to clean up java.io.Reader -EXPERIMENTAL -http://findbugs.sourceforge.net/bugDescriptions.html#OBL_UNSATISFIED_OBLIGATION;>OBL_UNSATISFIED_OBLIGATION -118 -Medium +117 +High -org.apache.maven.plugin.pmd.ExcludeDuplicationsFromFile +org.apache.maven.plugins.pmd.ExcludeDuplicationsFromFile Bug @@ -549,13 +561,13 @@ Line Priority -Found reliance on default encoding in
svn commit: r1024105 [19/42] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/ apidocs/org/apache/maven/plugins/ apidocs
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/help-doc.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/help-doc.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/help-doc.html Sun Jan 21 17:23:18 2018 @@ -3,13 +3,13 @@ -API Help (Apache Maven PMD Plugin 3.8 Test API) +API Help (Apache Maven PMD Plugin 3.9.0 Test API) @@ -215,6 +215,6 @@ -Copyright 20052017 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. +Copyright 20052018 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. \ No newline at end of file Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/index-all.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/index-all.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/index-all.html Sun Jan 21 17:23:18 2018 @@ -3,13 +3,13 @@ -Index (Apache Maven PMD Plugin 3.8 Test API) +Index (Apache Maven PMD Plugin 3.9.0 Test API) @@ -66,9 +66,9 @@ A -AbstractPmdReportTest - Class in org.apache.maven.plugin.pmd +AbstractPmdReportTest - Class in org.apache.maven.plugins.pmd -AbstractPmdReportTest() - Constructor for class org.apache.maven.plugin.pmd.AbstractPmdReportTest +AbstractPmdReportTest() - Constructor for class org.apache.maven.plugins.pmd.AbstractPmdReportTest @@ -76,21 +76,21 @@ C -CpdReportTest - Class in org.apache.maven.plugin.pmd +CpdReportTest - Class in org.apache.maven.plugins.pmd -CpdReportTest() - Constructor for class org.apache.maven.plugin.pmd.CpdReportTest +CpdReportTest() - Constructor for class org.apache.maven.plugins.pmd.CpdReportTest -CpdReportTest.MockCpd - Class in org.apache.maven.plugin.pmd +CpdReportTest.MockCpd - Class in org.apache.maven.plugins.pmd -CpdReportTest.MockCpd(CPDConfiguration, IteratorMatch) - Constructor for class org.apache.maven.plugin.pmd.CpdReportTest.MockCpd +CpdReportTest.MockCpd(CPDConfiguration, IteratorMatch) - Constructor for class org.apache.maven.plugins.pmd.CpdReportTest.MockCpd -CpdViolationCheckMojoTest - Class in org.apache.maven.plugin.pmd +CpdViolationCheckMojoTest - Class in org.apache.maven.plugins.pmd -CpdViolationCheckMojoTest() - Constructor for class org.apache.maven.plugin.pmd.CpdViolationCheckMojoTest +CpdViolationCheckMojoTest() - Constructor for class org.apache.maven.plugins.pmd.CpdViolationCheckMojoTest -CustomConfigurationMavenProjectStub - Class in org.apache.maven.plugin.pmd.stubs +CustomConfigurationMavenProjectStub - Class in org.apache.maven.plugins.pmd.stubs -CustomConfigurationMavenProjectStub() - Constructor for class org.apache.maven.plugin.pmd.stubs.CustomConfigurationMavenProjectStub +CustomConfigurationMavenProjectStub() - Constructor for class org.apache.maven.plugins.pmd.stubs.CustomConfigurationMavenProjectStub @@ -98,13 +98,13 @@ D -DefaultArtifactHandlerStub - Class in org.apache.maven.plugin.pmd.stubs +DefaultArtifactHandlerStub - Class in org.apache.maven.plugins.pmd.stubs -DefaultArtifactHandlerStub() - Constructor for class org.apache.maven.plugin.pmd.stubs.DefaultArtifactHandlerStub +DefaultArtifactHandlerStub() - Constructor for class org.apache.maven.plugins.pmd.stubs.DefaultArtifactHandlerStub -DefaultConfigurationMavenProjectStub - Class in org.apache.maven.plugin.pmd.stubs +DefaultConfigurationMavenProjectStub - Class in org.apache.maven.plugins.pmd.stubs -DefaultConfigurationMavenProjectStub() - Constructor for class org.apache.maven.plugin.pmd.stubs.DefaultConfigurationMavenProjectStub +DefaultConfigurationMavenProjectStub() - Constructor for class org.apache.maven.plugins.pmd.stubs.DefaultConfigurationMavenProjectStub @@ -112,30 +112,30 @@ G -getArtifactHandler() - Method in class org.apache.maven.plugin.pmd.stubs.PmdPluginArtifactStub -getArtifactId() - Method in class org.apache.maven.plugin.pmd.stubs.PmdPluginArtifactStub -getBuild() - Method in class org.apache.maven.plugin.pmd.stubs.CustomConfigurationMavenProjectStub -getBuild() - Method in class
svn commit: r1024105 [26/42] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/ apidocs/org/apache/maven/plugins/ apidocs
Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugins/pmd/stubs/PmdPluginArtifactStub.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugins/pmd/stubs/PmdPluginArtifactStub.html (added) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugins/pmd/stubs/PmdPluginArtifactStub.html Sun Jan 21 17:23:18 2018 @@ -0,0 +1,500 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + + + +PmdPluginArtifactStub (Apache Maven PMD Plugin 3.9.0 Test API) + + + + + + +JavaScript is disabled on your browser. + + + + + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +Prev Class +Next Class + + +Frames +No Frames + + +All Classes + + + + + + + +Summary: +Nested| +Field| +Constr| +Method + + +Detail: +Field| +Constr| +Method + + + + + + + + +org.apache.maven.plugins.pmd.stubs +Class PmdPluginArtifactStub + + + +http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true; title="class or interface in java.lang">java.lang.Object + + +http://maven.apache.org/plugin-testing/maven-plugin-testing-harness/apidocs/org/apache/maven/plugin/testing/stubs/ArtifactStub.html?is-external=true; title="class or interface in org.apache.maven.plugin.testing.stubs">org.apache.maven.plugin.testing.stubs.ArtifactStub + + +org.apache.maven.plugins.pmd.stubs.PmdPluginArtifactStub + + + + + + + + + +All Implemented Interfaces: +http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true; title="class or interface in java.lang">Comparablehttp://maven.apache.org/maven-artifact/apidocs/org/apache/maven/artifact/Artifact.html?is-external=true; title="class or interface in org.apache.maven.artifact">Artifact, http://maven.apache.org/maven-artifact/apidocs/org/apache/maven/artifact/Artifact.html?is-external=true; title="class or interface in org.apache.maven.artifact">Artifact + + + +public class PmdPluginArtifactStub +extends http://maven.apache.org/plugin-testing/maven-plugin-testing-harness/apidocs/org/apache/maven/plugin/testing/stubs/ArtifactStub.html?is-external=true; title="class or interface in org.apache.maven.plugin.testing.stubs">ArtifactStub +Version: + $Id$ +Author: + mailto:och...@apache.org;>Maria Odea Ching + + + + + + + + + + + +Field Summary + + + + +Fields inherited from interfaceorg.apache.maven.artifact.http://maven.apache.org/maven-artifact/apidocs/org/apache/maven/artifact/Artifact.html?is-external=true; title="class or interface in org.apache.maven.artifact">Artifact +http://maven.apache.org/maven-artifact/apidocs/org/apache/maven/artifact/Artifact.html?is-external=true#LATEST_VERSION; title="class or interface in org.apache.maven.artifact">LATEST_VERSION, http://maven.apache.org/maven-artifact/apidocs/org/apache/maven/artifact/Artifact.html?is-external=true#RELEASE_VERSION; title="class or interface in org.apache.maven.artifact">RELEASE_VERSION, http://maven.apache.org/maven-artifact/apidocs/org/apache/maven/artifact/Artifact.html?is-external=true#SCOPE_COMPILE; title="class or interface in org.apache.maven.artifact">SCOPE_COMPILE, http://maven.apache.org/maven-artifact/apidocs/org/apache/maven/artifact/Artifact.html?is-external=true#SCOPE_COMPILE_PLUS_RUNTIME; title="class or interface in org.apache.maven.artifact">SCOPE_COMPILE_PLUS_RUNTIME, http://maven.apache.org/maven-artifact/apidocs/org/apache/maven/artifact/Artifact.html?is-external=true#SCOPE_IMPORT; title="class or inte rface in org.apache.maven.artifact">SCOPE_IMPORT, http://maven.apache.org/maven-artifact/apidocs/org/apache/maven/artifact/Artifact.html?is-external=true#SCOPE_PROVIDED; title="class or interface in org.apache.maven.artifact">SCOPE_PROVIDED, http://maven.apache.org/maven-artifact/apidocs/org/apache/maven/artifact/Artifact.html?is-external=true#SCOPE_RUNTIME; title="class or interface in org.apache.maven.artifact">SCOPE_RUNTIME, http://maven.apache.org/maven-artifact/apidocs/org/apache/maven/artifact/Artifact.html?is-external=true#SCOPE_RUNTIME_PLUS_SYSTEM; title="class or interface in org.apache.maven.artifact">SCOPE_RUNTIME_PLUS_SYSTEM, http://maven.apache.org/maven-artifact/apidocs/org/apache/maven/artifact/Artifact.html?is-external=true#SCOPE_SYSTEM; title="class or interface in org.apache.maven.artifact">SCOPE_SYSTEM,
svn commit: r1024105 [2/42] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/ apidocs/org/apache/maven/plugins/ apidocs/
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/index-all.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/index-all.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/index-all.html Sun Jan 21 17:23:18 2018 @@ -3,13 +3,13 @@ -Index (Apache Maven PMD Plugin 3.8 API) +Index (Apache Maven PMD Plugin 3.9.0 API) @@ -66,45 +66,45 @@ A -AbstractPmdReport - Class in org.apache.maven.plugin.pmd +AbstractPmdReport - Class in org.apache.maven.plugins.pmd Base class for the PMD reports. -AbstractPmdReport() - Constructor for class org.apache.maven.plugin.pmd.AbstractPmdReport +AbstractPmdReport() - Constructor for class org.apache.maven.plugins.pmd.AbstractPmdReport -AbstractPmdViolationCheckMojoD - Class in org.apache.maven.plugin.pmd +AbstractPmdViolationCheckMojoD - Class in org.apache.maven.plugins.pmd Base class for mojos that check if there were any PMD violations. -AbstractPmdViolationCheckMojo(ExcludeFromFileD) - Constructor for class org.apache.maven.plugin.pmd.AbstractPmdViolationCheckMojo +AbstractPmdViolationCheckMojo(ExcludeFromFileD) - Constructor for class org.apache.maven.plugins.pmd.AbstractPmdViolationCheckMojo Initialize this abstact check mojo by giving the correct ExcludeFromFile helper. -addDuplication(Duplication) - Method in class org.apache.maven.plugin.pmd.model.CpdErrorDetail +addDuplication(Duplication) - Method in class org.apache.maven.plugins.pmd.model.CpdErrorDetail Method addDuplication. -addFile(CpdFile) - Method in class org.apache.maven.plugin.pmd.model.Duplication +addFile(CpdFile) - Method in class org.apache.maven.plugins.pmd.model.Duplication Method addFile. -addFile(PmdFile) - Method in class org.apache.maven.plugin.pmd.model.PmdErrorDetail +addFile(PmdFile) - Method in class org.apache.maven.plugins.pmd.model.PmdErrorDetail Method addFile. -addViolation(Violation) - Method in class org.apache.maven.plugin.pmd.model.PmdFile +addViolation(Violation) - Method in class org.apache.maven.plugins.pmd.model.PmdFile Method addViolation. -aggregate - Variable in class org.apache.maven.plugin.pmd.AbstractPmdReport +aggregate - Variable in class org.apache.maven.plugins.pmd.AbstractPmdReport Whether to build an aggregated report at the root, or build individual reports. -aggregate - Variable in class org.apache.maven.plugin.pmd.AbstractPmdViolationCheckMojo +aggregate - Variable in class org.apache.maven.plugins.pmd.AbstractPmdViolationCheckMojo Whether to build an aggregated report at the root, or build individual reports. -asReport() - Method in class org.apache.maven.plugin.pmd.PmdCollectingRenderer +asReport() - Method in class org.apache.maven.plugins.pmd.PmdCollectingRenderer Create a new single report with all violations for further rendering into other formats than HTML. @@ -114,11 +114,11 @@ B -beginDocument() - Method in class org.apache.maven.plugin.pmd.CpdReportGenerator +beginDocument() - Method in class org.apache.maven.plugins.pmd.CpdReportGenerator Method that generates the start of the CPD report. -beginDocument() - Method in class org.apache.maven.plugin.pmd.PmdReportGenerator +beginDocument() - Method in class org.apache.maven.plugins.pmd.PmdReportGenerator @@ -126,64 +126,64 @@ C -canGenerateReport() - Method in class org.apache.maven.plugin.pmd.AbstractPmdReport -canGenerateReport() - Method in class org.apache.maven.plugin.pmd.CpdReport +canGenerateReport() - Method in class org.apache.maven.plugins.pmd.AbstractPmdReport +canGenerateReport() - Method in class org.apache.maven.plugins.pmd.CpdReport -canGenerateReport() - Method in class org.apache.maven.plugin.pmd.PmdReport +canGenerateReport() - Method in class org.apache.maven.plugins.pmd.PmdReport -constructXRefLocation(boolean) - Method in class org.apache.maven.plugin.pmd.AbstractPmdReport +constructXRefLocation(boolean) - Method in class org.apache.maven.plugins.pmd.AbstractPmdReport -countExclusions() - Method in class org.apache.maven.plugin.pmd.ExcludeDuplicationsFromFile +countExclusions() - Method in class org.apache.maven.plugins.pmd.ExcludeDuplicationsFromFile -countExclusions() - Method in interface org.apache.maven.plugin.pmd.ExcludeFromFile +countExclusions() - Method in interface org.apache.maven.plugins.pmd.ExcludeFromFile Determines how many exclusions are considered. -countExclusions() - Method in class org.apache.maven.plugin.pmd.ExcludeViolationsFromFile +countExclusions() - Method in class
svn commit: r1024105 [33/42] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/ apidocs/org/apache/maven/plugins/ apidocs
Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugins/pmd/AbstractPmdViolationCheckMojo.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugins/pmd/AbstractPmdViolationCheckMojo.html (added) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/xref/org/apache/maven/plugins/pmd/AbstractPmdViolationCheckMojo.html Sun Jan 21 17:23:18 2018 @@ -0,0 +1,311 @@ +http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;> +http://www.w3.org/1999/xhtml; xml:lang="en" lang="en"> + +AbstractPmdViolationCheckMojo xref + + + +View Javadoc +1 package org.apache.maven.plugins.pmd; +2 +3 /* +4* Licensed to the Apache Software Foundation (ASF) under one +5* or more contributor license agreements. See the NOTICE file +6* distributed with this work for additional information +7* regarding copyright ownership. The ASF licenses this file +8* to you under the Apache License, Version 2.0 (the +9* "License"); you may not use this file except in compliance +10 * with the License. You may obtain a copy of the License at +11 * +12 * http://www.apache.org/licenses/LICENSE-2.; target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0 +13 * +14 * Unless required by applicable law or agreed to in writing, +15 * software distributed under the License is distributed on an +16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +17 * KIND, either express or implied. See the License for the +18 * specific language governing permissions and limitations +19 * under the License. +20 */ +21 +22 import java.io.File; +23 import java.io.IOException; +24 import java.util.ArrayList; +25 import java.util.List; +26 +27 import org.apache.maven.plugin.AbstractMojo; +28 import org.apache.maven.plugin.MojoExecutionException; +29 import org.apache.maven.plugin.MojoFailureException; +30 import org.apache.maven.plugins.annotations.Parameter; +31 import org.apache.maven.project.MavenProject; +32 import org.codehaus.plexus.util.xml.pull.XmlPullParserException; +33 +34 /** +35 * Base class for mojos that check if there were any PMD violations. +36 * +37 * @param D type of the check, e.g. {@link org.apache.maven.plugins.pmd.model.Violation} +38 * or {@link org.apache.maven.plugins.pmd.model.Duplication}. +39 * @author a href="mailto:br...@apache.org; target="alexandria_uri">mailto:br...@apache.org"Brett Porter/a +40 * @version $Id$ +41 */ +42 public abstract class AbstractPmdViolationCheckMojoD +43 extends AbstractMojo +44 { +45 /** +46 * The location of the XML report to check, as generated by the PMD report. +47 */ +48 @Parameter( property = "project.build.directory", required = true ) +49 private File targetDirectory; +50 +51 /** +52 * Whether to fail the build if the validation check fails. +53 */ +54 @Parameter( property = "pmd.failOnViolation", defaultValue = "true", required = true ) +55 protected boolean failOnViolation; +56 +57 /** +58 * Whether to build an aggregated report at the root, or build individual reports. +59 * +60 * @since 2.2 +61 */ +62 @Parameter( property = "aggregate", defaultValue = "false" ) +63 protected boolean aggregate; +64 +65 /** +66 * Print details of check failures to build output. +67 */ +68 @Parameter( property = "pmd.verbose", defaultValue = "false" ) +69 private boolean verbose; +70 +71 /** +72 * Print details of errors that cause build failure +73 * +74 * @since 3.0 +75 */ +76 @Parameter( property = "pmd.printFailingErrors", defaultValue = "false" ) +77 private boolean printFailingErrors; +78 +79 /** +80 * File that lists classes and rules to be excluded from failures. +81 * For PMD, this is a properties file. For CPD, this +82 * is a text file that contains comma-separated lists of classes +83 * that are allowed to duplicate. +84 * +85 * @since 3.0 +86 */ +87 @Parameter( property = "pmd.excludeFromFailureFile", defaultValue = "" ) +88 private String excludeFromFailureFile; +89 +90 /** Helper to exclude violations from the result. */ +91 private final ExcludeFromFileD excludeFromFile; +92 +93 /** +94 * Initialize this abstact check mojo by giving the correct ExcludeFromFile helper. +95 * @param excludeFromFile the needed helper, for the specific violation type +96 */ +97 protected AbstractPmdViolationCheckMojo( ExcludeFromFileD excludeFromFile ) +98 { +99 this.excludeFromFile = excludeFromFile; +100 } +101 +102 /** +103 * The project to analyze. +104
svn commit: r1024105 [7/42] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/ apidocs/org/apache/maven/plugins/ apidocs/
Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugins/pmd/PmdReportGenerator.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugins/pmd/PmdReportGenerator.html (added) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugins/pmd/PmdReportGenerator.html Sun Jan 21 17:23:18 2018 @@ -0,0 +1,364 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + + + +PmdReportGenerator (Apache Maven PMD Plugin 3.9.0 API) + + + + + + +JavaScript is disabled on your browser. + + + + + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +Prev Class +Next Class + + +Frames +No Frames + + +All Classes + + + + + + + +Summary: +Nested| +Field| +Constr| +Method + + +Detail: +Field| +Constr| +Method + + + + + + + + +org.apache.maven.plugins.pmd +Class PmdReportGenerator + + + +http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true; title="class or interface in java.lang">java.lang.Object + + +org.apache.maven.plugins.pmd.PmdReportGenerator + + + + + + + + +public class PmdReportGenerator +extends http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true; title="class or interface in java.lang">Object +Render the PMD violations into Doxia events. +Version: + $Id$ +Author: + Brett Porter + + + + + + + + + + + +Constructor Summary + +Constructors + +Constructor and Description + + +PmdReportGenerator(http://maven.apache.org/maven-plugin-api/apidocs/org/apache/maven/plugin/logging/Log.html?is-external=true; title="class or interface in org.apache.maven.plugin.logging">Loglog, + http://maven.apache.org/doxia/doxia/doxia-sink-api/apidocs/org/apache/maven/doxia/sink/Sink.html?is-external=true; title="class or interface in org.apache.maven.doxia.sink">Sinksink, + http://docs.oracle.com/javase/7/docs/api/java/util/ResourceBundle.html?is-external=true; title="class or interface in java.util">ResourceBundlebundle, + booleanaggregate) + + + + + + + + + +Method Summary + +Methods + +Modifier and Type +Method and Description + + +void +beginDocument() + + +void +endDocument() + + +http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true; title="class or interface in java.util">Listnet.sourceforge.pmd.Report.ProcessingError +getProcessingErrors() + + +http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true; title="class or interface in java.util">Listnet.sourceforge.pmd.RuleViolation +getViolations() + + +void +render() + + +void +setFiles(http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true; title="class or interface in java.util">Maphttp://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true; title="class or interface in java.io">File,PmdFileInfofiles) + + +void +setProcessingErrors(http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true; title="class or interface in java.util">Collectionnet.sourceforge.pmd.Report.ProcessingErrorerrors) + + +void +setViolations(http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true; title="class or interface in java.util">Collectionnet.sourceforge.pmd.RuleViolationviolations) + + + + + + +Methods inherited from classjava.lang.http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true; title="class or interface in java.lang">Object +http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone, http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals, http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize, http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass, http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode, http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify, http://docs.oracle.com/javase/7/docs/api/java/lang /Object.html?is-external=true#notifyAll()" title="class
svn commit: r1024105 [27/42] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/ apidocs/org/apache/maven/plugins/ apidocs
Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugins/pmd/stubs/package-tree.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugins/pmd/stubs/package-tree.html (added) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugins/pmd/stubs/package-tree.html Sun Jan 21 17:23:18 2018 @@ -0,0 +1,148 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + + + +org.apache.maven.plugins.pmd.stubs Class Hierarchy (Apache Maven PMD Plugin 3.9.0 Test API) + + + + + + +JavaScript is disabled on your browser. + + + + + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +Prev +Next + + +Frames +No Frames + + +All Classes + + + + + + + + + + +Hierarchy For Package org.apache.maven.plugins.pmd.stubs +Package Hierarchies: + +All Packages + + + +Class Hierarchy + +java.lang.http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true; title="class or interface in java.lang">Object + +org.apache.maven.plugin.testing.stubs.http://maven.apache.org/plugin-testing/maven-plugin-testing-harness/apidocs/org/apache/maven/plugin/testing/stubs/ArtifactStub.html?is-external=true; title="class or interface in org.apache.maven.plugin.testing.stubs">ArtifactStub (implements org.apache.maven.artifact.http://maven.apache.org/maven-artifact/apidocs/org/apache/maven/artifact/Artifact.html?is-external=true; title="class or interface in org.apache.maven.artifact">Artifact) + +org.apache.maven.plugins.pmd.stubs.PmdPluginArtifactStub + + +org.apache.maven.artifact.handler.http://maven.apache.org/maven-artifact/apidocs/org/apache/maven/artifact/handler/DefaultArtifactHandler.html?is-external=true; title="class or interface in org.apache.maven.artifact.handler">DefaultArtifactHandler (implements org.apache.maven.artifact.handler.http://maven.apache.org/maven-artifact/apidocs/org/apache/maven/artifact/handler/ArtifactHandler.html?is-external=true; title="class or interface in org.apache.maven.artifact.handler">ArtifactHandler) + +org.apache.maven.plugins.pmd.stubs.DefaultArtifactHandlerStub + + +org.apache.maven.project.http://maven.apache.org/maven-compat/apidocs/org/apache/maven/project/MavenProject.html?is-external=true; title="class or interface in org.apache.maven.project">MavenProject (implements java.lang.http://docs.oracle.com/javase/7/docs/api/java/lang/Cloneable.html?is-external=true; title="class or interface in java.lang">Cloneable) + +org.apache.maven.plugin.testing.stubs.http://maven.apache.org/plugin-testing/maven-plugin-testing-harness/apidocs/org/apache/maven/plugin/testing/stubs/MavenProjectStub.html?is-external=true; title="class or interface in org.apache.maven.plugin.testing.stubs">MavenProjectStub + +org.apache.maven.plugins.pmd.stubs.CustomConfigurationMavenProjectStub +org.apache.maven.plugins.pmd.stubs.DefaultConfigurationMavenProjectStub +org.apache.maven.plugins.pmd.stubs.InvalidFormatMavenProjectStub + + + + + + + + + + + + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +Prev +Next + + +Frames +No Frames + + +All Classes + + + + + + + + + +Copyright 20052018 https://www.apache.org/;>The Apache Software Foundation. All rights reserved. + + \ No newline at end of file Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugins/pmd/stubs/package-use.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugins/pmd/stubs/package-use.html (added) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugins/pmd/stubs/package-use.html Sun Jan 21 17:23:18 2018 @@ -0,0 +1,115 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + + + +Uses of Package org.apache.maven.plugins.pmd.stubs (Apache Maven PMD Plugin 3.9.0 Test API) + + + + + + +JavaScript is disabled on your browser. + + + + + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +Prev Class +Next Class + + +Frames +No Frames + + +All Classes + + + + + + + +Summary: +Nested| +Field| +Constr| +Method + + +Detail: +Field| +Constr| +Method + + + + + + + + +org.apache.maven.plugins.pmd +Class PmdCollectingRenderer + + + +http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true; title="class or interface in java.lang">java.lang.Object + + +net.sourceforge.pmd.properties.AbstractPropertySource + + +net.sourceforge.pmd.renderers.AbstractRenderer + + +org.apache.maven.plugins.pmd.PmdCollectingRenderer + + + + + + + + + + + +All Implemented Interfaces: +net.sourceforge.pmd.properties.PropertySource, net.sourceforge.pmd.renderers.Renderer + + + +public class PmdCollectingRenderer +extends net.sourceforge.pmd.renderers.AbstractRenderer +A PMD renderer, that collects all violations and processing errors + from a pmd execution. +Author: + Andreas Dangel + + + + + + + + + + + +Field Summary + + + + +Fields inherited from classnet.sourceforge.pmd.renderers.AbstractRenderer +description, name, showSuppressedViolations, writer + + + + + +Fields inherited from classnet.sourceforge.pmd.properties.AbstractPropertySource +propertyDescriptors, propertyValuesByDescriptor + + + + + + + + +Constructor Summary + +Constructors + +Constructor and Description + + +PmdCollectingRenderer() +Collects all reports from all threads. + + + + + + + + + + +Method Summary + +Methods + +Modifier and Type +Method and Description + + +net.sourceforge.pmd.Report +asReport() +Create a new single report with all violations for further rendering into other formats than HTML. + + + +http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">String +defaultFileExtension() + + +void +end() + + +http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true; title="class or interface in java.util">Listnet.sourceforge.pmd.Report.ProcessingError +getErrors() +Gets all the processing errors. + + + +http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">String +getErrorsAsString(booleanwithDetails) +Gets the errors as a single string. + + + +http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true; title="class or interface in java.util">Listnet.sourceforge.pmd.RuleViolation +getViolations() +Gets the list of all found violations. + + + +boolean +hasErrors() +Checks whether any processing errors have been found. + + + +boolean +hasViolations() +Checks whether any violations have been found. + + + +void +renderFileReport(net.sourceforge.pmd.Reportreport) + + +void +start() + + +void +startFileAnalysis(net.sourceforge.pmd.util.datasource.DataSourcedataSource) + + + + + + +Methods inherited from classnet.sourceforge.pmd.renderers.AbstractRenderer +flush, getDescription, getName, getWriter, isShowSuppressedViolations, setDescription, setName, setShowSuppressedViolations, setWriter + + + + + +Methods inherited from classnet.sourceforge.pmd.properties.AbstractPropertySource +copyPropertyDescriptors, copyPropertyValues, definePropertyDescriptor, dysfunctionReason, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, ignoredProperties, setProperty, setProperty, useDefaultValueFor, usesDefaultValues + + + + + +Methods inherited from classjava.lang.http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true; title="class or interface in java.lang">Object +http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone,
svn commit: r1024105 [20/42] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/ apidocs/org/apache/maven/plugins/ apidocs
Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugins/pmd/AbstractPmdReportTest.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugins/pmd/AbstractPmdReportTest.html (added) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/testapidocs/org/apache/maven/plugins/pmd/AbstractPmdReportTest.html Sun Jan 21 17:23:18 2018 @@ -0,0 +1,344 @@ +http://www.w3.org/TR/html4/loose.dtd;> + + + + +AbstractPmdReportTest (Apache Maven PMD Plugin 3.9.0 Test API) + + + + + + +JavaScript is disabled on your browser. + + + + + + + + +Overview +Package +Class +Use +Tree +Deprecated +Index +Help + + + + +Prev Class +Next Class + + +Frames +No Frames + + +All Classes + + + + + + + +Summary: +Nested| +Field| +Constr| +Method + + +Detail: +Field| +Constr| +Method + + + + + + + + +org.apache.maven.plugins.pmd +Class AbstractPmdReportTest + + + +http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true; title="class or interface in java.lang">java.lang.Object + + +junit.framework.Assert + + +junit.framework.TestCase + + +org.codehaus.plexus.PlexusTestCase + + +http://maven.apache.org/plugin-testing/maven-plugin-testing-harness/apidocs/org/apache/maven/plugin/testing/AbstractMojoTestCase.html?is-external=true; title="class or interface in org.apache.maven.plugin.testing">org.apache.maven.plugin.testing.AbstractMojoTestCase + + +org.apache.maven.plugins.pmd.AbstractPmdReportTest + + + + + + + + + + + + + + + +All Implemented Interfaces: +junit.framework.Test + + +Direct Known Subclasses: +CpdReportTest, PmdReportTest + + + +public abstract class AbstractPmdReportTest +extends http://maven.apache.org/plugin-testing/maven-plugin-testing-harness/apidocs/org/apache/maven/plugin/testing/AbstractMojoTestCase.html?is-external=true; title="class or interface in org.apache.maven.plugin.testing">AbstractMojoTestCase +Since: + 2.5 +Version: + $Id$ +Author: + mailto:vincent.sive...@gmail.com;>Vincent Siveton + + + + + + + + + + + +Constructor Summary + +Constructors + +Constructor and Description + + +AbstractPmdReportTest() + + + + + + + + + +Method Summary + +Methods + +Modifier and Type +Method and Description + + +static boolean +lowerCaseContains(http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">Stringtext, + http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true; title="class or interface in java.lang">Stringcontains) +Checks, whether the string contained is contained in + the given text ignoring case. + + + +protected void +renderer(AbstractPmdReportmojo, +http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true; title="class or interface in java.io">FileoutputHtml) +Renderer the sink from the report mojo. + + + + + + + +Methods inherited from classorg.apache.maven.plugin.testing.http://maven.apache.org/plugin-testing/maven-plugin-testing-harness/apidocs/org/apache/maven/plugin/testing/AbstractMojoTestCase.html?is-external=true; title="class or interface in org.apache.maven.plugin.testing">AbstractMojoTestCase +http://maven.apache.org/plugin-testing/maven-plugin-testing-harness/apidocs/org/apache/maven/plugin/testing/AbstractMojoTestCase.html?is-external=true#configureMojo(org.apache.maven.plugin.Mojo,%20org.codehaus.plexus.configuration.PlexusConfiguration)" title="class or interface in org.apache.maven.plugin.testing">configureMojo, http://maven.apache.org/plugin-testing/maven-plugin-testing-harness/apidocs/org/apache/maven/plugin/testing/AbstractMojoTestCase.html?is-external=true#configureMojo(org.apache.maven.plugin.Mojo,%20java.lang.String,%20java.io.File)" title="class or interface in org.apache.maven.plugin.testing">configureMojo, http://maven.apache.org/plugin-testing/maven-plugin-testing-harness/apidocs/org/apache/maven/plugin/testing/AbstractMojoTestCase.html?is-external=true#extractPluginConfiguration(java.lang.String,%20java.io.File)" title="class or interface in org.apache.maven.plugin.testing">extractPluginConfiguration, extractPluginConfiguration, http://maven.apache.org/plugin-testing/maven-plugin-testing-harness/apidocs/org/apache/maven/plugin/testing/AbstractMojoTestCase.html?is-external=true#getContainer()" title="class or interface in org.apache.maven.plugin.testing">getContainer,
svn commit: r1024105 [3/42] - in /websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST: ./ apidocs/ apidocs/org/apache/maven/plugin/ apidocs/org/apache/maven/plugins/ apidocs/
Modified: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/index.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/index.html (original) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/index.html Sun Jan 21 17:23:18 2018 @@ -3,7 +3,7 @@ -Apache Maven PMD Plugin 3.8 API +Apache Maven PMD Plugin 3.9.0 API targetPage = "" + window.location.search; if (targetPage != "" && targetPage != "undefined") Added: websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugins/pmd/AbstractPmdReport.html == --- websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugins/pmd/AbstractPmdReport.html (added) +++ websites/production/maven/components/plugins-archives/maven-pmd-plugin-LATEST/apidocs/org/apache/maven/plugins/pmd/AbstractPmdReport.html Sun Jan 21 17:23:18 2018 @@ -0,0 +1,737 @@ +http://www.w3.org/TR/html4/loose.dtd"> + + + + +AbstractPmdReport (Apache Maven PMD Plugin 3.9.0 API) + + + +