git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15791 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-02-26 20:01:02 +00:00
1 parent 6e489a2796
commit 6fbbb526c2
1 file changed
+7 -1
@@ -304,7 +304,13 @@ final class MavenProcessFactory implements ProcessCache.Factory {
args.add(mvn.getMavenHome());
// remoting.jar
args.add(launcher.getChannel().call(new GetRemotingJar()));
String remotingJar = launcher.getChannel().call(new GetRemotingJar());
if(remotingJar==null) {// this shouldn't be possible, but there are still reports indicating this, so adding a probe here.
listener.error("Failed to determine the location of slave.jar");
throw new RunnerAbortedException();
}
args.add(remotingJar);
// interceptor.jar
args.add(isMaster?
Which.jarFile(hudson.maven.agent.PluginManagerInterceptor.class).getAbsolutePath():