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
description, 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, getAllowFilesToEscapeDest, getEncoding, getFailOnEmptyArchive, getMapper, getScanForUnicodeExtraFields, internalSetEncoding, internalSetScanForUnicodeExtraFields, setAllowFilesToEscapeDest, 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
public void setCompression(Untar.UntarCompressionMethod method)
method
- compression methodpublic void setScanForUnicodeExtraFields(boolean b)
setScanForUnicodeExtraFields
in class Expand
b
- booleanprotected void expandFile(FileUtils fileUtils, java.io.File srcF, java.io.File dir)
Expand
expandFile
in class Expand
fileUtils
- the fileUtilssrcF
- the source filedir
- the destination directory{@inheritDoc}
protected void expandResource(Resource srcR, java.io.File dir)
expandResource
in class Expand
srcR
- the source resourcedir
- the destination directory