<chmod>

<chmod> gives you the ability to change the permission of a file, directory, or set of files under UNIX. (It currently has no effect under other operating systems.) To that end, the permission attribute value is also specified in UNIX style; for example, ug+rwx. This attribute and the rest of the tasks attributes are detailed in Table 4.11.

Table 4.11. Table of <chmod> Attributes
Attributes Description
Required
dir (required if file and fileset are not specified) The name of a directory that holds the files whose permissions are to be changed.
file (required if dir and fileset are not specified) The name of the single file or directory whose permissions are to be changed.
perm The new permissions to apply.
Optional
defaultexcludes ...

Get Ant Developer’s Handbook 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.