On Thu, 30 Oct 2025 18:47:12 GMT, Alexey Semenyuk <[email protected]> wrote:
> - Fix jpackage to handle correctly the `--launcher-as-service` cli option > when bundling a native bundle from the predefined app image. > - Rework `LauncherAsServiceVerifier` to make it work with `JPackageCommand` > and `PackageTest`. This allows using it in tests when jpackage creates a > native bundle from the predefined app image (`--app-image` option). > - Add relevant test cases to `ServiceTest`. The new test cases cover > "launcher-as-service" feature for additional launchers. > - Fix `MacHelper.getPackageId()` to make it work when bundling a native > bundle from the predefined app image. > > Supplementary changes: > - Get rid of "thows IOException" from all method signatures in `CfgTest` and > `TKit.traceFileContents()`. > - Format `TKit.createTextFile()` and `TKit.createPropertiesFile()`. > - Add `JPackageCommand.mainLauncherName()`. It returns the same value as > `JPackageCommand.name()`, but will fail if called in case or runtime > bundling. Replace `JPackageCommand.name()` with > `JPackageCommand.mainLauncherName()` where appropriate. > - Add the `PropertyFinder` class, which provides a declarative way to > calculate the value of a property that may be sourced from one or a few cli > options, a property in an additionl launcher property file, and a value in > the app image file (.jpackage.xml). This pull request has now been integrated. Changeset: f7f4f903 Author: Alexey Semenyuk <[email protected]> URL: https://git.openjdk.org/jdk/commit/f7f4f903cfdafecf69ff47d5d37e254adaf63141 Stats: 632 lines in 14 files changed: 480 ins; 42 del; 110 mod 8370969: --launcher-as-service option is ignored when used with --app-image option Reviewed-by: almatvee ------------- PR: https://git.openjdk.org/jdk/pull/28071
