提交 009023e6 编写于 作者: J jheymans

fix for weblogic zip:/ prefix so that Hudson deploys on Weblogic 10.3

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18855 71c3de6d-444a-0410-be80-ed276b4c234a
上级 194e39ca
......@@ -82,7 +82,13 @@ public class Which {
resURL = resURL.substring("code-source:/".length(), resURL.lastIndexOf('!')); // cut off jar: and the file name portion
return new File(decode(new URL("file:/"+resURL).getPath()));
}
if(resURL.startsWith("zip:/")){
// weblogic uses this. See http://www.nabble.com/patch-to-get-Hudson-working-on-weblogic-td23997258.html
resURL = resURL.substring("zip:/".length(), resURL.lastIndexOf('!')); // cut off zip: and the file name portion
return new File(decode(new URL("file:/"+resURL).getPath()));
}
if(resURL.startsWith("file:")) {
// unpackaged classes
int n = clazz.getName().split("\\.").length; // how many slashes do wo need to cut?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册