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
Fields Modifier and Type Field Description private java.lang.String
additionalClassPath
additional class pathprivate org.apache.maven.plugin.descriptor.PluginDescriptor
descriptor
private java.lang.String[]
excludes
exclude specified script filesprivate int
expectWarnings
Expect count of warning messagesprivate boolean
failOnError
Fail build when rule check returns errorprivate boolean
failOnWarning
Fail build when rule check has warningsprivate java.lang.String[]
includes
include specified script filesprivate java.lang.String[]
packages
Packages to lookup non-package qualified class namesprivate org.apache.maven.project.MavenProject
project
private java.io.File
scriptDir
Location of the script.private boolean
skip
(package private) boolean
verbose
verbose
-
Constructor Summary
Constructors Constructor Description RuleCheckMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
-
-
-
Field Detail
-
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 java.io.File scriptDir
Location of the script.
-
packages
@Parameter(property="packages") private java.lang.String[] packages
Packages to lookup non-package qualified class names
-
failOnError
@Parameter(defaultValue="true", property="failOnError") private boolean failOnError
Fail build when rule check returns error
-
failOnWarning
@Parameter(defaultValue="true", property="failOnWarning") private boolean failOnWarning
Fail build when rule check has warnings
-
expectWarnings
@Parameter(defaultValue="0", property="expectWarnings") private int expectWarnings
Expect count of warning messages
-
skip
@Parameter(defaultValue="false", property="skip") private boolean skip
-
includes
@Parameter(property="includes") private java.lang.String[] includes
include specified script files
-
excludes
@Parameter(property="excludes") private java.lang.String[] excludes
exclude specified script files
-
additionalClassPath
@Parameter(property="additionalClassPath") private java.lang.String additionalClassPath
additional class path
-
verbose
@Parameter(defaultValue="false", property="verbose") boolean verbose
verbose
-
-