Modifier and Type | Field and Description |
---|---|
protected String | |
private File | |
private File | |
private String | |
private static final int | |
private boolean | |
private boolean | |
private static final FileUtils | |
private boolean |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | |
protected void | appendFiles(Vector<String>
the vector to append the files to. files, DirectoryScanner the scanner to get the files from. ds)Append all files found by a directory scanner to a vector. |
protected void | |
protected ExecTask | |
protected File | Returns: the list file created.the list of files to use. files)Creates a list file. |
public void | |
protected Vector | |
protected boolean | Returns: true if the cab file is newer than its dependents.the list of files to check. files)Check to see if the target is up to date with respect to input files. |
public void | |
public void | setCabfile(File
the location of the cab file. cabFile)The name/location of where to create the .cab file. |
public void | |
public void | setOptions(String
cabarc command line options. options)Sets additional cabarc options that are not supported directly. |
public void |
archiveType | back to summary |
---|---|
protected String archiveType |
baseDir | back to summary |
---|---|
private File baseDir |
cabFile | back to summary |
---|---|
private File cabFile |
cmdOptions | back to summary |
---|---|
private String cmdOptions |
DEFAULT_RESULT | back to summary |
---|---|
private static final int DEFAULT_RESULT |
doCompress | back to summary |
---|---|
private boolean doCompress |
doVerbose | back to summary |
---|---|
private boolean doVerbose |
FILE_UTILS | back to summary |
---|---|
private static final FileUtils FILE_UTILS |
filesetAdded | back to summary |
---|---|
private boolean filesetAdded |
Cab | back to summary |
---|---|
public Cab() |
addFileset | back to summary |
---|---|
public void addFileset(FileSet fileset) Adds a set of files to archive.
|
appendFiles | back to summary |
---|---|
protected void appendFiles(Vector<String> files, DirectoryScanner ds) Append all files found by a directory scanner to a vector.
|
checkConfiguration | back to summary |
---|---|
protected void checkConfiguration() throws BuildException Check if the attributes and nested elements are correct.
|
createExec | back to summary |
---|---|
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 | back to summary |
---|---|
protected File createListFile(Vector<String> 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 | back to summary |
---|---|
public void execute() throws BuildException Overrides org. execute this task.
|
getFileList | back to summary |
---|---|
protected Vector Get the complete list of files to be included in the cab. Filenames are gathered from the fileset if it has been added, otherwise from the traditional include parameters.
|
isUpToDate | back to summary |
---|---|
protected boolean isUpToDate(Vector<String> files) Check to see if the target is up to date with respect to input files. |
setBasedir | back to summary |
---|---|
public void setBasedir(File baseDir) Base directory to look in for files to CAB.
|
setCabfile | back to summary |
---|---|
public void setCabfile(File cabFile) The name/location of where to create the .cab file.
|
setCompress | back to summary |
---|---|
public void setCompress(boolean compress) If true, compress the files otherwise only store them.
|
setOptions | back to summary |
---|---|
public void setOptions(String options) Sets additional cabarc options that are not supported directly.
|
setVerbose | back to summary |
---|---|
public void setVerbose(boolean verbose) If true, display cabarc output.
|