8207022: jpackager saves VM args incorrectly if --jvm-args contains white spaces JDK-8200758-branch
authorherrick
Fri, 13 Jul 2018 10:41:07 -0400
branchJDK-8200758-branch
changeset 56835 43caa6ff671a
parent 56830 5126a14ac51e
child 56836 40abf95122b0
8207022: jpackager saves VM args incorrectly if --jvm-args contains white spaces Reviewed-by: almatvee
src/jdk.packager/share/classes/jdk/packager/internal/StandardBundlerParam.java
--- 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")