improved error diagnostics

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13816 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-12-23 07:42:20 +00:00
1 parent ae710c8119
commit 8a229acc28
4 files changed
+25 -7

No files matched your search

@@ -24,6 +24,7 @@ import java.io.PrintStream;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.net.URL;
import hudson.remoting.Which;
@@ -118,9 +119,9 @@ final class SubversionUpdateEventHandler implements ISVNEventHandler {
SVNExternal ext = event.getExternalInfo();
if(ext==null) {
// prepare for the situation where the user created their own svnkit
File jarFile = null;
URL jarFile = null;
try {
jarFile = Which.jarFile(SVNEvent.class);
jarFile = Which.jarURL(SVNEvent.class);
} catch (IOException e) {
// ignore this failure
}
@@ -4,6 +4,7 @@ import hudson.remoting.Which;
import java.io.File;
import java.io.IOException;
import java.net.URL;
/**
* Model object used to display the error top page if
@@ -21,7 +22,7 @@ public class IncompatibleAntVersionDetected extends ErrorObject {
this.antClass = antClass;
}
public File getWhereAntIsLoaded() throws IOException {
return Which.jarFile(antClass);
public URL getWhereAntIsLoaded() throws IOException {
return Which.jarURL(antClass);
}
}
@@ -4,6 +4,7 @@ import hudson.remoting.Which;
import java.io.File;
import java.io.IOException;
import java.net.URL;
/**
* Model object used to display the error top page if
@@ -21,7 +22,7 @@ public class IncompatibleServletVersionDetected extends ErrorObject {
this.servletClass = servletClass;
}
public File getWhereServletIsLoaded() throws IOException {
return Which.jarFile(servletClass);
public URL getWhereServletIsLoaded() throws IOException {
return Which.jarURL(servletClass);
}
}