Mercurial > hg > graal-compiler
changeset 5017:0b781cdb0cfb
Use lower case http_proxy because this is the default environment variable on Linux
author | Christian Wimmer <Christian.Wimmer@Oracle.com> |
---|---|
date | Fri, 02 Mar 2012 09:23:18 -0800 |
parents | c142a64141a8 |
children | cbedef8b4d15 |
files | mxtool/URLConnectionDownload.java |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mxtool/URLConnectionDownload.java Fri Mar 02 09:21:10 2012 -0800 +++ b/mxtool/URLConnectionDownload.java Fri Mar 02 09:23:18 2012 -0800 @@ -53,6 +53,10 @@ System.setProperty("java.net.useSystemProxies", "true"); String proxy = System.getenv("HTTP_PROXY"); + if (proxy == null) { + String proxy = System.getenv("http_proxy"); + } + String proxyMsg = ""; if (proxy != null) { Pattern p = Pattern.compile("(?:http://)?([^:]+)(:\\d+)?");