public class CheckMojo extends AbstractJacocoMojo implements IViolationsOutput
Constructor and Description |
---|
CheckMojo() |
Modifier and Type | Method and Description |
---|---|
void |
executeMojo()
Executes Mojo.
|
void |
onViolation(ICoverageNode node,
Rule rule,
Limit limit,
String message)
Called for every rule violation.
|
execute, getExcludes, getIncludes, getProject, skipMojo
public void executeMojo() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoExecutionException
AbstractJacocoMojo
executeMojo
in class AbstractJacocoMojo
org.apache.maven.plugin.MojoExecutionException
- if an unexpected problem occurs. Throwing this exception
causes a "BUILD ERROR" message to be displayed.public void onViolation(ICoverageNode node, Rule rule, Limit limit, String message)
IViolationsOutput
onViolation
in interface IViolationsOutput
node
- node which violates a rulerule
- rule which is violatedlimit
- limit which is violatedmessage
- readable message describing this violationCopyright © 2013. All rights reserved.