|
||||||||||
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.optional.Cab
Create a CAB archive.
Field Summary | |
protected java.lang.String |
archiveType
|
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
fileset |
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 | |
Cab()
|
Method Summary | |
void |
addFileset(FileSet set)
Adds a set of files to archive. |
protected void |
appendFiles(java.util.Vector files,
DirectoryScanner ds)
Append all files found by a directory scanner to a vector. |
protected void |
checkConfiguration()
|
protected ExecTask |
createExec()
Create a new exec delegate. |
protected java.io.File |
createListFile(java.util.Vector files)
Creates a list file. |
void |
execute()
Called by the project to let the task do its work. |
protected java.util.Vector |
getFileList()
Get the complete list of files to be included in the cab. |
protected boolean |
isUpToDate(java.util.Vector files)
Check to see if the target is up to date with respect to input files. |
void |
setBasedir(java.io.File baseDir)
Base directory to look in for files to CAB. |
void |
setCabfile(java.io.File cabFile)
The name/location of where to create the .cab file. |
void |
setCompress(boolean compress)
If true, compress the files otherwise only store them. |
void |
setOptions(java.lang.String options)
Sets additional cabarc options that are not supported directly. |
void |
setVerbose(boolean verbose)
If true, display cabarc output. |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, 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, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String archiveType
Constructor Detail |
public Cab()
Method Detail |
public void setCabfile(java.io.File cabFile)
public void setBasedir(java.io.File baseDir)
public void setCompress(boolean compress)
public void setVerbose(boolean verbose)
public void setOptions(java.lang.String options)
public void addFileset(FileSet set)
protected void checkConfiguration() throws BuildException
BuildException
protected ExecTask createExec() throws BuildException
BuildException
protected boolean isUpToDate(java.util.Vector files)
protected java.io.File createListFile(java.util.Vector files) throws java.io.IOException
java.io.IOException
protected void appendFiles(java.util.Vector files, DirectoryScanner ds)
protected java.util.Vector getFileList() throws BuildException
BuildException
public void execute() throws BuildException
Task
execute
in class Task
BuildException
- if something goes wrong with the build
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |