public class Cab extends MatchingTask
| Modifier and Type | Field and Description | 
|---|---|
| protected String | archiveType | 
fileset| Constructor and Description | 
|---|
| Cab() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addFileset(FileSet set)Adds a set of files to archive. | 
| protected void | appendFiles(Vector 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 File | createListFile(Vector files)Creates a list file. | 
| void | execute()execute this task. | 
| protected Vector | getFileList()Get the complete list of files to be included in the cab. | 
| protected boolean | isUpToDate(Vector files)Check to see if the target is up to date with respect to input files. | 
| void | setBasedir(File baseDir)Base directory to look in for files to CAB. | 
| void | setCabfile(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(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, setLocationprotected String archiveType
public void addFileset(FileSet set)
set - a set of files to archive.protected void appendFiles(Vector files, DirectoryScanner ds)
files - the vector to append the files to.ds - the scanner to get the files from.protected void checkConfiguration()
                           throws BuildException
BuildException - on error.protected ExecTask createExec() throws BuildException
BuildException - on error.protected File createListFile(Vector files) throws IOException
This method expects to only be called on Windows and thus quotes the file names.
files - the list of files to use.IOException - if there is an error.public void execute()
             throws BuildException
execute in class TaskBuildException - on error.protected Vector getFileList() throws BuildException
BuildException - if there is an error.protected boolean isUpToDate(Vector files)
files - the list of files to check.public void setBasedir(File baseDir)
baseDir - base directory for files to cab.public void setCabfile(File cabFile)
cabFile - the location of the cab file.public void setCompress(boolean compress)
compress - a boolean value.public void setOptions(String options)
options - cabarc command line options.public void setVerbose(boolean verbose)
verbose - a boolean value.