RFR: 8340311: JPackage app-image exe launches multiple exe's in JDK 22+ [v3]
Alexey Semenyuk
asemenyuk at openjdk.org
Fri Nov 1 22:02:56 UTC 2024
> Support `win.norestart` application property in jpackage .cfg file. If found in the .cfg file and set to `true`, it forces the Windows app launcher not to restart the launcher process.
>
> Collateral changes to the tests:
> - Added `WindowsHelper.killProcess()` to kill process by PID;
> - Added `WindowsHelper.findAppLauncherPID()` that will return PIDs of the running app launcher processes for the given app launcher name. The implementation grabbed from `Win8301247Test` test;
> - Rework `CfgFile` to make it R/W and capable of writing multiple instances of the same key;
> - Added `JPackageCommand.ignoreFakeRuntime()` to ignore external runtime if it is a stub. Should speed up local test runs.
Alexey Semenyuk has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 15 additional commits since the last revision:
- Merge branch 'master' into JDK-8340311
- Better log message
- Rework findAppLauncherPID() into findAndKillAppLauncherProcess() that will kill detected running app launcher processes regardless if their number is as expected or not.
- A comment added
- Fix copyright year
- fix order of modifiers
- fix order of modifiers
- fix order of modifiers
- Merge branch 'master' into JDK-8340311
- Better function names
- ... and 5 more: https://git.openjdk.org/jdk/compare/ebebe95a...d87a5a41
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/21726/files
- new: https://git.openjdk.org/jdk/pull/21726/files/4aa56aa1..d87a5a41
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=21726&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=21726&range=01-02
Stats: 48446 lines in 822 files changed: 4607 ins; 40796 del; 3043 mod
Patch: https://git.openjdk.org/jdk/pull/21726.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/21726/head:pull/21726
PR: https://git.openjdk.org/jdk/pull/21726
More information about the core-libs-dev
mailing list