|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.googlecode.flyway.ant.AbstractFlywayTask
com.googlecode.flyway.ant.AbstractMigrationLoadingTask
public abstract class AbstractMigrationLoadingTask
Base class for tasks that rely on loading migrations from the classpath.
| Nested Class Summary | |
|---|---|
static class |
AbstractMigrationLoadingTask.LocationElement
One <location> sub-element within the <locations> element. |
static class |
AbstractMigrationLoadingTask.Locations
The nested <locations> element of the task. |
| 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 | |
|---|---|
AbstractMigrationLoadingTask()
|
|
| Method Summary | |
|---|---|
void |
addConfiguredLocations(AbstractMigrationLoadingTask.Locations locations)
Do not use. |
protected void |
doExecute(Flyway flyway)
Executes this task. |
void |
setBaseDir(java.lang.String baseDir)
Deprecated. Use locations instead. Will be removed in Flyway 2.0. |
void |
setBasePackage(java.lang.String basePackage)
Deprecated. Use locations instead. Will be removed in Flyway 2.0. |
void |
setEncoding(java.lang.String encoding)
|
void |
setSqlMigrationPrefix(java.lang.String sqlMigrationPrefix)
|
void |
setSqlMigrationSuffix(java.lang.String sqlMigrationSuffix)
|
void |
setValidationErrorMode(java.lang.String validationErrorMode)
|
| 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 |
|---|
public AbstractMigrationLoadingTask()
| Method Detail |
|---|
public void addConfiguredLocations(AbstractMigrationLoadingTask.Locations locations)
locations - The locations on the classpath.@Deprecated public void setBasePackage(java.lang.String basePackage)
basePackage - The base package where the Java migrations are located. (default: db.migration)@Deprecated public void setBaseDir(java.lang.String baseDir)
baseDir - The base directory on the classpath where the Sql migrations are located. (default: db/migration)public void setEncoding(java.lang.String encoding)
encoding - The encoding of Sql migrations. (default: UTF-8)public void setSqlMigrationPrefix(java.lang.String sqlMigrationPrefix)
sqlMigrationPrefix - The file name prefix for Sql migrations (default: V)public void setSqlMigrationSuffix(java.lang.String sqlMigrationSuffix)
sqlMigrationSuffix - The file name suffix for Sql migrations (default: .sql)public void setValidationErrorMode(java.lang.String validationErrorMode)
validationErrorMode - The action to take when validation fails.
protected void doExecute(Flyway flyway)
throws java.lang.Exception
AbstractFlywayTask
doExecute in class AbstractFlywayTaskflyway - The flyway instance to operate on.
java.lang.Exception - any exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||