Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.1.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).