org.apache.maven.plugin.pmd

Class AbstractPmdReport

public abstract class AbstractPmdReport extends AbstractMavenReport

Base class for the PMD reports.

Author: Brett Porter

Field Summary
protected Stringformat
Set the output format type, in addition to the HTML report.
protected StringoutputDirectory
The output directory for the final HTML report.
protected MavenProjectproject
The project to analyse.
protected FiletargetDirectory
The output directory for the intermediate XML report.
Method Summary
booleancanGenerateReport()
protected StringconstructXRefLocation()
protected StringgetOutputDirectory()
protected MavenProjectgetProject()
protected RenderergetSiteRenderer()
protected booleanisHtml()

Field Detail

format

protected String format
Set the output format type, in addition to the HTML report. Must be one of: "none", "csv", "xml", "txt" or the full class name of the PMD renderer to use. See the net.sourceforge.pmd.renderers package javadoc for available renderers. XML is required if the pmd:check goal is being used.

UNKNOWN: expression="${format}"

outputDirectory

protected String outputDirectory
The output directory for the final HTML report.

UNKNOWN: expression="${project.reporting.outputDirectory}"

project

protected MavenProject project
The project to analyse.

UNKNOWN: expression="${project}"

targetDirectory

protected File targetDirectory
The output directory for the intermediate XML report.

UNKNOWN: expression="${project.build.directory}"

Method Detail

canGenerateReport

public boolean canGenerateReport()

See Also: org.apache.maven.reporting.AbstractMavenReport#canGenerateReport()

constructXRefLocation

protected String constructXRefLocation()

getOutputDirectory

protected String getOutputDirectory()

See Also: org.apache.maven.reporting.AbstractMavenReport#getOutputDirectory()

getProject

protected MavenProject getProject()

See Also: org.apache.maven.reporting.AbstractMavenReport#getProject()

getSiteRenderer

protected Renderer getSiteRenderer()

See Also: org.apache.maven.reporting.AbstractMavenReport#getSiteRenderer()

isHtml

protected boolean isHtml()
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.