Skip to content

Commit

Permalink
[FIXED JENKINS-20385] provide better error message if 'home' of Maven…
Browse files Browse the repository at this point in the history
… installation isn't set
  • Loading branch information
kutzi committed Nov 2, 2013
1 parent 3380985 commit e6849a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/hudson/maven/MavenVersionCallable.java
Expand Up @@ -25,6 +25,7 @@
*/

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

import java.io.File;
Expand All @@ -45,8 +46,11 @@ public class MavenVersionCallable

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;
}

Expand Down

0 comments on commit e6849a7

Please sign in to comment.