public class Untar extends Expand
PatternSets are used to select files to extract from the archive. If no patternset is used, all files are extracted.
FileSets 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.
| Modifier and Type | Class and Description |
|---|---|
static class |
Untar.UntarCompressionMethod
Valid Modes for Compression attribute to Untar Task
|
ERROR_MULTIPLE_MAPPERS, NATIVE_ENCODINGdescription, location, project| Constructor and Description |
|---|
Untar() |
| Modifier and Type | Method and Description |
|---|---|
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 |
setScanForUnicodeExtraFields(boolean b)
No unicode extra fields in tar.
|
add, add, addFileset, addPatternset, createMapper, execute, extractFile, getEncoding, getFailOnEmptyArchive, getMapper, getScanForUnicodeExtraFields, internalSetEncoding, internalSetScanForUnicodeExtraFields, setDest, setEncoding, setFailOnEmptyArchive, setOverwrite, setSrc, setStripAbsolutePathSpecbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectpublic void setCompression(Untar.UntarCompressionMethod method)
method - compression methodpublic void setScanForUnicodeExtraFields(boolean b)
setScanForUnicodeExtraFields in class Expandprotected void expandFile(FileUtils fileUtils, java.io.File srcF, java.io.File dir)
expandFile in class ExpandfileUtils - the fileUtilssrcF - the source filedir - the destination directoryprotected void expandResource(Resource srcR, java.io.File dir)
expandResource in class ExpandsrcR - the source resourcedir - the destination directory