public abstract class AbstractFlywayTask
extends org.apache.tools.ant.Task
| Modifier and Type | Field and Description |
|---|---|
protected com.googlecode.flyway.core.util.logging.Log |
log
Logger.
|
| Constructor and Description |
|---|
AbstractFlywayTask() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doExecute(Flyway flyway)
Executes this task.
|
void |
execute() |
void |
setClasspath(org.apache.tools.ant.types.Path classpath) |
void |
setClasspathref(org.apache.tools.ant.types.Reference classpathref) |
void |
setDriver(String driver) |
void |
setInitDescription(String initDescription) |
void |
setInitialDescription(String initialDescription)
Deprecated.
Use setInitDescription instead. Will be removed in Flyway 3.0.
|
void |
setInitialVersion(String initialVersion)
Deprecated.
Use setInitVersion instead. Will be removed in Flyway 3.0.
|
void |
setInitVersion(String initVersion) |
void |
setPassword(String password) |
void |
setSchemas(String schemas) |
void |
setTable(String table) |
void |
setUrl(String url) |
void |
setUser(String user) |
protected boolean |
useValueIfPropertyNotSet(boolean value,
String flywayProperty)
Retrieves a boolean value either from an Ant property or if not set, directly.
|
protected String |
useValueIfPropertyNotSet(String value,
String flywayProperty)
Retrieves a value either from an Ant property or if not set, directly.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeprotected com.googlecode.flyway.core.util.logging.Log log
public void setClasspath(org.apache.tools.ant.types.Path classpath)
classpath - The classpath used to load the JDBC driver and the migrations.public void setClasspathref(org.apache.tools.ant.types.Reference classpathref)
classpathref - The reference to the classpath used to load the JDBC driver and the migrations.public void setDriver(String driver)
driver - The fully qualified classname of the jdbc driver to use to connect to the database.public void setUrl(String url)
url - The jdbc url to use to connect to the database.public void setUser(String user)
user - The user to use to connect to the database.public void setPassword(String password)
password - The password to use to connect to the database. (default: blank)public void setSchemas(String schemas)
schemas - Comma-separated list of the schemas managed by Flyway. These schema names are case-sensitive.Consequences:
public void setTable(String table)
table - The name of the schema metadata table that will be used by Flyway.
By default (single-schema mode) the metadata table is placed in the default schema for the connection provided by the datasource.
When the flyway.schemas property is set (multi-schema mode), the metadata table is placed in the first schema of the list.
(default: schema_version)@Deprecated public void setInitialVersion(String initialVersion)
initialVersion - The version to tag an existing schema with when executing init. (default: 1)@Deprecated public void setInitialDescription(String initialDescription)
initialDescription - The description to tag an existing schema with when executing init. (default: << Flyway Init >>)public void setInitVersion(String initVersion)
initVersion - The version to tag an existing schema with when executing init. (default: 1)public void setInitDescription(String initDescription)
initDescription - The description to tag an existing schema with when executing init. (default: << Flyway Init >>)protected String useValueIfPropertyNotSet(String value, String flywayProperty)
value - The value to check.flywayProperty - The flyway Ant property. Ex. 'url' for 'flyway.url'protected boolean useValueIfPropertyNotSet(boolean value,
String flywayProperty)
value - The boolean value to check.flywayProperty - The flyway Ant property. Ex. 'url' for 'flyway.url'public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionCopyright © 2013. All Rights Reserved.