ZipTask

The ZipTask creates a .zip archive from a fileset or directory.

Table 172. Attributes

Name Type Description Default Required
destfile String .ZIP filename n/a Yes
basedir String Base directory to zip (if no fileset specified, entire directory contents will be included in the archive) none No
prefix String File path prefix to use when adding files to zip none No
includeemptydirs Boolean If set to true, also empty directories are copied. true No

Important note: using basedir and fileset simultaneously can result in strange contents in the archive.