|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.Unpack
public abstract class Unpack
Abstract Base class for unpack tasks.
Field Summary | |
---|---|
protected java.io.File |
dest
|
protected java.io.File |
source
|
protected Resource |
srcResource
|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
Unpack()
|
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 java.lang.String |
getDefaultExtension()
Get the extension. |
void |
setDest(java.io.File dest)
The destination file or directory; optional. |
void |
setDest(java.lang.String dest)
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. |
void |
setSrc(java.io.File src)
The file to expand; required. |
void |
setSrc(java.lang.String src)
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. |
void |
setSrcResource(Resource src)
The resource to expand; required. |
protected boolean |
supportsNonFileResources()
Whether this task can deal with non-file resources. |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.File source
protected java.io.File dest
protected Resource srcResource
Constructor Detail |
---|
public Unpack()
Method Detail |
---|
public void setSrc(java.lang.String src)
src
- a String
valuepublic void setDest(java.lang.String dest)
dest
- a String
valuepublic void setSrc(java.io.File src)
src
- file to expandpublic void setSrcResource(Resource src)
src
- resource to expandpublic void addConfigured(ResourceCollection a)
a
- the archive as a single element Resource collection.public void setDest(java.io.File dest)
dest
- destination file or directorypublic void execute() throws BuildException
execute
in class Task
BuildException
- on errorprotected abstract java.lang.String getDefaultExtension()
protected abstract void extract()
protected boolean supportsNonFileResources()
This implementation returns false.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |