Using Ant behind a proxy server
A problem recently cropped up with my build that was caused by the xerces xml parser trying to validate an xml using the dtd reference in the file. The problem was that the dtd was stored on the web. The web in turn, was only accesible through our corporate http-proxy server, which neither Ant nor the JVM knew anything about.
After some searching I discovered there's an Ant task called "setproxy" that allows you to inform Ant of your proxy setup, so anything else run in the same JVM has access to the web.
You can find out how to use the "setproxy" task here:
http://ant.apache.org/manual/OptionalTasks/setproxy.html

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home