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_ENCODING
Constructor and Description |
---|
Untar() |
Modifier and Type | Method and Description |
---|---|
protected void |
expandFile(FileUtils fileUtils,
File srcF,
File dir)
This method is to be overridden by extending unarchival tasks.
|
protected void |
expandResource(Resource srcR,
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, setStripAbsolutePathSpec
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
protected void expandFile(FileUtils fileUtils, File srcF, File dir)
expandFile
in class Expand
fileUtils
- the fileUtilssrcF
- the source filedir
- the destination directoryprotected void expandResource(Resource srcR, File dir)
expandResource
in class Expand
srcR
- the source resourcedir
- the destination directorypublic void setCompression(Untar.UntarCompressionMethod method)
method
- compression methodpublic void setScanForUnicodeExtraFields(boolean b)
setScanForUnicodeExtraFields
in class Expand