Package org.mybatis.maven.mvnmigrate
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.
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()execute the command.protected ResourceBundleThe current locale.protected org.apache.ibatis.migration.commands.StatusCommandReturn the command.protected Stringprotected Localeprotected Fileprotected voidinit()Initialize the MyBatis Migration command.protected booleanisForce()protected booleanisSkip()Test if the skip flag is setted.toString()Methods inherited from class org.mybatis.maven.mvnmigrate.StatusCommandMojo
createCommandClassMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
CheckCommandMojo
public CheckCommandMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionexecute the command.- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
toString
-
init
protected void init() throws org.apache.maven.plugin.MojoFailureExceptionInitialize the MyBatis Migration command.- Throws:
org.apache.maven.plugin.MojoFailureException
-
getLocale
-
getRepository
-
getEnvironment
-
isForce
protected boolean isForce() -
getCommand
protected org.apache.ibatis.migration.commands.StatusCommand getCommand()Return the command.- Returns:
BaseCommandthe command created.
-
isSkip
protected boolean isSkip()Test if the skip flag is setted.- Returns:
- the skip flag.
-
getBundle
The current locale.- Parameters:
locale- the locale- Returns:
- the bundle
-