ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41054] New: - chmod task: set permission on single folder - documentation/implementation difference
Date Tue, 28 Nov 2006 14:58:50 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41054>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41054

           Summary: chmod task:  set permission on single folder -
                    documentation/implementation difference
           Product: Ant
           Version: 1.6.5
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P3
         Component: Documentation
        AssignedTo: dev@ant.apache.org
        ReportedBy: dominique.demunck@gmail.com


Hi,

for the chmod task, the docs explain the following attributes:

file  	the file or single directory of which the permissions must be changed.
dir  	the directory which holds the files whose permissions must be changed.

However, this is not what I'm experiencing (Ant 1.6.2 & 1.6.5).
If I want to set the permissions on the dir "myFolder" only, using

<chmod file="myFolder/" perm="a+w"/>

It does nothing but give the following output:

 mychmod:
    [chmod] Skipping fileset for directory
/home/devel/web_software/tomcat/webapps/lenya/lenya/pubs/WFS/content/authoring/documents/PDUC1.
It is empty.

Yet, it does exactly what I need (set the permission of a single folder)when
calling it with the dir attribute :

<chmod dir="myFolder/" perm="a+w"/>

I guess the implementation of the "Ant version 1.1" is still executed ?
Because I noticed in the latest source code the following extract:

  /*
   * In Ant 1.1, <chmod dir="foo" /> means, change the permissions
   * of directory foo, not anything inside of it.  This is the case the
   * second branch of the if statement below catches for backwards
   * compatibility.
   */

Yet this "backwards compatibility" clause conflicts with the documentation ?
Or am I missing something ?

my build file:


<project name="MS_DCTM_Migration" basedir="." default="mychmod">
 <target name="mychmod">
<chmod file="myFolder" perm="a+w"/>
</target>
</project>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message