|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.MatchingTask | +--org.apache.tools.ant.taskdefs.Zip | +--org.apache.tools.ant.taskdefs.Jar | +--org.enableit.db.darrt.ant.DarTask
Creates a DAR archive.
Field Summary | |
static java.lang.String |
ABOUT
CVS info ABOUT this class and its current version |
protected java.lang.String |
targetDriver
The JDBC driver's class name. |
protected java.lang.String |
targetPassword
Password to use when connecting to the database. |
protected java.lang.String |
targetUrl
The database URL to connect to. |
protected java.lang.String |
targetUserid
Username to use when connecting to the database. |
Fields inherited from class org.apache.tools.ant.taskdefs.Zip |
addedDirs, archiveType, duplicate, emptyBehavior, entries, zipFile |
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
fileset, useDefaultExcludes |
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 | |
DarTask()
Default constructor. |
Method Summary | |
void |
addData(org.apache.tools.ant.types.ZipFileSet fs)
Adds a zipfileset, specifying the data files to add to the DAR. |
void |
addLib(org.apache.tools.ant.types.ZipFileSet fs)
Adds a zipfileset, specifying libraries to add to the DAR. |
void |
addProcedures(org.apache.tools.ant.types.ZipFileSet fs)
Adds a zipfileset, specifying the stored procedure code to add to the DAR. |
void |
addSchema(org.apache.tools.ant.types.FileSet fs)
Add schema information to the DAR. |
protected void |
cleanUp()
Make sure we don't think we already have a schema.xml next time this task gets executed. |
void |
execute()
|
protected void |
initZipOutputStream(org.apache.tools.zip.ZipOutputStream zOut)
Method required by Ant archive-handling tasks. |
void |
setSchemaxml(java.io.File descr)
Set the schema descriptor for this DAR file. |
void |
setTargetDriver(java.lang.String driver)
Sets the JDBC driver to use in making a connection |
void |
setTargetPassword(java.lang.String password)
Sets the JDBC password to use in making a connection |
void |
setTargetSchemaName(java.lang.String targetSchemaName)
|
void |
setTargetUrl(java.lang.String url)
Sets the JDBC url to connect to. |
void |
setTargetUserid(java.lang.String userid)
Sets the JDBC userid to use in making a connection |
protected void |
zipFile(java.io.File file,
org.apache.tools.zip.ZipOutputStream zOut,
java.lang.String vPath)
Method required by Ant archive-handling tasks. |
Methods inherited from class org.apache.tools.ant.taskdefs.Jar |
addConfiguredManifest, addMetainf, createEmptyZip, finalizeZipOutputStream, isUpToDate, reset, setIndex, setJarfile, setManifest, setWhenempty, zipFile |
Methods inherited from class org.apache.tools.ant.taskdefs.Zip |
addFiles, addFiles, addFileset, addParentDirs, addZipEntries, addZipfileset, addZipGroupFileset, grabFileNames, grabFiles, grabFiles, isAddingNewFiles, isInUpdateMode, setBasedir, setCompress, setDestFile, setDuplicate, setEncoding, setFile, setFilesonly, setUpdate, setZipfile, zipDir |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
addAnd, addContains, addCustom, addDate, addDepend, addDepth, addFilename, addMajority, addNone, addNot, addOr, addPresent, addSelector, addSize, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ABOUT
protected java.lang.String targetDriver
protected java.lang.String targetUrl
protected java.lang.String targetUserid
protected java.lang.String targetPassword
Constructor Detail |
public DarTask()
Method Detail |
public void setTargetDriver(java.lang.String driver)
public void setTargetUrl(java.lang.String url)
public void setTargetUserid(java.lang.String userid)
public void setTargetPassword(java.lang.String password)
public void setTargetSchemaName(java.lang.String targetSchemaName)
public void setSchemaxml(java.io.File descr)
descr
- File representing the descriptor.public void addLib(org.apache.tools.ant.types.ZipFileSet fs)
TODO: At this point there is no functionality defined for these libraries. It could be used in the future to specify jars to install in Java-enabled databases or to specify the darrt jars themselves.
fs
- FileSet to add to archive.public void addData(org.apache.tools.ant.types.ZipFileSet fs)
fs
- FileSet to add to archive.public void addProcedures(org.apache.tools.ant.types.ZipFileSet fs)
fs
- FileSet to add to archive.public void addSchema(org.apache.tools.ant.types.FileSet fs)
fs
- Specifies the schema in individual table chunks.protected void initZipOutputStream(org.apache.tools.zip.ZipOutputStream zOut) throws java.io.IOException, org.apache.tools.ant.BuildException
initZipOutputStream
in class org.apache.tools.ant.taskdefs.Jar
zOut
- Compressed output stream of containing the archive??
java.io.IOException
- If there is a problem with file access.
org.apache.tools.ant.BuildException
- If descriptor is missing.protected void zipFile(java.io.File file, org.apache.tools.zip.ZipOutputStream zOut, java.lang.String vPath) throws java.io.IOException
zipFile
in class org.apache.tools.ant.taskdefs.Jar
file
- The target file to write to ??.zOut
- Compressed output stream of containing the archive.vPath
- ?? .
java.io.IOException
- If there is a problem with file access.protected void cleanUp()
cleanUp
in class org.apache.tools.ant.taskdefs.Jar
public void execute()
execute
in class org.apache.tools.ant.taskdefs.Zip
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |