Class CheckCommandMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.mybatis.maven.mvnmigrate.StatusCommandMojo
org.mybatis.maven.mvnmigrate.CheckCommandMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="check", defaultPhase=TEST) public final class CheckCommandMojo extends StatusCommandMojo
Goal which check the presence of pending migration.
  • Constructor Details

    • CheckCommandMojo

      public CheckCommandMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
      execute the command.
      Specified by:
      execute in interface org.apache.maven.plugin.Mojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
      org.apache.maven.plugin.MojoFailureException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • init

      protected void init() throws org.apache.maven.plugin.MojoFailureException
      Initialize the MyBatis Migration command.
      Throws:
      org.apache.maven.plugin.MojoFailureException
    • getLocale

      protected Locale getLocale()
    • getRepository

      protected File getRepository()
    • getEnvironment

      protected String getEnvironment()
    • isForce

      protected boolean isForce()
    • getCommand

      protected org.apache.ibatis.migration.commands.StatusCommand getCommand()
      Return the command.
      Returns:
      BaseCommand the command created.
    • isSkip

      protected boolean isSkip()
      Test if the skip flag is setted.
      Returns:
      the skip flag.
    • getBundle

      protected ResourceBundle getBundle(Locale locale)
      The current locale.
      Parameters:
      locale - the locale
      Returns:
      the bundle