this looks good - at least for now.

I would like to eventually override the generated cpl.plist with a user defined resource file.

/Andy


On 2/26/2019 10:10 PM, Alexander Matveev wrote:
Please review the jpackage fix for bug [1] at [2].

This is a fix for the JDK-8200758-branch branch of the open sandbox repository (jpackage).

By default pkgbuild generates package with BundleIsRelocatable set to true, which means if an application already exist on system (installed, generated on given system or just copied from somewhere else), installer will not install into default location (/Application), but instead will update the existing version in place. This is why installed application was not found in default location, since it was already exist on system. Fixed by generating package with BundleIsRelocatable set to false. Note: We used --component option for pkgbuild and in this case pkgbuild was considered app as single component. With --root (required when using component property list), pkgbuild was considered Java runtime as child component of application. This is why child sub-component is removed from cpl. Java runtime is still part of app and will be installed.

[1] https://bugs.openjdk.java.net/browse/JDK-8219144

[2] http://cr.openjdk.java.net/~almatvee/8219144/webrev.00/

Thanks,
Alexander

Reply via email to