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

Add error message for unknown or unsupported installer types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • internal
    • tools
    • None

      For example if I run following commands on Linux:
      jpackage create-installer aaa --input input --output output --name Test --main-jar hello.jar --class Hello --force --files hello.jar
      create-installer dmg --input input --output output --name Test --main-jar hello.jar --class Hello --force --files hello.jar

      jpackage will exit silently without displaying any errors messages. Exit code will be set to 255 which seems correct, since no bundles are produced. With --verbose it also does not show any error messages.

      We should display something "Invalid installer type 'aaa' or maybe 'dmg' is not supported on this platform.

            herrick Andy Herrick (Inactive)
            almatvee Alexander Matveev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: