com.googlecode.flyway.ant
Class InfoTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.googlecode.flyway.ant.AbstractFlywayTask
              extended by com.googlecode.flyway.ant.AbstractMigrationLoadingTask
                  extended by com.googlecode.flyway.ant.InfoTask
All Implemented Interfaces:
Cloneable

public class InfoTask
extends AbstractMigrationLoadingTask

Ant task to retrieve the complete information about the migrations including applied, pending and current migrations with details and status.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.googlecode.flyway.ant.AbstractMigrationLoadingTask
AbstractMigrationLoadingTask.LocationElement, AbstractMigrationLoadingTask.Locations, AbstractMigrationLoadingTask.PlaceholderElement, AbstractMigrationLoadingTask.PlaceholdersElement
 
Field Summary
 
Fields inherited from class com.googlecode.flyway.ant.AbstractFlywayTask
log
 
Fields inherited from class org.apache.tools.ant.Task
taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
InfoTask()
           
 
Method Summary
protected  void doExecuteWithMigrationConfig(Flyway flyway)
          Executes Flyway fully configured for loading migrations.
 
Methods inherited from class com.googlecode.flyway.ant.AbstractMigrationLoadingTask
addConfiguredLocations, addConfiguredPlaceholder, addConfiguredPlaceholders, doExecute, setBaseDir, setBasePackage, setCleanOnValidationError, setEncoding, setOutOfOrder, setPlaceholderPrefix, setPlaceholderSuffix, setSqlMigrationPrefix, setSqlMigrationSuffix, setTarget, setValidationErrorMode
 
Methods inherited from class com.googlecode.flyway.ant.AbstractFlywayTask
execute, setClasspath, setClasspathref, setDriver, setPassword, setSchemas, setTable, setUrl, setUser, useValueIfPropertyNotSet, useValueIfPropertyNotSet
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoTask

public InfoTask()
Method Detail

doExecuteWithMigrationConfig

protected void doExecuteWithMigrationConfig(Flyway flyway)
                                     throws Exception
Description copied from class: AbstractMigrationLoadingTask
Executes Flyway fully configured for loading migrations.

Specified by:
doExecuteWithMigrationConfig in class AbstractMigrationLoadingTask
Parameters:
flyway - The instance of Flyway to launch.
Throws:
Exception - when the execution failed.


Copyright © 2012. All Rights Reserved.