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

Wrong arguments set for additional launchers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: internal
    • Fix Version/s: internal
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      linux

      Description

      If `arguments` field in additional launcher property file is set to empty value the arguments for this launcher get copied from the arguments of the main launcher.

      To reproduce use three attached additional launcher files in jpackage command:
      ---
      jpackage ... --name SecondaryLaunchersTest --package-type deb --arguments Duke --arguments is --arguments the --arguments King --add-launcher Baz2=./Baz2.properties --add-launcher foo=./foo.properties --add-launcher Bar=./Bar.properties
      ---

      By some reason arguments of Baz2 launcher are not empty, but equal to arguments of the main launcher. Output cfg files attached.

      Reproduced on Linux, but seems to be platform unrelated problem.

        Attachments

        1. Bar.cfg
          0.2 kB
        2. Bar.cfg.txt
          0.2 kB
        3. Bar.properties
          0.1 kB
        4. Baz2.cfg
          0.2 kB
        5. Baz2.cfg.txt
          0.2 kB
        6. Baz2.properties
          0.0 kB
        7. foo.cfg
          0.2 kB
        8. foo.cfg.txt
          0.2 kB
        9. foo.properties
          0.0 kB
        10. SecondaryLaunchersTest.cfg
          0.2 kB
        11. SecondaryLaunchersTest.cfg.txt
          0.2 kB

          Issue Links

            Activity

              People

              Assignee:
              herrick Andy Herrick
              Reporter:
              asemenyuk Alexey Semenyuk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: