org.apache.tools.ant.taskdefs.optional
Class Cab
public
class
Cab
extends MatchingTask
Create a CAB archive.
| 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() |
| protected ExecTask | createExec()
Create a new exec delegate. |
| protected File | createListFile(Vector files)
Creates a list file. |
| void | execute() |
| 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. |
protected String archiveType
public void addFileset(
FileSet set)
Adds a set of files to archive.
Append all files found by a directory scanner to a vector.
protected void checkConfiguration()
Create a new exec delegate. The delegate task is populated so that
it appears in the logs to be the same task as this one.
protected File createListFile(Vector files)
Creates a list file. This temporary file contains a list of all files
to be included in the cab, one file per line.
This method expects to only be called on Windows and thus
quotes the file names.
public void execute()
protected Vector getFileList()
Get the complete list of files to be included in the cab. Filenames
are gathered from filesets if any have been added, otherwise from the
traditional include parameters.
protected boolean isUpToDate(Vector files)
Check to see if the target is up to date with respect to input files.
Returns: true if the cab file is newer than its dependents.
public void setBasedir(File baseDir)
Base directory to look in for files to CAB.
public void setCabfile(File cabFile)
The name/location of where to create the .cab file.
public void setCompress(boolean compress)
If true, compress the files otherwise only store them.
public void setOptions(String options)
Sets additional cabarc options that are not supported directly.
public void setVerbose(boolean verbose)
If true, display cabarc output.
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.