Mercurial > hg > truffle
comparison mxtool/URLConnectionDownload.java @ 5023:db072eec897e
fix variable redefinition in URLConnectionDownload
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Mon, 05 Mar 2012 13:40:39 +0100 |
parents | 0b781cdb0cfb |
children | 2022366b513c |
comparison
equal
deleted
inserted
replaced
5022:cbedef8b4d15 | 5023:db072eec897e |
---|---|
52 // Enable use of system proxies | 52 // Enable use of system proxies |
53 System.setProperty("java.net.useSystemProxies", "true"); | 53 System.setProperty("java.net.useSystemProxies", "true"); |
54 | 54 |
55 String proxy = System.getenv("HTTP_PROXY"); | 55 String proxy = System.getenv("HTTP_PROXY"); |
56 if (proxy == null) { | 56 if (proxy == null) { |
57 String proxy = System.getenv("http_proxy"); | 57 proxy = System.getenv("http_proxy"); |
58 } | 58 } |
59 | 59 |
60 String proxyMsg = ""; | 60 String proxyMsg = ""; |
61 if (proxy != null) { | 61 if (proxy != null) { |
62 Pattern p = Pattern.compile("(?:http://)?([^:]+)(:\\d+)?"); | 62 Pattern p = Pattern.compile("(?:http://)?([^:]+)(:\\d+)?"); |