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 9809] New: - [SUBMIT] Chgrp, Chown Tasks
Date Wed, 12 Jun 2002 16:29:13 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9809>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9809

[SUBMIT] Chgrp, Chown Tasks

           Summary: [SUBMIT] Chgrp, Chown Tasks
           Product: Ant
           Version: 1.6Alpha (nightly)
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: gus.heck@olin.edu


I am putting this in bugzilla because it seems people are too busy to look at 
this during the 1.5 beta cycle and I don't want it to be forgotten.

I have written two new tasks, chgrp and chown. They work exactly like 
the existing chmod task. In fact the way I wrote them was to split 
Chmod.java into AbstractAccessTask.java  and a new Chmod.java which 
subclasses this. Then it was extremly easy to tweak the new chmod task 
into the two new tasks. The documentation I provide is basically the 
chmod docs with the appropriate search/replaces too.

I have done this (and my symlink task previously submitted) because I 
want to (insofar as possible) be able to store the contents of a 
directory in CVS, delete the directory and then recreate an (almost) 
exact copy of the directory by calling an ant target that checks stuff 
out of cvs, recreates the links, and resets all the perms/ownerships

With these tasks this is now possible on unix platforms at least, with 
the exception that the symlinks will get converted to canonical forms, 
but this is as best I can tell an insurmountable limitation of java.

I hope you like these tasks and will want to include them.

Gus

(P.S. I'm not sure I like the name AbstractAccessTask even though I 
picked it. Feel free to think of a better one.)

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


Mime
View raw message