|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.maven.reporting.AbstractMavenReport
org.apache.maven.plugin.pmd.AbstractPmdReport
public abstract class AbstractPmdReport
Base class for the PMD reports.
| Field Summary | |
|---|---|
protected boolean |
aggregate
Whether to build an aggregated report at the root, or build individual reports. |
protected String |
format
Set the output format type, in addition to the HTML report. |
protected boolean |
includeTests
Run PMD on the tests. |
protected boolean |
includeXmlInSite
Whether to include the xml files generated by PMD/CPD in the site. |
protected File |
outputDirectory
The output directory for the final HTML report. |
protected MavenProject |
project
The project to analyse. |
protected List<MavenProject> |
reactorProjects
The projects in the reactor for aggregation report. |
protected File |
targetDirectory
The output directory for the intermediate XML report. |
| 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 | |
|---|---|
AbstractPmdReport()
|
|
| Method Summary | |
|---|---|
boolean |
canGenerateReport()
|
protected String |
constructXRefLocation(boolean test)
|
protected Map<File,PmdFileInfo> |
getFilesToProcess()
Convenience method to get the list of files where the PMD tool will be executed |
protected String |
getOutputDirectory()
|
protected String |
getOutputEncoding()
Gets the effective reporting output files encoding. |
protected MavenProject |
getProject()
|
protected Renderer |
getSiteRenderer()
|
protected String |
getSourceEncoding()
|
protected boolean |
isHtml()
|
| Methods inherited from class org.apache.maven.reporting.AbstractMavenReport |
|---|
closeReport, execute, executeReport, 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 |
| Methods inherited from interface org.apache.maven.reporting.MavenReport |
|---|
getDescription, getName, getOutputName |
| Field Detail |
|---|
@Parameter(property="project.build.directory",
required=true)
protected File targetDirectory
@Parameter(property="project.reporting.outputDirectory",
required=true)
protected File outputDirectory
@Component protected MavenProject project
@Parameter(property="format",
defaultValue="xml")
protected String format
@Parameter(defaultValue="false") protected boolean includeTests
@Parameter(property="aggregate",
defaultValue="false")
protected boolean aggregate
@Parameter(property="reactorProjects",
readonly=true)
protected List<MavenProject> reactorProjects
@Parameter(defaultValue="false") protected boolean includeXmlInSite
true. This was changed in version 3.0.
| Constructor Detail |
|---|
public AbstractPmdReport()
| Method Detail |
|---|
protected MavenProject getProject()
getProject in class AbstractMavenReportprotected Renderer getSiteRenderer()
getSiteRenderer in class AbstractMavenReportprotected String constructXRefLocation(boolean test)
protected Map<File,PmdFileInfo> getFilesToProcess()
throws IOException
IOExceptionprotected boolean isHtml()
public boolean canGenerateReport()
canGenerateReport in interface MavenReportcanGenerateReport in class AbstractMavenReportprotected String getOutputDirectory()
getOutputDirectory in class AbstractMavenReportprotected String getSourceEncoding()
protected String getOutputEncoding()
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||