org.apache.tools.ant.taskdefs
public class Untar extends Expand
For JDK 1.1 "last modified time" field is set to current time instead of being carried from the archive file.
PatternSets are used to select files to extract from the archive. If no patternset is used, all files are extracted.
FileSet>s 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
UNKNOWN: category="packaging"
Nested Class Summary | |
---|---|
static class | Untar.UntarCompressionMethod
Valid Modes for Compression attribute to Untar Task
|
Method Summary | |
---|---|
protected void | expandFile(FileUtils fileUtils, File srcF, File dir) {@inheritDoc} |
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 | setEncoding(String encoding)
No encoding support in Untar. |
Parameters: srcR the source resource dir the destination directory
Since: Ant 1.7
Parameters: method compression method
Parameters: encoding not used
Throws: BuildException always
Since: Ant 1.6