Community
Participate
Working Groups
Build ID: M20090211-1700 Selecting "System proxy configuration" in the Network Connections preferences page does not appear to set the 'java.net.useSystemProxies' property [1] to true. Therefore only Eclipse's own code benefits from the new setting. Is there any reason not to set the Java property at the same time? We've noticed that setting a Manual proxy configuration does set the equivalent Java system properties. [1] http://java.sun.com/javase/6/docs/technotes/guides/net/proxies.html
IMO it would be better to detect if we're running Java 1.5 or later. If it is the case we could register a custom java.net.ProxySelector that would be backed by org.eclipse.core.internal.net.ProxyManager. Tim, what do you think about it?
I'd have thought that reading/setting the system property if possible (>=Java1.5) would be easier, but so long as it works (i.e. makes vanilla Java code use the system proxies) I don't have a strong opinion.
Sure, I'll handle it in 3.6 since it's to late in the current cycle.
(In reply to comment #0) > We've noticed that setting a Manual proxy configuration does set the equivalent > Java system properties. Tim, we do set all the system properties (like http.nonProxyHosts) to values returned by active provider. In case native provider is set system properties correspond to proxy settings discovered in OS. Thanks to that IProxyService's clients use the same proxies as clients indirectly consuming system properties (via protocol handlers). If we set "java.net.useSystemProxies" on a platform when core.net lacks native support we end up with IProxyService returning no proxies to its clients. At the same time other clients would use native settings. This would confuse users as network connections page would remain empty in such case. The way to workaround it is setting up the property by hand. There is no other way as we can't sacrifice consistency of proxies usage. If you run GNOME you can use following switch to enable native proxy support: eclipse -vmargs -Dorg.eclipse.core.net.enableGnome This is a WONTFIX, please reopen if you don't agree.