com.googlecode.flyway.maven
Class InitMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.googlecode.flyway.maven.InitMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class InitMojo
extends org.apache.maven.plugin.AbstractMojo

Maven goal that initializes the metadata table in an existing schema.

Since:
0.8.5

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
InitMojo()
           
 
Method Summary
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
 

Constructor Detail

InitMojo

public InitMojo()
Method Detail

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

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.