com.googlecode.flyway.ant
Class ValidateTask

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.ValidateTask
All Implemented Interfaces:
java.lang.Cloneable

public class ValidateTask
extends AbstractMigrationLoadingTask

Ant task to validate the applied migrations in the database against the available classpath migrations in order to detect accidental migration changes.


Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
ValidateTask()
           
 
Method Summary
protected  void doExecute(Flyway flyway)
          Executes this task.
 
Methods inherited from class com.googlecode.flyway.ant.AbstractMigrationLoadingTask
setBaseDir, setBasePackage, setEncoding, setSqlMigrationPrefix, setSqlMigrationSuffix, setValidationErrorMode
 
Methods inherited from class com.googlecode.flyway.ant.AbstractFlywayTask
execute, setClasspath, setClasspathref, setDriver, setPassword, setSchemas, setTable, setUrl, setUser, 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

ValidateTask

public ValidateTask()
Method Detail

doExecute

protected void doExecute(Flyway flyway)
                  throws java.lang.Exception
Description copied from class: AbstractFlywayTask
Executes this task.

Overrides:
doExecute in class AbstractMigrationLoadingTask
Parameters:
flyway - The flyway instance to operate on.
Throws:
java.lang.Exception - any exception


Copyright © 2012. All Rights Reserved.