public class Cab extends MatchingTask
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
archiveType |
filesetdescription, location, project| Constructor and Description |
|---|
Cab() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFileset(FileSet fileset)
Adds a set of files to archive.
|
protected void |
appendFiles(java.util.Vector<java.lang.String> files,
DirectoryScanner ds)
Append all files found by a directory scanner to a vector.
|
protected void |
checkConfiguration()
Check if the attributes and nested elements are correct.
|
protected ExecTask |
createExec()
Create a new exec delegate.
|
protected java.io.File |
createListFile(java.util.Vector<java.lang.String> files)
Creates a list file.
|
void |
execute()
execute this task.
|
protected java.util.Vector<java.lang.String> |
getFileList()
Get the complete list of files to be included in the cab.
|
protected boolean |
isUpToDate(java.util.Vector<java.lang.String> 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.
|
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, XsetItemsbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocationpublic void setCabfile(java.io.File cabFile)
cabFile - the location of the cab file.public void setBasedir(java.io.File baseDir)
baseDir - base directory for files to cab.public void setCompress(boolean compress)
compress - a boolean value.public void setVerbose(boolean verbose)
verbose - a boolean value.public void setOptions(java.lang.String options)
options - cabarc command line options.public void addFileset(FileSet fileset)
fileset - a set of files to archive.protected void checkConfiguration()
throws BuildException
BuildException - on error.protected ExecTask createExec() throws BuildException
BuildException - on error.protected boolean isUpToDate(java.util.Vector<java.lang.String> files)
files - the list of files to check.protected java.io.File createListFile(java.util.Vector<java.lang.String> files)
throws java.io.IOException
This method expects to only be called on Windows and thus quotes the file names.
files - the list of files to use.java.io.IOException - if there is an error.protected void appendFiles(java.util.Vector<java.lang.String> files,
DirectoryScanner ds)
files - the vector to append the files to.ds - the scanner to get the files from.protected java.util.Vector<java.lang.String> getFileList()
throws BuildException
BuildException - if there is an error.public void execute()
throws BuildException
execute in class TaskBuildException - on error.