INT-2533:GF/ForkUtil fix for -cp with whitespaces

This commit is contained in:
Artem Bilan
2012-04-23 18:32:26 +03:00
committed by Gary Russell
parent fd3fa99dc8
commit 428bd46165

View File

@@ -42,7 +42,7 @@ public class ForkUtil {
Process proc = null;
String java = home + "/bin/java ".replace("\\", "/");
;
String argCp = "-cp " + cp;
String argCp = "-cp \"" + cp + "\"";
String argClass = argument;
String cmd = java + argCp + " " + argClass;
@@ -151,4 +151,4 @@ public class ForkUtil {
return new File(path).exists();
}
}
}