@Mojo(name="pmd", threadSafe=true, requiresDependencyResolution=TEST) public class PmdReport extends AbstractPmdReport
aggregate, excludeFromFailureFile, filesToProcess, format, includeTests, includeXmlInSite, outputDirectory, project, reactorProjects, showPmdLog, skipEmptyReport, targetDirectory
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE
Constructor and Description |
---|
PmdReport() |
Modifier and Type | Method and Description |
---|---|
boolean |
canGenerateReport() |
net.sourceforge.pmd.renderers.Renderer |
createRenderer()
Create and return the correct renderer for the output type.
|
void |
executeReport(Locale locale) |
String |
getDescription(Locale locale) |
protected String |
getLocationTemp(String name)
Convenience method to get the location of the specified file name.
|
String |
getName(Locale locale) |
String |
getOutputName() |
net.sourceforge.pmd.PMDConfiguration |
getPMDConfiguration()
Constructs the PMD configuration class, passing it an argument that configures the target JDK.
|
void |
setRulesets(String[] rulesets)
Configures the PMD rulesets to be used directly.
|
constructXRefLocation, getFilesToProcess, getOutputDirectory, getOutputEncoding, getProject, getSiteRenderer, getSourceEncoding, isHtml, isXml, setupPmdLogging
closeReport, execute, generate, generate, generate, getCategoryName, getInputEncoding, getReportOutputDirectory, getSink, getSinkFactory, isExternalReport, setReportOutputDirectory
getLog, getPluginContext, setLog, setPluginContext
public void setRulesets(String[] rulesets)
rulesets
- the PMD rulesets to be used.rulesets
public void executeReport(Locale locale) throws MavenReportException
executeReport
in class AbstractMavenReport
MavenReportException
public boolean canGenerateReport()
AbstractPmdReport
canGenerateReport
in interface MavenReport
canGenerateReport
in class AbstractPmdReport
protected String getLocationTemp(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 String getOutputName()
public final net.sourceforge.pmd.renderers.Renderer createRenderer() throws MavenReportException
MavenReportException
- if no renderer found for the output typeCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.