You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Mariusz Nowostawski <ma...@marni.otago.ac.nz> on 2000/05/26 01:53:02 UTC
[PATCH] chmod task include/exclude aware
The patched Chmod task is aware of include/exclude pattern.
Changes to the task:
* new chmod takes 'dir' or 'file' attributes, together with old 'perm'
attribute (file/dir are replacing old 'src' attribute)
* if both file and dir are specified or if neither is specified, task will
throw build exception
* if 'file' is specified, no matter if include/exclude is used, the chmod
will change the mode of this single specified file (or directory)
Examples:
single file:
<chmod file="bin/file.sh" perm="u+rwx" />
single directory:
<chmod file="bin" perm="ogu+rwx" />
list of files:
<chmod dir="./bin" perm="u+rwx">
<include name="*.sh" />
<include name="*.csh" />
</chmod>
regards
Mariusz