|
|||||||||
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.Expand org.apache.tools.ant.taskdefs.Untar
public class Untar
Untar a file.
For JDK 1.1 "last modified time" field is set to current time instead of being carried from the archive file.
PatternSets are used to select files to extract from the archive. If no patternset is used, all files are extracted.
FileSet>s may be used to select archived files to perform unarchival upon.
File permissions will not be restored on extracted files.
The untar task recognizes the long pathname entries used by GNU tar.
Nested Class Summary | |
---|---|
static class |
Untar.UntarCompressionMethod
Valid Modes for Compression attribute to Untar Task |
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.taskdefs.Expand |
---|
ERROR_MULTIPLE_MAPPERS |
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 | |
---|---|
Untar()
|
Method Summary | |
---|---|
protected void |
expandFile(FileUtils fileUtils,
java.io.File srcF,
java.io.File dir)
This method is to be overridden by extending unarchival tasks. |
protected void |
expandResource(Resource srcR,
java.io.File dir)
This method is to be overridden by extending unarchival tasks. |
void |
setCompression(Untar.UntarCompressionMethod method)
Set decompression algorithm to use; default=none. |
void |
setEncoding(java.lang.String encoding)
No encoding support in Untar. |
Methods inherited from class org.apache.tools.ant.taskdefs.Expand |
---|
add, add, addFileset, addPatternset, createMapper, execute, extractFile, getMapper, setDest, setOverwrite, setSrc |
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 |
Constructor Detail |
---|
public Untar()
Method Detail |
---|
public void setCompression(Untar.UntarCompressionMethod method)
method
- compression methodpublic void setEncoding(java.lang.String encoding)
setEncoding
in class Expand
encoding
- not used
BuildException
- alwaysprotected void expandFile(FileUtils fileUtils, java.io.File srcF, java.io.File dir)
expandFile
in class Expand
fileUtils
- the fileUtilssrcF
- the source filedir
- the destination directoryprotected void expandResource(Resource srcR, java.io.File dir)
expandResource
in class Expand
srcR
- the source resourcedir
- the destination directory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |