|
||||||||||
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.CreateScriptArchiveAntTask
public class CreateScriptArchiveAntTask
Task that enables creating a jar file that packages all database update scripts. This jar can then be used as input for the updateDatabase task to apply changes on a target database. This way, database updates can be distributed as a deliverable, just like a war or ear file.
The created jar file will contain all configuration concerning the scripts in the META-INF folder.
Field Summary |
---|
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 | |
---|---|
CreateScriptArchiveAntTask()
|
Method Summary | |
---|---|
protected DbMaintainTask |
createDbMaintainTask()
|
void |
setArchiveFileName(String archiveFileName)
Defines the target name for the generated script archive. |
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 added to the jar file. |
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 CreateScriptArchiveAntTask()
Method Detail |
---|
protected DbMaintainTask createDbMaintainTask()
createDbMaintainTask
in class BaseAntTask
public void setArchiveFileName(String archiveFileName)
archiveFileName
- The name for the archive, not nullpublic 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 setQualifiers(String qualifiers)
qualifiers
- the registered (allowed) script qualifierspublic void setPatchQualifiers(String patchQualifiers)
patchQualifiers
- The patch qualifierspublic void setScriptFileExtensions(String scriptFileExtensions)
scriptFileExtensions
- Comma separated list of file extensions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |