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.AbstractMojoCheck the byteman script rule
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringadditionalClassPathadditional class pathprivate org.apache.maven.plugin.descriptor.PluginDescriptordescriptorprivate java.lang.String[]excludesexclude specified script filesprivate intexpectWarningsExpect count of warning messagesprivate booleanfailOnErrorFail build when rule check returns errorprivate booleanfailOnWarningFail build when rule check has warningsprivate java.lang.String[]includesinclude specified script filesprivate java.lang.String[]packagesPackages to lookup non-package qualified class namesprivate org.apache.maven.project.MavenProjectprojectprivate java.io.FilescriptDirLocation of the script.private booleanskip(package private) booleanverboseverbose
-
Constructor Summary
Constructors Constructor Description RuleCheckMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()
-
-
-
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 scriptDirLocation 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 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
@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 verboseverbose
-
-