Modifier and Type | Field and Description |
---|---|
protected File |
dest |
protected File |
source |
protected Resource |
srcResource |
Constructor and Description |
---|
Unpack() |
Modifier and Type | Method and Description |
---|---|
void |
addConfigured(ResourceCollection a)
Set the source Archive resource.
|
void |
execute()
Execute the task.
|
protected abstract void |
extract()
Do the uncompressing.
|
protected abstract String |
getDefaultExtension()
Get the extension.
|
void |
setDest(File dest)
The destination file or directory; optional.
|
void |
setSrc(File src)
The file to expand; required.
|
void |
setSrcResource(Resource src)
The resource to expand; required.
|
protected boolean |
supportsNonFileResources()
Whether this task can deal with non-file resources.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
protected File dest
protected File source
protected Resource srcResource
public void addConfigured(ResourceCollection a)
a
- the archive as a single element Resource collection.public void execute() throws BuildException
execute
in class Task
BuildException
- on errorprotected abstract void extract()
protected abstract String getDefaultExtension()
public void setDest(File dest)
dest
- destination file or directorypublic void setSrc(File src)
src
- file to expandpublic void setSrcResource(Resource src)
src
- resource to expandprotected boolean supportsNonFileResources()
This implementation returns false.