addFileset
public void addFileset(FileSet set)
Adds a set of files to archive.
appendFiles
protected void appendFiles(Vector files,
DirectoryScanner ds)
Append all files found by a directory scanner to a vector.
checkConfiguration
protected void checkConfiguration()
throws BuildException
createExec
protected ExecTask createExec()
throws BuildException
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.
createListFile
protected File createListFile(Vector files)
throws IOException
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.
execute
public void execute()
throws BuildException
Called by the project to let the task do its work. This method may be
called more than once, if the task is invoked more than once.
For example,
if target1 and target2 both depend on target3, then running
"ant target1 target2" will run all tasks in target3 twice.
- execute in interface Task
getFileList
protected Vector getFileList()
throws BuildException
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.
isUpToDate
protected boolean isUpToDate(Vector files)
Check to see if the target is up to date with respect to input files.
- true if the cab file is newer than its dependents.
setBasedir
public void setBasedir(File baseDir)
Base directory to look in for files to CAB.
setCabfile
public void setCabfile(File cabFile)
The name/location of where to create the .cab file.
setCompress
public void setCompress(boolean compress)
If true, compress the files otherwise only store them.
setOptions
public void setOptions(String options)
Sets additional cabarc options that are not supported directly.
setVerbose
public void setVerbose(boolean verbose)
If true, display cabarc output.