8207022: jpackager saves VM args incorrectly if --jvm-args contains white spaces
Reviewed-by: almatvee
--- a/src/jdk.packager/share/classes/jdk/packager/internal/StandardBundlerParam.java Thu Jul 12 10:56:28 2018 -0400
+++ b/src/jdk.packager/share/classes/jdk/packager/internal/StandardBundlerParam.java Fri Jul 13 10:41:07 2018 -0400
@@ -277,7 +277,7 @@
Arguments.CLIOptions.JVM_ARGS.getId(),
(Class<List<String>>) (Object) List.class,
params -> Collections.emptyList(),
- (s, p) -> Arrays.asList(s.split("\\s+"))
+ (s, p) -> Arrays.asList(s.split("\n\n"))
);
@SuppressWarnings("unchecked")