Download Ant User Manual

Transcript
6.26 GUnzip
6.26 GUnzip
6.26.1 Description
Expands a GZip file.
If dest is a directory the name of the destination file is the same as src (with the ".gz" extension removed if
present). If dest is omitted, the parent dir of src is taken. The file is only expanded if the source file is
newer than the destination file, or when the destination file does not exist.
6.26.2 Parameters
Attribute Description
Required
src
the file to expand.
Yes
dest
the destination file or directory.
No
6.26.3 Examples
<gunzip src="test.tar.gz"/>
expands test.tar.gz to test.tar
<gunzip src="test.tar.gz" dest="test2.tar"/>
expands test.tar.gz to test2.tar
<gunzip src="test.tar.gz" dest="subdir"/>
expands test.tar.gz to subdir/test.tar (assuming subdir is a directory).
- 78 -