C.83 UnzipTask
Prev | Appendix C. Optional tasks | Next

## C.83 UnzipTask

The `UnzipTask` unpacks one or more ZIP archives.

Table C.113: Attributes

Name | Type | Description | Default | Required
--- | --- | --- | --- | ---
`file` | `String` | Archive filename | n/a | No
`todir` | `String` | Directory to unpack the archive(s) to | none | Yes
`forceExtract` | `Boolean` | When set to false, only extract files if the destination does not exist yet or is older than the archive. When set to true, always extract files. | `false` | No

### C.83.1 Example

    <unzip file="testzip.zip" todir="dest">
      <fileset dir=".">
        <include name="*.zip"/>
      </fileset>
    </unzip>

### C.83.2 Supported Nested Tags

- `fileset`

Prev | Up | Next
C.82 UntarTask | Home | C.84 VersionTask