ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 36440] replaceregexp does not preserve file permissions
Date Tue, 13 Dec 2011 19:31:14 GMT

--- Comment #3 from Drew Goya <> 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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message