public class CpdViolationCheckMojo extends AbstractPmdViolationCheckMojo<Duplication>
aggregate, project
Constructor and Description |
---|
CpdViolationCheckMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected List<Duplication> |
getErrorDetails(File cpdFile)
Gets the attributes and text for the violation tag and puts them in a
HashMap
|
protected int |
getPriority(Duplication errorDetail) |
protected ViolationDetails<Duplication> |
newViolationDetailsInstance() |
protected void |
printError(Duplication 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(Duplication item, String severity)
printError
in class AbstractPmdViolationCheckMojo<Duplication>
protected List<Duplication> getErrorDetails(File cpdFile) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException
getErrorDetails
in class AbstractPmdViolationCheckMojo<Duplication>
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException
protected int getPriority(Duplication errorDetail)
getPriority
in class AbstractPmdViolationCheckMojo<Duplication>
protected ViolationDetails<Duplication> newViolationDetailsInstance()
newViolationDetailsInstance
in class AbstractPmdViolationCheckMojo<Duplication>
Copyright © 2005-2014 The Apache Software Foundation. All Rights Reserved.