public class PmdViolationCheckMojo extends AbstractPmdViolationCheckMojo<Violation>
aggregate, project
Constructor and Description |
---|
PmdViolationCheckMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected List<Violation> |
getErrorDetails(File pmdFile)
Gets the attributes and text for the violation tag and puts them in a
HashMap
|
protected int |
getPriority(Violation errorDetail) |
protected ViolationDetails<Violation> |
newViolationDetailsInstance() |
protected void |
printError(Violation item,
String severity)
Formats the failure details and prints them as an INFO message
|
executeCheck, printErrors
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void printError(Violation item, String severity)
printError
in class AbstractPmdViolationCheckMojo<Violation>
protected List<Violation> getErrorDetails(File pmdFile) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException
AbstractPmdViolationCheckMojo
getErrorDetails
in class AbstractPmdViolationCheckMojo<Violation>
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException
protected int getPriority(Violation errorDetail)
getPriority
in class AbstractPmdViolationCheckMojo<Violation>
protected ViolationDetails<Violation> newViolationDetailsInstance()
newViolationDetailsInstance
in class AbstractPmdViolationCheckMojo<Violation>
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.