Problem Description

As of this writing (June 07 2005), the build process fails to download dependency files being behind firewall (proxy server).

Solution

However a small modification to <Gabber.java> and <dependency.xml> files circumvent this problem.

Grabber.java changes

We need to add support for configuring the following attributes proxyHost, proxyPort, proxyUser and proxyPwd.

The setProxyHost() method simply sets the "http.proxyHost" system property.

The setProxyPort() method simply sets the "http.proxyPort" system property.

The setProxyUser() and setProxyPwd() updates instance _proxyUser and _proxyPwd instance variables which are used in the execute() method to attach a "Proxy-Authorization" request property to the urlConnection:

dependency.xml changes

the grab-file macro should define 4 additional attributes proxyHost, proxyPort, proxyUser and proxyPwd whith configured defaults which may be empty properties in the dependency.properties file or idealy references user configurable properties !!

ProxySupport (last edited 2009-09-20 22:01:36 by localhost)