and this is even better.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4261 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-08-13 23:54:57 +00:00
1 parent cb17628e42
commit f354f1fa53
1 file changed
+2 -1
@@ -1,5 +1,6 @@
package hudson.maven;
import static hudson.Util.fixNull;
import hudson.FilePath;
import hudson.Util;
import hudson.maven.agent.Main;
@@ -301,7 +302,7 @@ public class MavenBuild extends AbstractBuild<MavenModule,MavenBuild> {
return launcher.launchChannel(buildMavenCmdLine(listener).toCommandArray(),
out, null, envVars);
} catch (IOException e) {
if(Util.fixNull(e.getMessage()).contains("java: not found")) {
if(fixNull(e.getMessage()).contains("java: not found")) {
// diagnose issue #659
JDK jdk = getParent().getParent().getJDK();
if(jdk==null)