Package liquibase.integration.ant
Class AbstractChangeLogBasedTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- liquibase.integration.ant.BaseLiquibaseTask
-
- liquibase.integration.ant.AbstractChangeLogBasedTask
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
ChangeLogSyncTask
,ChangeLogSyncToTagTask
,DatabaseRollbackFutureTask
,DatabaseRollbackTask
,DatabaseUpdateTask
,DatabaseUpdateTestingRollbackTask
,MarkNextChangeSetRanTask
public abstract class AbstractChangeLogBasedTask extends BaseLiquibaseTask
-
-
Constructor Summary
Constructors Constructor Description AbstractChangeLogBasedTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getChangeLogDirectory()
Gets the change log directory set from Ant.String
getChangeLogFile()
Gets the change log file set from Ant.String
getContexts()
LabelExpression
getLabelFilter()
LabelExpression
getLabels()
Deprecated.usegetLabelFilter()
String
getOutputEncoding()
org.apache.tools.ant.types.resources.FileResource
getOutputFile()
protected Writer
getOutputFileWriter()
String
getSearchPath()
Gets the change log directory set from Ant.void
setChangeLogDirectory(String changeLogDirectory)
void
setChangeLogFile(String changeLogFile)
void
setContexts(String contexts)
void
setLabelFilter(String labelFilter)
void
setLabels(String labelFilter)
Deprecated.void
setOutputEncoding(String outputEncoding)
void
setOutputFile(org.apache.tools.ant.types.resources.FileResource outputFile)
void
setSearchPath(String searchPath)
protected void
validateParameters()
Subclasses that override this method must always callsuper.validateParameters()
method.-
Methods inherited from class liquibase.integration.ant.BaseLiquibaseTask
addChangeLogParameters, addDatabase, closeDatabase, createClasspath, createDatabaseFromConfiguredDatabaseType, createDatabaseFromType, execute, executeWithLiquibaseClassloader, getDefaultOutputEncoding, getLiquibase, getResourceAccessor, init, isPromptOnNonLocalDatabase, setChangeLogParametersRef, setClasspathRef, setDatabaseRef, setPromptOnNonLocalDatabase, shouldRun
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
validateParameters
protected void validateParameters()
Description copied from class:BaseLiquibaseTask
Subclasses that override this method must always callsuper.validateParameters()
method.- Overrides:
validateParameters
in classBaseLiquibaseTask
-
getOutputFileWriter
protected Writer getOutputFileWriter() throws IOException
- Throws:
IOException
-
getChangeLogDirectory
public String getChangeLogDirectory()
Gets the change log directory set from Ant.- Overrides:
getChangeLogDirectory
in classBaseLiquibaseTask
- Returns:
- The change log directory resource.
- See Also:
getChangeLogDirectory()
-
setChangeLogDirectory
public void setChangeLogDirectory(String changeLogDirectory)
-
getSearchPath
public String getSearchPath()
Gets the change log directory set from Ant.- Overrides:
getSearchPath
in classBaseLiquibaseTask
- Returns:
- The change log directory resource.
-
setSearchPath
public void setSearchPath(String searchPath)
-
getChangeLogFile
public String getChangeLogFile()
Gets the change log file set from Ant.- Overrides:
getChangeLogFile
in classBaseLiquibaseTask
- Returns:
- The change log file resource.
- See Also:
getChangeLogFile()
-
setChangeLogFile
public void setChangeLogFile(String changeLogFile)
-
getContexts
public String getContexts()
-
setContexts
public void setContexts(String contexts)
-
getLabels
public LabelExpression getLabels()
Deprecated.usegetLabelFilter()
-
setLabels
public void setLabels(String labelFilter)
Deprecated.
-
getLabelFilter
public LabelExpression getLabelFilter()
-
setLabelFilter
public void setLabelFilter(String labelFilter)
-
getOutputFile
public org.apache.tools.ant.types.resources.FileResource getOutputFile()
-
setOutputFile
public void setOutputFile(org.apache.tools.ant.types.resources.FileResource outputFile)
-
getOutputEncoding
public String getOutputEncoding()
-
setOutputEncoding
public void setOutputEncoding(String outputEncoding)
-
-