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 |
setEncoding(java.lang.String encoding)
No encoding support in Untar.
|
void |
setScanForUnicodeExtraFields(boolean b)
No unicode extra fields in tar.
|
add, add, addFileset, addPatternset, createMapper, execute, extractFile, getEncoding, getFailOnEmptyArchive, getMapper, getScanForUnicodeExtraFields, internalSetEncoding, internalSetScanForUnicodeExtraFields, setDest, 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 setEncoding(java.lang.String encoding)
setEncoding
in class Expand
encoding
- not usedBuildException
- alwayspublic void setScanForUnicodeExtraFields(boolean b)
setScanForUnicodeExtraFields
in class Expand
protected 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