Package org.apache.maven.plugins.pmd
Class CpdReport
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.reporting.AbstractMavenReport
org.apache.maven.plugins.pmd.AbstractPmdReport
org.apache.maven.plugins.pmd.CpdReport
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled,- org.apache.maven.plugin.Mojo,- org.apache.maven.reporting.MavenMultiPageReport,- org.apache.maven.reporting.MavenReport
- Direct Known Subclasses:
- AggregatorCpdReport
Creates a report for PMD's Copy/Paste Detector (CPD) tool.
 It can also generate a cpd results file in any of these formats: xml, csv or txt.
 
See Finding duplicated code for more details.
- Since:
- 2.0
- Version:
- $Id$
- Author:
- Mike Perham
- 
Field SummaryFields inherited from class org.apache.maven.plugins.pmd.AbstractPmdReportaggregate, excludeFromFailureFile, filesToProcess, format, includeTests, includeXmlInReports, session, showPmdLog, skipEmptyReport, targetDirectoryFields inherited from class org.apache.maven.reporting.AbstractMavenReportlocale, mojoExecution, outputDirectory, outputFormat, outputTimestamp, project, reactorProjects, remoteProjectRepositories, repoSession, siteDirectory, siteRenderer, siteToolFields inherited from interface org.apache.maven.reporting.MavenReportCATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLEFields inherited from interface org.apache.maven.plugin.MojoROLE
- 
Constructor SummaryConstructorsConstructorDescriptionCpdReport(org.codehaus.plexus.i18n.I18N i18n, CpdServiceExecutor serviceExecutor) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanvoidexecuteReport(Locale locale) getDescription(Locale locale) protected StringgetI18nString(Locale locale, String key) Deprecated.Methods inherited from class org.apache.maven.plugins.pmd.AbstractPmdReportcanGenerateReportInternal, getAggregatedProjects, getFilesToProcess, getJdkToolchain, getMojoExecution, getProject, getReactorProjects, isAggregator, isXmlMethods inherited from class org.apache.maven.reporting.AbstractMavenReportcloseReport, constructXrefLocation, execute, generate, generate, getCategoryName, getInputEncoding, getLocale, getOutputDirectory, getOutputEncoding, getReportOutputDirectory, getSink, getSinkFactory, getSiteRenderer, getXrefLocation, isExternalReport, setReportOutputDirectoryMethods inherited from class org.apache.maven.plugin.AbstractMojogetLog, getPluginContext, setLog, setPluginContext
- 
Constructor Details- 
CpdReport
 
- 
- 
Method Details- 
getName
- 
getDescription
- 
getI18nString- Parameters:
- locale- The locale
- key- The key to search for
- Returns:
- The text appropriate for the locale.
 
- 
executeReport- Specified by:
- executeReportin class- org.apache.maven.reporting.AbstractMavenReport
- Throws:
- org.apache.maven.reporting.MavenReportException
 
- 
canGenerateReportpublic boolean canGenerateReport() throws org.apache.maven.reporting.MavenReportException- Specified by:
- canGenerateReportin interface- org.apache.maven.reporting.MavenReport
- Overrides:
- canGenerateReportin class- org.apache.maven.reporting.AbstractMavenReport
- Throws:
- org.apache.maven.reporting.MavenReportException
 
- 
getOutputNameDeprecated.
- 
getOutputPath
 
-