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

No appropriate error message when wix tools missing.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: internal
    • Fix Version/s: internal
    • Component/s: tools
    • Labels:

      Description

      I accidentally ran jpackage on windows in an environment that didn't have path set to point to wix tools.
      The result when running jpackage with --package-type either "msi" or "exe" was error saying :
      Error: Invalid or unsupported package type: [exe].
      Even with --verbose, there is no indication why the package type is unsupported.

      This is because WinMsiBundler.isSupported() now returns false, and we don't get to the code in winMsiBundler.validate(). that previously threw the exception with the explanation.

      This change may have been appropriate, but then either the error message itself or at least a verbose println should have been added to indicate the reason.


        Attachments

          Activity

            People

            • Assignee:
              herrick Andy Herrick
              Reporter:
              herrick Andy Herrick
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: