com.google.code.flyway.maven
Class CleanMojo

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

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

Maven goal that drops all database object.

Since:
0.7

Field Summary
protected  java.lang.String driver
          The fully qualified classname of the jdbc driver to use to connect to the database.
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
CleanMojo()
           
 
Method Summary
 void execute()
           
protected  javax.sql.DataSource getDataSource()
           
 
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

driver

protected java.lang.String driver
The fully qualified classname of the jdbc driver to use to connect to the database.


url

protected java.lang.String url
The jdbc url to use to connect to the database.


user

protected java.lang.String user
The user to use to connect to the database.


password

protected java.lang.String password
The password to use to connect to the database.

Constructor Detail

CleanMojo

public CleanMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getDataSource

protected javax.sql.DataSource getDataSource()
                                      throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2010. All Rights Reserved.