Name

chmod

Synopsis

Changes permissions on one or more files, just like the Unix chmod command. This task only works on Unix platforms.

Attributes

defaultexcludes (all, boolean, N)

Determines whether to use default excludes, as described in Chapter 4 under “FileSet DataType.” Defaults to true.

dir (all, File, *)

The directory holding files whose permissions will be changed.

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.

file (all, File, *)

The name of a file or directory to change permissions on.

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.

parallel (all, boolean, N)

If true, change permissions of all files using a single chmod command. Defaults to true.

perm (all, String, Y)

The new permissions to apply, such as g+w.

type (all, Enum, N)

Determines if names of plain files or directories are sent to the command. Allowable values are file, dir, or both. Defaults to file.

Exactly one of dir or file must be specified, or at least one nested <fileset> element.

Content

0..n nested patternset elements: <exclude>, <include>, <patternset> (all); <excludesfile>, <includesfile> (1.4)

Used in place of their corresponding attributes, these specify the set of included and excluded source files.

0..n nested <fileset> elements (all) ...

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.