RFR: 8333727: Use JOpt in jpackage to parse command line [v6]

Alexey Semenyuk asemenyuk at openjdk.org
Sat Nov 15 00:52:11 UTC 2025


On Sat, 15 Nov 2025 00:28:13 GMT, Alexander Matveev <almatvee at openjdk.org> wrote:

>> `IS_EXISTENT_NOT_DIRECTORY` means it can be a regular file or a symlink.
>
> In this case should it be something like below? Sounds more clear to me.
> 
> ``` 
> static final Predicate<Path> IS_FILE_OR_SYMLINK = path -> {
>         return Files.isRegularFile(path) || Files.isSymbolicLink(path);
> };

It isn't particularly clear to me, but I trust your fresh look. Will update you as suggested.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/28163#discussion_r2529338660


More information about the core-libs-dev mailing list