com.googlecode.flyway.maven
Class StatusMojo

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

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

Maven goal that shows the status (current version) of the database.

Since:
0.8

Field Summary
protected  java.lang.String driver
          The fully qualified classname of the jdbc driver to use to connect to the database.
protected static org.apache.commons.logging.Log LOG
          Logger.
protected  java.lang.String password
          The password to use to connect to the database.
protected  java.lang.String url
          The jdbc url to use to connect to the database.
protected  java.lang.String user
          The user to use to connect to the database.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
StatusMojo()
           
 
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
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG
Logger.


driver

protected java.lang.String driver
The fully qualified classname of the jdbc driver to use to connect to the database.
default property: ${flyway.driver}


url

protected java.lang.String url
The jdbc url to use to connect to the database.
default property: ${flyway.url}


user

protected java.lang.String user
The user to use to connect to the database.
default property: ${flyway.user}


password

protected java.lang.String password
The password to use to connect to the database.
default property: ${flyway.password}

Constructor Detail

StatusMojo

public StatusMojo()
Method Detail

doExecute

protected void doExecute(Flyway flyway)
                  throws org.apache.maven.plugin.MojoExecutionException
Executes this mojo.

Parameters:
flyway - The flyway instance to operate on.
Throws:
org.apache.maven.plugin.MojoExecutionException

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.