|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.MatchingTask org.apache.tools.ant.taskdefs.optional.Cab
public class Cab
Create a CAB archive.
Field Summary | |
---|---|
protected java.lang.String |
archiveType
|
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
---|
fileset |
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
Cab()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
---|
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 |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String archiveType
Constructor Detail |
---|
public Cab()
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |