public abstract class AbstractPmdViolationCheckMojo<D>
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
aggregate
Whether to build an aggregated report at the root, or build individual reports.
|
protected org.apache.maven.project.MavenProject |
project
The project to analyze.
|
| Constructor and Description |
|---|
AbstractPmdViolationCheckMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeCheck(String filename,
String tagName,
String key,
int failurePriority) |
protected abstract List<D> |
getErrorDetails(File analisysFile)
Gets the attributes and text for the violation tag and puts them in a
HashMap
|
protected abstract int |
getPriority(D errorDetail) |
protected abstract ViolationDetails<D> |
newViolationDetailsInstance() |
protected abstract void |
printError(D item,
String severity)
Formats the failure details and prints them as an INFO message
|
protected void |
printErrors(List<D> failures,
List<D> warnings)
Prints the warnings and failures
|
getLog, getPluginContext, setLog, setPluginContextprotected boolean aggregate
protected org.apache.maven.project.MavenProject project
protected void executeCheck(String filename, String tagName, String key, int failurePriority) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected abstract int getPriority(D errorDetail)
protected abstract ViolationDetails<D> newViolationDetailsInstance()
protected void printErrors(List<D> failures, List<D> warnings)
failures - list of failureswarnings - list of warningsprotected abstract void printError(D item, String severity)
item - protected abstract List<D> getErrorDetails(File analisysFile) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException
xpp - org.codehaus.plexus.util.xml.pull.XmlPullParserExceptionIOExceptionCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.