提交 5a157a2d 编写于 作者: K kohsuke

fixed a test failure. We moved the update centers to hudson-ci.org.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22959 71c3de6d-444a-0410-be80-ed276b4c234a
上级 d81e473d
...@@ -81,7 +81,7 @@ public class JavaNetReverseProxy extends HttpServlet { ...@@ -81,7 +81,7 @@ public class JavaNetReverseProxy extends HttpServlet {
File cache = new File(cacheFolder, d); File cache = new File(cacheFolder, d);
if(!cache.exists()) { if(!cache.exists()) {
URL url = new URL("https://hudson.dev.java.net/" + path); URL url = new URL("http://hudson-ci.org/" + path);
FileUtils.copyURLToFile(url,cache); FileUtils.copyURLToFile(url,cache);
} }
...@@ -105,7 +105,7 @@ public class JavaNetReverseProxy extends HttpServlet { ...@@ -105,7 +105,7 @@ public class JavaNetReverseProxy extends HttpServlet {
public static synchronized JavaNetReverseProxy getInstance() throws Exception { public static synchronized JavaNetReverseProxy getInstance() throws Exception {
if(INSTANCE==null) if(INSTANCE==null)
// TODO: think of a better location --- ideally inside the target/ dir so that clean would wipe them out // TODO: think of a better location --- ideally inside the target/ dir so that clean would wipe them out
INSTANCE = new JavaNetReverseProxy(new File(new File(System.getProperty("java.io.tmpdir")),"java.net-cache")); INSTANCE = new JavaNetReverseProxy(new File(new File(System.getProperty("java.io.tmpdir")),"hudson-ci.org-cache"));
return INSTANCE; return INSTANCE;
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册