Fix bootclasspath prepend
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 23 Jul 2009 10:27:37 +0000 (10:27 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 23 Jul 2009 10:27:37 +0000 (10:27 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@2730 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/execution/tasks/JvmProcess.java

index 8c0bfebe95a58393d6cf17bd70606b59cc1d3542..2be9e8ceaeaaba51b5981b015aa9cbe60d9d1878 100644 (file)
@@ -36,9 +36,14 @@ public class JvmProcess extends SystemCall {
                        cl = new CommandLine("java");
 
                if (pBootClasspath.size() > 0) {
-                       StringBuffer buf = new StringBuffer("-Xbootclasspath/p");
+                       StringBuffer buf = new StringBuffer("-Xbootclasspath/p:");
+                       Boolean first = true;
                        for (Resource res : pBootClasspath) {
-                               buf.append(File.pathSeparatorChar);
+                               if (first)
+                                       first = false;
+                               else
+                                       buf.append(File.pathSeparatorChar);
+
                                buf.append(asFile(res));
                        }
                        cl.addArgument(buf.toString());