public class Cab extends MatchingTask
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
archiveType |
fileset
description, location, project
Constructor and Description |
---|
Cab() |
Modifier and Type | Method and Description |
---|---|
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()
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 files)
Creates a list file.
|
void |
execute()
execute this task.
|
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.
|
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
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation
public 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 set)
set
- 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 files)
files
- the list of files to check.protected java.io.File createListFile(java.util.Vector 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 files, DirectoryScanner ds)
files
- the vector to append the files to.ds
- the scanner to get the files from.protected java.util.Vector getFileList() throws BuildException
BuildException
- if there is an error.public void execute() throws BuildException
execute
in class Task
BuildException
- on error.