java.lang.Cloneablepublic 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 | Description |
|---|---|---|
static class |
Untar.UntarCompressionMethod |
Valid Modes for Compression attribute to Untar Task
|
ERROR_MULTIPLE_MAPPERS, NATIVE_ENCODINGdescription, location, project| Constructor | Description |
|---|---|
Untar() |
| Modifier and Type | Method | 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, setStripAbsolutePathSpecequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setCompression(Untar.UntarCompressionMethod method)
method - compression methodpublic void setScanForUnicodeExtraFields(boolean b)
setScanForUnicodeExtraFields in class Expandb - booleanprotected void expandFile(FileUtils fileUtils, java.io.File srcF, java.io.File dir)
ExpandexpandFile in class ExpandfileUtils - the fileUtilssrcF - the source filedir - the destination directoryExpand.expandFile(FileUtils, File, File)protected void expandResource(Resource srcR, java.io.File dir)
expandResource in class ExpandsrcR - the source resourcedir - the destination directory