Class RuleCheckMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.jboss.byteman.contrib.rulecheck.RuleCheckMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="rulecheck",
defaultPhase=PROCESS_TEST_CLASSES,
requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
public class RuleCheckMojo
extends org.apache.maven.plugin.AbstractMojo
Check the byteman script rule
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
additional class pathprivate org.apache.maven.plugin.descriptor.PluginDescriptor
private String[]
exclude specified script filesprivate int
Expect count of warning messagesprivate boolean
Fail build when rule check returns errorprivate boolean
Fail build when rule check has warningsprivate String[]
include specified script filesprivate String[]
Packages to lookup non-package qualified class namesprivate org.apache.maven.project.MavenProject
private File
Location of the script.private boolean
(package private) boolean
verboseFields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
project
@Component private org.apache.maven.project.MavenProject project -
descriptor
@Component private org.apache.maven.plugin.descriptor.PluginDescriptor descriptor -
scriptDir
@Parameter(defaultValue="${project.build.testOutputDirectory}", property="scriptDir", required=true) private File scriptDirLocation of the script. -
packages
Packages to lookup non-package qualified class names -
failOnError
@Parameter(defaultValue="true", property="failOnError") private boolean failOnErrorFail build when rule check returns error -
failOnWarning
@Parameter(defaultValue="true", property="failOnWarning") private boolean failOnWarningFail build when rule check has warnings -
expectWarnings
@Parameter(defaultValue="0", property="expectWarnings") private int expectWarningsExpect count of warning messages -
skip
@Parameter(defaultValue="false", property="skip") private boolean skip -
includes
include specified script files -
excludes
exclude specified script files -
additionalClassPath
additional class path -
verbose
@Parameter(defaultValue="false", property="verbose") boolean verboseverbose
-
-
Constructor Details
-
RuleCheckMojo
public RuleCheckMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-