ContextEnabled, Mojo, MavenMultiPageReport, MavenReport@Mojo(name="pmd", threadSafe=true, requiresDependencyResolution=TEST) public class PmdReport extends AbstractPmdReport
aggregate, excludeFromFailureFile, filesToProcess, format, includeTests, includeXmlInSite, outputDirectory, project, reactorProjects, showPmdLog, skipEmptyReport, targetDirectoryCATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE| Constructor | Description |
|---|---|
PmdReport() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
canGenerateReport() |
|
net.sourceforge.pmd.renderers.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) |
|
protected java.lang.String |
getLocationTemp(java.lang.String name) |
Convenience method to get the location of the specified file name.
|
java.lang.String |
getName(java.util.Locale locale) |
|
java.lang.String |
getOutputName() |
|
net.sourceforge.pmd.PMDConfiguration |
getPMDConfiguration() |
Constructs the PMD configuration class, passing it an argument that configures the target JDK.
|
void |
setRulesets(java.lang.String[] rulesets) |
Configures the PMD rulesets to be used directly.
|
closeReport, execute, generate, generate, generate, getCategoryName, getInputEncoding, getReportOutputDirectory, getSink, getSinkFactory, isExternalReport, setReportOutputDirectorygetLog, getPluginContext, setLog, setPluginContextconstructXRefLocation, getFilesToProcess, getOutputDirectory, getOutputEncoding, getProject, getSiteRenderer, getSourceEncoding, isHtml, isXml, setupPmdLoggingpublic java.lang.String getName(java.util.Locale locale)
public java.lang.String getDescription(java.util.Locale locale)
public void setRulesets(java.lang.String[] rulesets)
rulesets - the PMD rulesets to be used.rulesetspublic void executeReport(java.util.Locale locale)
throws MavenReportException
executeReport in class AbstractMavenReportMavenReportExceptionpublic boolean canGenerateReport()
AbstractPmdReportcanGenerateReport in interface MavenReportcanGenerateReport in class AbstractPmdReportprotected java.lang.String getLocationTemp(java.lang.String name)
name - the name of the file whose location is to be resolvedpublic net.sourceforge.pmd.PMDConfiguration getPMDConfiguration()
throws MavenReportException
MavenReportException - if targetJdk is not supportedpublic java.lang.String getOutputName()
public final net.sourceforge.pmd.renderers.Renderer createRenderer()
throws MavenReportException
MavenReportException - if no renderer found for the output typeCopyright © 2005–2018 The Apache Software Foundation. All rights reserved.