mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
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:
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user