ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36440] replaceregexp does not preserve file permissions
Date Tue, 13 Dec 2011 19:31:14 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=36440

--- Comment #3 from Drew Goya <drew.goya@gmail.com> 2011-12-13 19:31:14 UTC ---
I ran into this issue and wrote my own task as a work around which wasn't
difficult to implement at all.

Created a temp file
Parsed the target file and replaced the expressions
Wrote the results out to the temp file
Closed the temp and target files
Re-opened the temp file
Re-opened the target file (not appending)
Wrote the temp file to the target file

Permissions were preserved and the whole thing is about 20 lines.

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

Mime
View raw message