Integrated: 8340311: JPackage app-image exe launches multiple exe's in JDK 22+

Alexey Semenyuk asemenyuk at openjdk.org
Sat Nov 2 12:47:33 UTC 2024


On Sat, 26 Oct 2024 01:16:05 GMT, Alexey Semenyuk <asemenyuk at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 29882bfe
Author:    Alexey Semenyuk <asemenyuk at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/29882bfe7b7e76446a96862cd0a5e81c7e054415
Stats:     552 lines in 13 files changed: 400 ins; 91 del; 61 mod

8340311: JPackage app-image exe launches multiple exe's in JDK 22+

Reviewed-by: almatvee

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

PR: https://git.openjdk.org/jdk/pull/21726


More information about the core-libs-dev mailing list