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

-Bidentifier="<SomeValue>" not working for modules in MAC

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • deploy
    • java version "9-internal"
      Java(TM) SE Runtime Environment (fastdebug build 9-internal+0-2016-10-04-145039.cbensen.jdk9udev)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 9-internal+0-2016-10-04-145039.cbensen.jdk9udev, mixed mode)

    • 9
    • Verified

      [MAC Developer Build 10/5/2016]

      1. please find the attachment for modular jars (com.greetings.jar and custom.util.jar)

      2. try to execute the following command at Mac Command line. javapackager -deploy -verbose -outdir outputdir -outfile test -native pkg --module-path modjars -Bidentifier=com.oracle.sqe.foo.bar.baz --module com.greetings/com.greetings.App1 -name IdentifierTestCLI

      3. please find the log "mac_identifier_test_log.txt" in the attachment for execution steps of step 2.

      4. Install pkg file available in "outputdir/IdentifierTestCLI-1.0.pkg" using the command sudo installer -pkg outputdir/IdentifierTestCLI-1.0.pkg -target / -allowUntrusted -dumplog -verbose check the attachment "mac_install_log.txt" for installation steps.

      5. Now check the value <key>CFBundleIdentifier</key> available in /Applications/IdentifierTestCLI.app/Contents/Info.plist.

      ACTUAL VALUE is "com.example.bad"
      EXPECTED VALUE: com.oracle.sqe.foo.bar.baz (passed to -Bidentifier in command line)

      Check the value of key "CFBundleIdentifier" below in Installed Info.plist

      stt-mac-42:appBundlerTestsJDK9 gtee$ cd /Applications/IdentifierTestCLI.app/
      stt-mac-42:IdentifierTestCLI.app gtee$ ls
      Contents
      stt-mac-42:IdentifierTestCLI.app gtee$ cd Contents/
      Info.plist Java/ MacOS/ PkgInfo PlugIns/ Resources/
      stt-mac-42:IdentifierTestCLI.app gtee$ cd Contents/
      Info.plist Java/ MacOS/ PkgInfo PlugIns/ Resources/
      stt-mac-42:IdentifierTestCLI.app gtee$ cd Contents/
      Info.plist Java/ MacOS/ PkgInfo PlugIns/ Resources/
      stt-mac-42:IdentifierTestCLI.app gtee$ cd Contents/
      Info.plist Java/ MacOS/ PkgInfo PlugIns/ Resources/
      stt-mac-42:IdentifierTestCLI.app gtee$ cd Contents/
      stt-mac-42:Contents gtee$ cat Info.plist
      <?xml version="1.0" ?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
       <dict>
        <key>LSMinimumSystemVersion</key>
        <string>10.7.4</string>
        <key>CFBundleDevelopmentRegion</key>
        <string>English</string>
        <key>CFBundleAllowMixedLocalizations</key>
        <true/>
        <key>CFBundleExecutable</key>
        <string>IdentifierTestCLI</string>
        <key>CFBundleIconFile</key>
        <string>IdentifierTestCLI.icns</string>
        <key>CFBundleIdentifier</key>
        <string>com.example.bad</string>
        <key>CFBundleInfoDictionaryVersion</key>
        <string>6.0</string>
        <key>CFBundleName</key>
        <string>IdentifierTestCLI</string>
        <key>CFBundlePackageType</key>
        <string>APPL</string>
        <key>CFBundleShortVersionString</key>
        <string>1.0</string>
        <key>CFBundleSignature</key>
        <string>????</string>
        <!-- See http://developer.apple.com/library/mac/#releasenotes/General/SubmittingToMacAppStore/_index.html
             for list of AppStore categories -->
        <key>LSApplicationCategoryType</key>
        <string>public.app-category.developer-tools</string>
        <key>CFBundleVersion</key>
        <string>1.0</string>
        <key>NSHumanReadableCopyright</key>
        <string>Copyright (C) 2016</string>
        <key>NSHighResolutionCapable</key>
        <string>true</string>
       </dict>
      </plist>


      6. check the second issue mentioned in comments section.

        1. mac_identifier_test_log.txt
          6 kB
          Ramesh Gangadhar
        2. mac_install_log.txt
          4 kB
          Ramesh Gangadhar

            vdrozdov Victor Drozdov (Inactive)
            rgangadhar Ramesh Gangadhar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: