Tigran Sargsyan created MJLINK-64: ------------------------------------- Summary: Add-options double quoting Key: MJLINK-64 URL: https://issues.apache.org/jira/browse/MJLINK-64 Project: Maven JLink Plugin Issue Type: Bug Affects Versions: 3.1.0 Reporter: Tigran Sargsyan
In case of add multiple options via *<addOptions>*, they are combined to one in runtime. For example : {code:java} <addOptions> <addOption>-Darg1=value1</addOption> <addOption>-Darg2=value2</addOption> </addOptions> {code} In runtime for the following code: {code:java} System.out.println(System.getProperty("arg1")); System.out.println(System.getProperty("arg2")); {code} Output is: {code:java} value1 -Darg2=value2 null {code} 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).* -- This message was sent by Atlassian Jira (v8.3.4#803005)