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 5661] New: - File Permissions not preserved in replace task
Date Wed, 02 Jan 2002 18:35:34 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=5661>.
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=5661

File Permissions not preserved in replace task

           Summary: File Permissions not preserved in replace task
           Product: Ant
           Version: 1.4
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: k.henneuse@comstocksys.com


When using the replace task file permissions such as user execute are not
presserved.  This is probably because the task creates a temp file and
renames it once the replaces have been completed(guessing have not read
the code).  What needs to happen is that some sort of a stat() should
be called before modifying the file and the permissions should be reset
to what the stat() returned earlier.  Not sure how to do a stat() from
Java, so I am submitting as a defect.

--
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