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 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 scriptDir
      Location of the script.
    • packages

      @Parameter(property="packages") private 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 String[] includes
      include specified script files
    • excludes

      @Parameter(property="excludes") private String[] excludes
      exclude specified script files
    • additionalClassPath

      @Parameter(property="additionalClassPath") private String additionalClassPath
      additional class path
    • systemProperties

      @Parameter(property="systemProperties") private Properties systemProperties
      env settings
    • verbose

      @Parameter(defaultValue="false", property="verbose") boolean verbose
      verbose
  • Constructor Details

    • RuleCheckMojo

      public RuleCheckMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException