Name
zip
Synopsis
Creates a ZIP file.
Attributes
-
basedir
(all, File, N) Specifies the base directory from which to add files to the ZIP file.
-
compress
(all, boolean, N) If
true
, compress the ZIP file. Defaults totrue
.-
defaultexcludes
(all, boolean, N) Determines whether to use default excludes, as described in Chapter 4 under “FileSet DataType.” Defaults to
true
.-
encoding
(1.4, String, N) Specifies the character encoding for filenames inside the ZIP file. Defaults to whatever encoding the current VM uses.
-
excludes
(all, String, N) A comma-separated list of file patterns to exclude. These are in addition to the default excludes.
-
excludesfile
(all, File, N) The name of a file containing one exclude pattern per line.
-
filesonly
(1.4, boolean, N) If
true
, do not create empty directories. Defaults tofalse
.-
includes
(all, String, N) A comma-separated list of file patterns to include.
-
includesfile
(all, File, N) The name of a file containing one include pattern per line.
-
update
(1.4, boolean, N) If
true
, update the existing ZIP file when changes are made, rather than erasing and creating it from scratch. Defaults tofalse
.-
whenempty
(all, Enum, N) The behavior used when no files match. Defaults to
create
. Legal values are as follows:-
fail
Abort the build.
-
skip
Don’t create the ZIP file.
-
create
Create an empty ZIP file when no files are present.
-
-
zipfile
(all, File, Y) The name of the ZIP file to create.
Content
- 0..n nested
patternset
elements:<exclude>
,<include>
,<patternset>
(all);<excludesfile>
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.