--On Saturday, September 17, 2005 3:16 PM -1000 Julie Ann Sakuda <[EMAIL PROTECTED]> wrote:

I'm not sure what version of java the FAQ you had uses.  I believe the
proxy properties I am using have "http." in front of them because it is a
Java 1.4 thing.  The SetProxy.java from Ant had a lot more things being
set.  They were supporting back to Java 1.1.  I just picked out the parts
for Java 1.4.

Ahh, that explains it. The FAQ entry was quite old (2001), so your property name choices are the right ones.

This got me wondering about Java5 and proxies, and a quick google turned up the following interesting blog entry:

<http://weblogs.java.net/blog/kohsuke/archive/2005/08/we_deserve_a_be.html>

The net of it is that there is a new property in Java5 called java.net.useSystemProxies which enables people to get the system's proxy settings (such as the "Connection Setting" in windows). The reason this is cool is because, as the author notes, the current approach of setting properties explicitly in the JVM means that for folks who go back and forth with their computer between a proxied and non-proxied environment might have lots of places (ant, javadoc, maven, system) that must be reconfigured each time, whereas with this setting (and with appropriate Java5 support in the various tools), these folks will only need to change their system setting and all the tools can discover the current proxy settings automatically.

For now, let's continue with the 'traditional' approach that Julie's implemented, since we need to continue to be Java 1.4 compliant. But this is an interesting change in Java5.

Cheers,
Philip

Reply via email to