> Alternate implementation - this version only contains one argument - the name
> of the properties file. If an include statement is needed, it should be
> inserted in the properties file and it will always be added as the last line
> of the the conf/security/java.security configuration file..
>
> See https://github.com/openjdk/jdk/pull/30635 for the other implementation.
>
> This is a new jlink plugin which allows the user to specify values of
> security properties it wants to override in the conf/security/java.security
> configuration file in a custom runtime image. This enhancement, along with
> https://github.com/openjdk/jdk/pull/29700 allow users to more easily create
> runtimes that address the specific security requirements of their
> applications.
>
> The command-line syntax takes a file containing properties that the user
> wants to override. The file can also contain an include statement which will
> be added as the last line of the conf/security/java.security configuration
> file.
>
> For example:
>
> jlink --security-properties props.security
>
> where props.security is a file containing one more more properties in the
> java.security file syntax.
>
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK
> Interim AI Policy](https://openjdk.org/legal/ai).
Sean Mullan has updated the pull request with a new target base due to a merge
or a rebase. The pull request now contains 43 commits:
- Merge
- Add test for modular image using customized java.security file.
Add other various improvements and tests for different property syntax.
- Use Properties API to parse each property.
Add method to determine if props file has comments or blank lines.
Add method to determine if property is multi-lined value.
Store props in Properties object instead of Map.
- Add extract method to JModTask.
- Revert change made to java.security file.
- Support lines of just whitespace.
- Support all delimiters ('=', ':', whitespace)
- Use ISO_8859_1 to read/write property files.
Improve SkippedException message.
- Alternate jlink --security-properties implementation. There is no separate
option for the include file.
- Document that comments in the properties file are ignored.
- ... and 33 more: https://git.openjdk.org/jdk/compare/9c6e2f49...55f102ed
-------------
Changes: https://git.openjdk.org/jdk/pull/31884/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31884&range=03
Stats: 535 lines in 6 files changed: 533 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/31884.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/31884/head:pull/31884
PR: https://git.openjdk.org/jdk/pull/31884