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=28320>. 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=28320 copy task preserving permissions ------- Additional Comments From [EMAIL PROTECTED] 2004-04-19 20:27 ------- I have completed my addition to ant which allows file permission preserving while copying. The way I did this was to extend the FileUtils class, overriding the copyFile method. Then I extended Copy to a new task which used the new FileUtils class to do the copying. So far, the library I wrote will (eventually) work on both Posix and NTFS filesystems, but I haven't yet tested it on NTFS. I ran into one snag, which I hope can be fixed. Copy keeps the FileUtils object that it uses as a private member, so I had to modify ant's Copy.java file to change the permission of the fileUtils member to protected. Any way this update could be made permanent? Another thought on this is that the copyFile method in FileUtils is used in more than just the Copy task. If there was a way to instruct all of Ant's core tasks to use a *different* object other than Ant's FileUtils (i.e. my extended version), then I could keep the same task names, and all the copy operations will preserve permissions. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]