org.apache.maven.plugin.pmd
Class PmdReport

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.reporting.AbstractMavenReport
          extended by org.apache.maven.plugin.pmd.AbstractPmdReport
              extended by org.apache.maven.plugin.pmd.PmdReport
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.apache.maven.reporting.MavenReport

public class PmdReport
extends AbstractPmdReport

Creates a PMD report.

Since:
2.0
Version:
$Id: PmdReport.html 816688 2012-05-08 15:14:44Z hboutemy $
Author:
Brett Porter
Is defined by the goal name:
pmd

Field Summary
 
Fields inherited from class org.apache.maven.plugin.pmd.AbstractPmdReport
aggregate, format, includeTests, outputDirectory, project, reactorProjects, targetDirectory
 
Fields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
PmdReport()
           
 
Method Summary
 net.sourceforge.pmd.renderers.Renderer createRenderer()
          Create and return the correct renderer for the output type.
 void executeReport(Locale locale)
          
 String getDescription(Locale locale)
          
 String getName(Locale locale)
          
 String getOutputName()
          
 net.sourceforge.pmd.PMD getPMD()
          Constructs the PMD class, passing it an argument that configures the target JDK.
 void setRulesets(String[] rules)
           
 
Methods inherited from class org.apache.maven.plugin.pmd.AbstractPmdReport
canGenerateReport, constructXRefLocation, getFilesToProcess, getOutputDirectory, getOutputEncoding, getProject, getSiteRenderer, getSourceEncoding, isHtml
 
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, execute, generate, getCategoryName, getReportOutputDirectory, getSink, isExternalReport, setReportOutputDirectory
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmdReport

public PmdReport()
Method Detail

getName

public String getName(Locale locale)


getDescription

public String getDescription(Locale locale)


setRulesets

public void setRulesets(String[] rules)

executeReport

public void executeReport(Locale locale)
                   throws org.apache.maven.reporting.MavenReportException

Specified by:
executeReport in class org.apache.maven.reporting.AbstractMavenReport
Throws:
org.apache.maven.reporting.MavenReportException

getPMD

public net.sourceforge.pmd.PMD getPMD()
                               throws org.apache.maven.reporting.MavenReportException
Constructs the PMD class, passing it an argument that configures the target JDK.

Returns:
the resulting PMD
Throws:
org.apache.maven.reporting.MavenReportException - if targetJdk is not supported

getOutputName

public String getOutputName()


createRenderer

public final net.sourceforge.pmd.renderers.Renderer createRenderer()
                                                            throws org.apache.maven.reporting.MavenReportException
Create and return the correct renderer for the output type.

Returns:
the renderer based on the configured output
Throws:
org.apache.maven.reporting.MavenReportException - if no renderer found for the output type


Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.