[FIXED HUDSON-7327] honor the proxy setting in Hudson. Fixed toward 1.384.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@36462 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2010-10-30 19:05:43 +00:00
1 parent 2bec1ffab8
commit 2d44c63d70
2 files changed
+7 -2

No files matched your search

@@ -305,7 +305,12 @@ public class JDKInstaller extends ToolInstaller {
try {
FileOutputStream out = new FileOutputStream(tmp);
try {
IOUtils.copy(new RetryableHttpStream(src), out);
IOUtils.copy(new RetryableHttpStream(src) {
@Override
protected HttpURLConnection connect() throws IOException {
return (HttpURLConnection) ProxyConfiguration.open(url);
}
}, out);
} finally {
out.close();
}