6725192: Some JDI Regression tests fail if @debuggeeVMOptions contain multiple blanks

Fix to allow mutiple blanks between options

Reviewed-by: tbell
This commit is contained in:
Jim Holmlund 2008-07-11 17:06:54 -07:00
parent 6f5da73160
commit 040fbc1535

@ -115,7 +115,7 @@ class VMConnection {
return cmdLine;
}
// Insert the options at position 1. Blanks in args are not allowed!
String[] v1 = opts.split(" ");
String[] v1 = opts.split(" +");
String[] retVal = new String[cmdLine.length + v1.length];
retVal[0] = cmdLine[0];
System.arraycopy(v1, 0, retVal, 1, v1.length);