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

InOutPathTest jpackage test produces invalid app image on macOS

XMLWordPrintable

    • b24
    • generic
    • os_x

      "InOutPathTest(IMAGE, --app-content same as --input)" test case of InOutPathTest test suite produces an invalid app image on macOS platform.

      It runs the following jpackage command line:
      ---
      jpackage --dest output --name InOutPathTest Hello --app-content output/InOutPathTest.app ...
      ---

      The value of the `--app-content` parameter equals the name of the output app image folder. This makes jpackage copy folder "output/InOutPathTest.app" in "output/InOutPathTest.app/Contents" folder invalidating its structure for signing. In some environments this will make codesign tool fail with the error:
      ---
         /usr/bin/codesign -s - -vvvv --force ./test.b682c86a/output/InOutPathTest.app
      [20:46:50.886] Output:
          ./test.b682c86a/output/InOutPathTest.app: code object is not signed at all
      ---

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

              Created:
              Updated:
              Resolved: