org.apache.maven.plugin.pmd
Class CpdReport
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.reporting.AbstractMavenReport
org.apache.maven.plugin.pmd.AbstractPmdReport
org.apache.maven.plugin.pmd.CpdReport
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.apache.maven.reporting.MavenReport
public class CpdReport
- extends AbstractPmdReport
Creates a report for PMD's CPD tool. See
http://pmd.sourceforge.net/cpd.html
for more detail.
- Since:
- 2.0
- Version:
- $Id: CpdReport.java 939798 2010-04-30 20:02:23Z hboutemy $
- Author:
- Mike Perham
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 |
Method Summary |
net.sourceforge.pmd.cpd.Renderer |
createRenderer()
Create and return the correct renderer for the output type. |
void |
executeReport(java.util.Locale locale)
|
java.lang.String |
getDescription(java.util.Locale locale)
|
java.lang.String |
getName(java.util.Locale locale)
|
java.lang.String |
getOutputName()
|
Methods inherited from class org.apache.maven.reporting.AbstractMavenReport |
closeReport, execute, generate, generate, generate, getCategoryName, getReportOutputDirectory, getSink, getSinkFactory, 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 |
CpdReport
public CpdReport()
getName
public java.lang.String getName(java.util.Locale locale)
-
getDescription
public java.lang.String getDescription(java.util.Locale locale)
-
executeReport
public void executeReport(java.util.Locale locale)
throws org.apache.maven.reporting.MavenReportException
-
- Specified by:
executeReport
in class org.apache.maven.reporting.AbstractMavenReport
- Throws:
org.apache.maven.reporting.MavenReportException
getOutputName
public java.lang.String getOutputName()
-
createRenderer
public net.sourceforge.pmd.cpd.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 Apache Software Foundation. All Rights Reserved.