Name

gunzip

Synopsis

Expands a GZip file. The file is only expanded if the destination file does not exist or is older than the source file.

Attributes

dest (all, String, N)

The destination file or directory name. If omitted, dest defaults to the directory containing the source file. When dest is a directory, the destination filename is the src name, minus any .gz filename extension.

src (all, String, Y)

The name of the file to unzip.

Content

None.

Example Usage

Expand manuscript.tar.gz to manuscript.tar in the same directory:

<gunzip src="manuscript.tar.gz"/>

Expand manuscript.tar.gz to ${builddir}/manuscript.tar:

<gunzip src="manuscript.tar.gz" dest="${builddir}"/>

Use the untar task to expand the tar file after unzipping it.

See Also

The gzip task, and the untar task.

Get Ant: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.