mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
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
This commit is contained in:
1 parent
8f6338b83e
commit
5cbb6f5e38
1 file changed
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user