Skip to content
Permalink
Browse files

[FIXED JENKINS-20385] provide better error message if 'home' of Maven…

… installation isn't set
  • Loading branch information
kutzi committed Nov 2, 2013
1 parent 3380985 commit e6849a7ccec07f67ed8d5c8760ef3f7166af66cf
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/main/java/hudson/maven/MavenVersionCallable.java
@@ -25,6 +25,7 @@
*/

import hudson.AbortException;
import hudson.Util;
import hudson.remoting.Callable;

import java.io.File;
@@ -45,8 +46,11 @@

private final String mavenHome;

public MavenVersionCallable( String mavenHome )
public MavenVersionCallable( String mavenHome ) throws IOException
{
if(Util.fixEmptyAndTrim(mavenHome) == null) {
throw new AbortException(Messages.MavenVersionCallable_MavenHomeDoesntExist(mavenHome));
}
this.mavenHome = mavenHome;
}

0 comments on commit e6849a7

Please sign in to comment.
You can’t perform that action at this time.