com.googlecode.flyway.maven
Class MigrateMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.googlecode.flyway.maven.MigrateMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class MigrateMojo
- extends org.apache.maven.plugin.AbstractMojo
Maven goal that triggers the migration of the configured database to the latest version.
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
|
Method Summary |
static void |
addPlaceholdersFromProperties(java.util.Map<java.lang.String,java.lang.String> placeholders,
java.util.Properties properties)
Adds the additional placeholders contained in these properties to the existing list. |
protected void |
doExecute(Flyway flyway)
Executes this mojo. |
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 |
MigrateMojo
public MigrateMojo()
doExecute
protected void doExecute(Flyway flyway)
throws java.lang.Exception
- Executes this mojo.
- Parameters:
flyway - The flyway instance to operate on.
- Throws:
java.lang.Exception - any exception
addPlaceholdersFromProperties
public static void addPlaceholdersFromProperties(java.util.Map<java.lang.String,java.lang.String> placeholders,
java.util.Properties properties)
- Adds the additional placeholders contained in these properties to the existing list.
- Parameters:
placeholders - The existing list of placeholders.properties - The properties containing additional placeholders.
execute
public final void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2010. All Rights Reserved.