ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariusz Nowostawski <mari...@marni.otago.ac.nz>
Subject [PATCH] chmod task include/exclude aware
Date Thu, 25 May 2000 23:53:02 GMT
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


Mime
View raw message