RFR: 8285452: Support new API to replace a file content using FileUtils.java [v3]
Weijun Wang
weijun at openjdk.java.net
Wed Apr 27 13:55:44 UTC 2022
On Fri, 22 Apr 2022 14:35:14 GMT, Sibabrata Sahoo <ssahoo at openjdk.org> wrote:
>> A new API to support replacing selective lines with desired content.
>
> Sibabrata Sahoo has updated the pull request incrementally with one additional commit since the last revision:
>
> Update FileUtils.java
Currently it's just for one test, but it's the exact kind of method that should go into the test library, i.e. a general purpose file manipulation utility that can be useful by everyone.
`patch` overwrites the input file (by default) too. We can always enhance it to support `-o`.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8360
More information about the core-libs-dev
mailing list