From 5cbb6f5e3806e19beb15f9cfc360042a78aec24a Mon Sep 17 00:00:00 2001 From: huybrechts Date: Tue, 3 Mar 2009 21:19:34 +0000 Subject: [PATCH] accounting for spaces in Java path in test case git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15990 71c3de6d-444a-0410-be80-ed276b4c234a --- test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java b/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java index 04a832d515..d068a3dad8 100644 --- a/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java +++ b/test/src/main/java/org/jvnet/hudson/test/HudsonTestCase.java @@ -429,7 +429,7 @@ public abstract class HudsonTestCase extends TestCase { */ public DumbSlave createSlave(Label l, EnvVars env) throws Exception { CommandLauncher launcher = new CommandLauncher( - System.getProperty("java.home") + "/bin/java -jar \"" + + "\""+System.getProperty("java.home") + "/bin/java\" -jar \"" + new File(hudson.getJnlpJars("slave.jar").getURL().toURI()).getAbsolutePath() + "\"", env); // this synchronization block is so that we don't end up adding the same slave name more than once.