org.apache.tools.ant.taskdefs
Class Unpack
- Cloneable
public abstract class Unpack
Abstract Base class for unpack tasks.
bindToOwner , execute , getOwningTarget , getRuntimeConfigurableWrapper , getTaskName , getTaskType , getWrapper , handleErrorFlush , handleErrorOutput , handleFlush , handleInput , handleOutput , init , isInvalid , log , log , log , log , maybeConfigure , perform , reconfigure , setOwningTarget , setRuntimeConfigurableWrapper , setTaskName , setTaskType |
source
protected File source
srcResource
protected Resource srcResource
addConfigured
public void addConfigured(ResourceCollection a)
Set the source Archive resource.
a
- the archive as a single element Resource collection.
extract
protected abstract void extract()
Do the uncompressing.
This is to be overridden by subclasses.
getDefaultExtension
protected abstract String getDefaultExtension()
Get the extension.
This is to be overridden by subclasses.
setDest
public void setDest(File dest)
The destination file or directory; optional.
dest
- destination file or directory
setDest
public void setDest(String dest)
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.
setSrc
public void setSrc(File src)
The file to expand; required.
setSrc
public void setSrc(String src)
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.
setSrcResource
public void setSrcResource(Resource src)
The resource to expand; required.
supportsNonFileResources
protected boolean supportsNonFileResources()
Whether this task can deal with non-file resources.
This implementation returns false.