Name

unzip (also unjar and unwar)

Synopsis

Unzips a ZIP file, a JAR file, or a WAR file.

Attributes

dest (all, File, Y)

The destination directory.

src (all, File, Y)

The file to expand.

overwrite (1.4, boolean, N)

If true, overwrite files even if they are newer than those in the archive. Defaults to true.

Content

None.

Example Usage

<unzip src="dist.jar" dest="${builddir}"/>

See Also

The jar, war, and zip tasks.

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.