org.apache.tools.ant.taskdefs.optional
public class Cab extends MatchingTask
Field Summary | |
---|---|
protected String | archiveType |
Method Summary | |
---|---|
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. |
Parameters: set a set of files to archive.
Parameters: files the vector to append the files to. ds the scanner to get the files from.
Throws: BuildException on error.
Returns: the delegate.
Throws: BuildException on error.
This method expects to only be called on Windows and thus quotes the file names.
Parameters: files the list of files to use.
Returns: the list file created.
Throws: IOException if there is an error.
Throws: BuildException on error.
Returns: the list of files.
Throws: BuildException if there is an error.
Parameters: files the list of files to check.
Returns: true if the cab file is newer than its dependents.
Parameters: baseDir base directory for files to cab.
Parameters: cabFile the location of the cab file.
Parameters: compress a boolean
value.
Parameters: options cabarc command line options.
Parameters: verbose a boolean
value.