diff --git a/WHATSNEW b/WHATSNEW index f0bb9aad3..def9dfce4 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -17,13 +17,15 @@ org.apache.tools.ant to org.apache.tools.ant.types. * the class attribute of has been removed. +* the src attribute of has been removed. + * and have lost some of their attributes. * and have lost some undocumented attributes. * the Unix antRun script would search for command.sh in the directory it changed to and invoke this instead of command if present. This -beahvior has been dropped. +behavior has been dropped. Other changes: -------------- diff --git a/docs/index.html b/docs/index.html index 57498957b..7bde0497f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -906,18 +906,16 @@ if the org.whatever.Myclass is found in Ant's classpath.


Chmod

Description

-

Changes the permissions of a file or all files inside a specified directory. Right now it has efect only under Unix. +

Changes the permissions of a file or all files inside specified directories. Right now it has efect only under Unix. The permissions are also UNIX style, like the argument for the chmod command.

-

It is possible to refine the set of files whose permissions are changed. This can be -done with the includes, includesfile, excludes, excludesfile and defaultexcludes -attributes. With the includes or includesfile attribute you specify the files you want to -have included by using patterns. The exclude or excludesfile attribute is used to specify -the files you want to have excluded. This is also done with patterns. And -finally with the defaultexcludes attribute, you can specify whether you -want to use default exclusions or not. See the section on directory based tasks, on how the -inclusion/exclusion of files works, and how to write patterns. The patterns are -relative to the dir directory.

+

See the section on directory based +tasks, on how the inclusion/exclusion of files works, and how to +write patterns.

+

This task holds an implicit FileSet and +supports all of FileSet's attributes and nested elements +directly. More FileSets can be specified using nested +<fileset> or <filesetref> +elements.

Parameters

@@ -929,19 +927,13 @@ relative to the dir directory.

- + - - - - - @@ -977,6 +969,12 @@ relative to the dir directory.

("yes"/"no"). Default excludes are used when omitted. + + + + +
file the file or single directory of which the permissions must be changed.exactly one of the twoexactly one of the two or nested <fileset> elements.
dir the directory which holds the files whose permissions must be changed.
srcthe file or single directory of which the permissions - must be changed (deprecated, use file instead).No
perm the new permissions. No
parallelprocess all specified files using a single + chmod command. Defaults to true.No

Examples

@@ -985,12 +983,28 @@ relative to the dir directory.

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>
+  <filesetref 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.


Copydir

Description

diff --git a/src/main/org/apache/tools/ant/taskdefs/Chmod.java b/src/main/org/apache/tools/ant/taskdefs/Chmod.java index cde3cc76e..77aa5185d 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Chmod.java +++ b/src/main/org/apache/tools/ant/taskdefs/Chmod.java @@ -89,7 +89,7 @@ public class Chmod extends ExecuteOn { defaultSet.setDir(src); } - public void setSrc(File src) { + public void XsetSrc(File src) { log("The src attribute is deprecated. " + "Please use the file attribute.", Project.MSG_WARN);