提交 d5f743c4 编写于 作者: K kohsuke

applied a patch from Aleksandar Kostandinov. See...

applied a patch from Aleksandar Kostandinov. See http://www.nabble.com/-PATCH--environment-expansion-in-job-configuration-td21872605.html

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15082 71c3de6d-444a-0410-be80-ed276b4c234a
上级 1a1d0d74
......@@ -382,7 +382,7 @@ public abstract class HudsonTestCase extends TestCase {
*/
public DumbSlave createSlave(Label l) throws Exception {
CommandLauncher launcher = new CommandLauncher(
System.getProperty("java.home") + "/bin/java -jar " + hudson.getJnlpJars("slave.jar").getURL().getPath());
System.getProperty("java.home") + "/bin/java -jar " + new File(hudson.getJnlpJars("slave.jar").getURL().getPath()).getPath());
// this synchronization block is so that we don't end up adding the same slave name more than once.
synchronized (hudson) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册