|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.MatchingTask | +--org.apache.tools.ant.taskdefs.optional.Cab
Create a CAB archive.
Field Summary | |
protected java.lang.String |
archiveType
|
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
fileset, useDefaultExcludes |
Fields inherited from class org.apache.tools.ant.Task |
description, location, project, target, taskName, taskType, wrapper |
Constructor Summary | |
Cab()
|
Method Summary | |
void |
addFileset(FileSet set)
Adds a set of files (nested fileset attribute). |
protected void |
appendFiles(java.util.Vector files,
DirectoryScanner ds)
Append all files found by a directory scanner to a vector. |
protected void |
checkConfiguration()
|
protected Commandline |
createCommand(java.io.File listFile)
Create the cabarc command line to use. |
protected ExecTask |
createExec()
Create a new exec delegate. |
protected java.io.File |
createListFile(java.util.Vector files)
Creates a list file. |
protected java.io.File |
createTempFile(java.lang.String prefix,
java.lang.String suffix)
|
void |
execute()
Called by the project to let the task do it's work. |
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)
This is the base directory to look in for things to cab. |
void |
setCabfile(java.io.File cabFile)
This is the name/location of where to create the .cab file. |
void |
setCompress(boolean compress)
Sets whether we want to compress the files or only store them. |
void |
setOptions(java.lang.String options)
Sets additional cabarc options that aren't supported directly. |
void |
setVerbose(boolean verbose)
Sets whether we want to see or suppress cabarc output. |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
createExclude, createInclude, createPatternSet, getDirectoryScanner, setDefaultexcludes, setExcludes, setExcludesfile, setIncludes, setIncludesfile, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getProject, getRuntimeConfigurableWrapper, getTaskName, init, log, log, maybeConfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class java.lang.Object |
clone, 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)
public void setBasedir(java.io.File baseDir)
public void setCompress(boolean compress)
public void setVerbose(boolean verbose)
public void setOptions(java.lang.String options)
public void addFileset(FileSet set)
protected void checkConfiguration() throws BuildException
protected ExecTask createExec() throws BuildException
protected boolean isUpToDate(java.util.Vector files)
protected Commandline createCommand(java.io.File listFile)
protected java.io.File createTempFile(java.lang.String prefix, java.lang.String suffix)
protected java.io.File createListFile(java.util.Vector files) throws java.io.IOException
protected void appendFiles(java.util.Vector files, DirectoryScanner ds)
protected java.util.Vector getFileList() throws BuildException
public void execute() throws BuildException
Task
execute
in class Task
org.apache.tools.ant.Task
BuildException
- if someting goes wrong with the build
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |