Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8370155

jpackage misleading/ambigous logging on icons used in packaging

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 17, 21, 25, 26
    • tools
    • None
    • generic
    • generic

      There are a couple of issues with the icon-related log messages in verbose mode:

      1. Misleading messages about files picked from the resource directory. Output from "IconTest(AppImage, ResourceDirIcon, DefaultIcon)" test:
      ---
      TRACE: Files in [IconTest/test.660c05f0/resources] resource dir:
      TRACE: [IconTest.png]
      TRACE: Done
      ...
      Creating app package: IconTest in IconTest/test.660c05f0/output
      Using custom package resource [icon] (loaded from IconTest.png).
      Using custom package resource [icon] (loaded from x.png).
      ---

      "IconTest" is the app's name, and "x" is the name of the additional launcher. The resource directory only contains the "IconTest.png" file, and there is no "x.png" file, yet jpackage reports that it picked the icon for the "x" launcher from the "x.png" file. This is misleading.
      The output should be:
      ---
      Using custom package resource [icon] (loaded from IconTest.png).
      Using custom package resource [icon] (loaded from IconTest.png).
      ---

      This is issue #2 - the way jpackage prints log messages about used icons (at least) is ambiguous.

            asemenyuk Alexey Semenyuk
            asemenyuk Alexey Semenyuk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: