Uploaded image for project: 'Maven JLink Plugin'
  1. Maven JLink Plugin
  2. MJLINK-64

Add-options double quoting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.2.0
    • None

    Description

      In case of add multiple options via <addOptions>, they are combined to one in runtime. For example :

       

      <addOptions>
          <addOption>-Darg1=value1</addOption>
          <addOption>-Darg2=value2</addOption>
       </addOptions>
      

       

       

      In runtime for the following code:

       

      System.out.println(System.getProperty("arg1"));
       System.out.println(System.getProperty("arg2"));
       
      

      Output is:

       

      value1 -Darg2=value2
      null
      

       

       

      After I examined the source code, I noticed that in fact, in the final command, it turns out something like '"-Darg1 = value1 -Darg2 = value2"' instead of "-Darg1 = value1 -Darg2 = value2".

      I.e double quoting.

      My seggesion:

      Remove reduntant quoting in file JlinkMojo(line:657).

       

       

      Attachments

        Activity

          People

            bmarwell Benjamin Marwell
            tix320 Tigran Sargsyan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: