RFR: 8231591: [TESTBUG] Create additional two phase jpackage tests

Alexander Matveev almatvee at openjdk.java.net
Mon Sep 21 23:41:25 UTC 2020


On Mon, 21 Sep 2020 14:05:08 GMT, Alexey Semenyuk <asemenyuk at openjdk.org> wrote:

>> https://bugs.openjdk.java.net/browse/JDK-8231591
>> 
>> - Added MultiLauncherTwoPhaseTest which uses predefine app image with multiple launcher and tests to make sure installer
>>   will create shortcuts for all launchers.
>> - Fixed Linux DesktopIntegration to create shortcuts for additional launcher if we using pre-define app image.
>
> src/jdk.incubator.jpackage/linux/classes/jdk/incubator/jpackage/internal/DesktopIntegration.java line 549:
> 
>> 547:     private final List<LinuxFileAssociation> associations;
>> 548:
>> 549:     private static boolean initAppImageLaunchers = true;
> 
> What is the logic behind static variable?

It is used to avoid infinite calls in DesktopIntegration(). I modified it by removing PREDEFINED_APP_IMAGE from
launcherParams.

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

PR: https://git.openjdk.java.net/jdk/pull/263


More information about the core-libs-dev mailing list