Package com.dslplatform.mojo
Class SqlMigrationMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.dslplatform.mojo.SqlMigrationMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="sql-migration")
public class SqlMigrationMojo
extends org.apache.maven.plugin.AbstractMojo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Stringprivate final MojoContextprivate Stringstatic final Stringprivate Stringprivate Stringprivate Stringprivate StringFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()booleangetDsl()getSql()voidsetApplySql(boolean applySql) voidsetCompiler(String value) voidvoidvoidsetPlugins(String value) voidsetPostgres(String value) voidMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
GOAL
- See Also:
-
context
-
compiler
-
dsl
-
sql
-
postgres
-
oracle
-
applySql
@Parameter(property="applySql", defaultValue="false") private boolean applySql -
plugins
-
-
Constructor Details
-
SqlMigrationMojo
public SqlMigrationMojo()
-
-
Method Details
-
setCompiler
-
getCompiler
-
setDsl
-
getDsl
-
setSql
-
getSql
-
setPostgres
-
getPostgres
-
setOracle
-
getOracle
-
setApplySql
public void setApplySql(boolean applySql) -
getApplySql
public boolean getApplySql() -
setPlugins
-
getPlugins
-
getContext
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-