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

Wrong arguments set for additional launchers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • internal
    • internal
    • tools
    • generic
    • linux

      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.

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

            herrick Andy Herrick (Inactive)
            asemenyuk Alexey Semenyuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: