Class 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 path
      private org.apache.maven.plugin.descriptor.PluginDescriptor descriptor  
      private java.lang.String[] excludes
      exclude specified script files
      private int expectWarnings
      Expect count of warning messages
      private boolean failOnError
      Fail build when rule check returns error
      private boolean failOnWarning
      Fail build when rule check has warnings
      private java.lang.String[] includes
      include specified script files
      private java.lang.String[] packages
      Packages to lookup non-package qualified class names
      private org.apache.maven.project.MavenProject project  
      private java.io.File scriptDir
      Location of the script.
      private boolean skip  
      (package private) boolean verbose
      verbose
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      RuleCheckMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      • 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 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
    • Constructor Detail

      • RuleCheckMojo

        public RuleCheckMojo()
    • Method Detail

      • execute

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