|
||||||||||
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
org.dbmaintain.launch.ant.BaseAntTask
org.dbmaintain.launch.ant.BaseDatabaseAntTask
org.dbmaintain.launch.ant.CheckScriptUpdatesAntTask
public class CheckScriptUpdatesAntTask
Performs a dry run of the database update. May be used to verify if there are any updates or in a test that fails if it appears that an irregular script update was performed.
Field Summary |
---|
Fields inherited from class org.dbmaintain.launch.ant.BaseDatabaseAntTask |
---|
databases |
Fields inherited from class org.apache.tools.ant.Task |
---|
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
project |
Constructor Summary | |
---|---|
CheckScriptUpdatesAntTask()
|
Method Summary | |
---|---|
protected DbMaintainTask |
createDbMaintainTask()
|
void |
setAllowOutOfSequenceExecutionOfPatches(boolean allowOutOfSequenceExecutionOfPatches)
If this property is set to true, a patch script is allowed to be executed even if another script with a higher index was already executed. |
void |
setAutoCreateDbMaintainScriptsTable(boolean autoCreateDbMaintainScriptsTable)
Sets the autoCreateDbMaintainScriptsTable property. |
void |
setExcludedQualifiers(String excludedQualifiers)
Optional comma-separated list of script qualifiers. |
void |
setFromScratchEnabled(boolean fromScratchEnabled)
Sets the fromScratchEnabled property, that indicates the database can be recreated from scratch if needed. |
void |
setIncludedQualifiers(String includedQualifiers)
Optional comma-separated list of script qualifiers. |
void |
setPatchQualifiers(String patchQualifiers)
The qualifiers to use to determine whether a script is a patch script. |
void |
setPostProcessingScriptDirectoryName(String postProcessingScriptDirectoryName)
Comma separated list of directories and files in which the post processing database scripts are located. |
void |
setQualifiers(String qualifiers)
Optional comma-separated list of script qualifiers. |
void |
setScriptEncoding(String scriptEncoding)
Encoding to use when reading the script files. |
void |
setScriptFileExtensions(String scriptFileExtensions)
Sets the scriptFileExtensions property, that defines the extensions of the files that are regarded to be database scripts. |
void |
setScriptLocations(String scriptLocations)
Defines where the scripts can be found that must be executed on the database. |
void |
setUseLastModificationDates(boolean useLastModificationDates)
Defines whether the last modification dates of the scripts files can be used to determine whether the contents of a script has changed. |
Methods inherited from class org.dbmaintain.launch.ant.BaseDatabaseAntTask |
---|
addDatabase, getDbMaintainDatabases |
Methods inherited from class org.dbmaintain.launch.ant.BaseAntTask |
---|
execute, getAntProperties, getCustomConfigFile, setConfigFile |
Methods inherited from class org.apache.tools.ant.Task |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getProject, setProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CheckScriptUpdatesAntTask()
Method Detail |
---|
protected DbMaintainTask createDbMaintainTask()
createDbMaintainTask
in class BaseAntTask
public void setScriptLocations(String scriptLocations)
scriptLocations
- Comma separated list of script locationspublic void setScriptEncoding(String scriptEncoding)
scriptEncoding
- The encodingpublic void setPostProcessingScriptDirectoryName(String postProcessingScriptDirectoryName)
postProcessingScriptDirectoryName
- The directory namespublic void setFromScratchEnabled(boolean fromScratchEnabled)
fromScratchEnabled
- True if the database can be updated from scratch.public void setAutoCreateDbMaintainScriptsTable(boolean autoCreateDbMaintainScriptsTable)
autoCreateDbMaintainScriptsTable
- True if the DBMAINTAIN_SCRIPTS table can be created automaticallypublic void setAllowOutOfSequenceExecutionOfPatches(boolean allowOutOfSequenceExecutionOfPatches)
allowOutOfSequenceExecutionOfPatches
- true if out-of-sequence execution of patches is enabledpublic void setQualifiers(String qualifiers)
qualifiers
- the registered (allowed) script qualifierspublic void setPatchQualifiers(String patchQualifiers)
patchQualifiers
- The patch qualifierspublic void setIncludedQualifiers(String includedQualifiers)
includedQualifiers
- the included script qualifierspublic void setExcludedQualifiers(String excludedQualifiers)
excludedQualifiers
- the excluded script qualifierspublic void setScriptFileExtensions(String scriptFileExtensions)
scriptFileExtensions
- Comma separated list of file extensions.public void setUseLastModificationDates(boolean useLastModificationDates)
useLastModificationDates
- True if script file last modification dates can be used.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |