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 String
    additional class path
    private org.apache.maven.plugin.descriptor.PluginDescriptor
     
    private String[]
    exclude specified script files
    private int
    Expect count of warning messages
    private boolean
    Fail build when rule check returns error
    private boolean
    Fail build when rule check has warnings
    private String[]
    include specified script files
    private String[]
    Packages to lookup non-package qualified class names
    private org.apache.maven.project.MavenProject
     
    private File
    Location of the script.
    private boolean
     
    (package private) boolean
    verbose

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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
    • 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