RFR: 8340311: JPackage app-image exe launches multiple exe's in JDK 22+
Alexey Semenyuk
asemenyuk at openjdk.org
Wed Oct 30 17:45:29 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.
-------------
Commit messages:
- fix order of modifiers
- fix order of modifiers
- fix order of modifiers
- Merge branch 'master' into JDK-8340311
- Better function names
- - CfgFile can store multiple kvp-s with the same key names
- - CfgFile turned R/W from R/O
- Remove trailing whitespaces
- Reduce number of CfgFile copies
- 8340311: JPackage app-image exe launches multiple exe's in JDK 22+
Changes: https://git.openjdk.org/jdk/pull/21726/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21726&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8340311
Stats: 536 lines in 13 files changed: 386 ins; 88 del; 62 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