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

Deprecated. Use flyway:info instead. Will be removed in Flyway 3.0.

@Deprecated
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  com.googlecode.flyway.core.util.logging.Log log
           
protected  org.apache.maven.project.MavenProject mavenProject
          Reference to the current project that includes the Flyway Maven plugin.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
StatusMojo()
          Deprecated.  
 
Method Summary
protected  void doExecute(Flyway flyway)
          Deprecated. Executes this mojo.
 void execute()
           
protected  String getProperty(String name)
          Retrieves this property from either the system or the maven properties.
 
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 com.googlecode.flyway.core.util.logging.Log log

mavenProject

protected org.apache.maven.project.MavenProject mavenProject
Reference to the current project that includes the Flyway Maven plugin.

Constructor Detail

StatusMojo

public StatusMojo()
Deprecated. 
Method Detail

doExecute

protected void doExecute(Flyway flyway)
                  throws Exception
Deprecated. 
Executes this mojo.

Parameters:
flyway - The flyway instance to operate on.
Throws:
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

getProperty

protected String getProperty(String name)
Retrieves this property from either the system or the maven properties.

Parameters:
name - The name of the property to retrieve.
Returns:
The property value. null if not found.


Copyright © 2012. All Rights Reserved.