Package org.apache.tools.ant.taskdefs
Class Untar
- java.lang.Object
- 
- org.apache.tools.ant.ProjectComponent
- 
- org.apache.tools.ant.Task
- 
- org.apache.tools.ant.taskdefs.Expand
- 
- org.apache.tools.ant.taskdefs.Untar
 
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable
 
 public class Untar extends Expand Untar a file.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. - Since:
- Ant 1.1
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classUntar.UntarCompressionMethodValid Modes for Compression attribute to Untar Task
 - 
Field Summary- 
Fields inherited from class org.apache.tools.ant.taskdefs.ExpandERROR_MULTIPLE_MAPPERS, NATIVE_ENCODING
 - 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description Untar()
 - 
Method SummaryModifier and Type Method Description protected voidexpandFile(FileUtils fileUtils, java.io.File srcF, java.io.File dir)This method is to be overridden by extending unarchival tasks.protected voidexpandResource(Resource srcR, java.io.File dir)This method is to be overridden by extending unarchival tasks.voidsetCompression(Untar.UntarCompressionMethod method)Set decompression algorithm to use; default=none.voidsetScanForUnicodeExtraFields(boolean b)No unicode extra fields in tar.- 
Methods inherited from class org.apache.tools.ant.taskdefs.Expandadd, add, addFileset, addPatternset, createMapper, execute, extractFile, getAllowFilesToEscapeDest, getEncoding, getFailOnEmptyArchive, getMapper, getScanForUnicodeExtraFields, internalSetEncoding, internalSetScanForUnicodeExtraFields, setAllowFilesToEscapeDest, setDest, setEncoding, setFailOnEmptyArchive, setOverwrite, setSrc, setStripAbsolutePathSpec
 - 
Methods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 - 
Methods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
- 
 
- 
- 
- 
Method Detail- 
setCompressionpublic void setCompression(Untar.UntarCompressionMethod method) Set decompression algorithm to use; default=none. Allowable values are- none - no compression
- gzip - Gzip compression
- bzip2 - Bzip2 compression
- xz - XZ compression, requires XZ for Java
 - Parameters:
- method- compression method
 
 - 
setScanForUnicodeExtraFieldspublic void setScanForUnicodeExtraFields(boolean b) No unicode extra fields in tar.- Overrides:
- setScanForUnicodeExtraFieldsin class- Expand
- Parameters:
- b- boolean
- Since:
- Ant 1.8.0
 
 - 
expandFileprotected void expandFile(FileUtils fileUtils, java.io.File srcF, java.io.File dir) Description copied from class:ExpandThis method is to be overridden by extending unarchival tasks.- Overrides:
- expandFilein class- Expand
- Parameters:
- fileUtils- the fileUtils
- srcF- the source file
- dir- the destination directory
- See Also:
- Expand.expandFile(FileUtils, File, File)
 
 - 
expandResourceprotected void expandResource(Resource srcR, java.io.File dir) This method is to be overridden by extending unarchival tasks.- Overrides:
- expandResourcein class- Expand
- Parameters:
- srcR- the source resource
- dir- the destination directory
- Since:
- Ant 1.7
 
 
- 
 
-