next up previous contents index
Next: Concat Up: Chmod Previous: Parameters   Contents   Index

Examples

<chmod file="${dist}/start.sh" perm="ugo+rx"/>
makes the "start.sh" file readable and executable for anyone on a UNIX system.
    <chmod dir="${dist}/bin" perm="ugo+rx" includes="**/*.sh"/>
makes all ".sh" files below ${dist}/bin readable and executable for anyone on a UNIX system.
<chmod perm="g+w">
  <fileset dir="shared/sources1">
    <exclude name="**/trial/**"/>
  </fileset>
  <fileset refid="other.shared.sources"/>
</chmod>
makes all files below shared/sources1 (except those below any directory named trial) writable for members of the same group on a UNIX system. In addition all files belonging to a FileSet with id other.shared.sources get the same permissions.



Andrew Marlow 2003-07-08