[macos] Improve error messages for "invalid mac bundle identifier"

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • 27
    • Affects Version/s: 17, 21, 25, 26
    • Component/s: tools
    • generic
    • os_x

      Suggested improvements:
      $ ~/jdk-25.0.1.jdk/Contents/Home/bin/jpackage --input input --dest output --type app-image --main-jar hello.jar --main-class com.my_domain.project.Hello
      Bundler Mac Application Image skipped because of a configuration problem: invalid mac bundle identifier [com.my_domain.project] derived from main class.
      Advice to fix: specify identifier with "--mac-package-identifier".

      Additional text: derived from main class

      $ ~/jdk-25.0.1.jdk/Contents/Home/bin/jpackage --input input --dest output --type app-image --main-jar hello.jar --main-class com.my_domain.project.Hello --mac-package-identifier com.my_domain.project
      Bundler Mac Application Image skipped because of a configuration problem: invalid mac bundle identifier [com.my_domain.project] specified via "--mac-package-identifier".
      Advice to fix: specify valid identifier with "--mac-package-identifier”.

      Additional text: `specified via "--mac-package-identifier"` and `valid` in advice.

            Assignee:
            Alexey Semenyuk
            Reporter:
            Alexander Matveev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: