org.apache.tools.ant.taskdefs
public abstract class Unpack extends Task
Since: Ant 1.5
Field Summary | |
---|---|
protected File | dest |
protected File | source |
protected Resource | srcResource |
Method Summary | |
---|---|
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(String dest) |
void | setDest(File dest)
The destination file or directory; optional. |
void | setSrc(String src) |
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.
|
Parameters: a the archive as a single element Resource collection.
Throws: BuildException on error
Returns: the default extension.
Deprecated: since 1.5.x. setDest(String) is deprecated and is replaced with setDest(File) to make Ant's Introspection mechanism do the work and also to encapsulate operations on the type in its own class.
Parameters: dest a String
value
UNKNOWN: ignore="true"
Parameters: dest destination file or directory
Deprecated: since 1.5.x. setSrc(String) is deprecated and is replaced with setSrc(File) to make Ant's Introspection mechanism do the work and also to encapsulate operations on the type in its own class.
Parameters: src a String
value
UNKNOWN: ignore="true"
Parameters: src file to expand
Parameters: src resource to expand
This implementation returns false.
Returns: false for this task.
Since: Ant 1.7