java - Ant GET task and proxy -
how use ant's task proxy?
i see there username , password, there no proxy host :(
the key bit in get
task docs is:
proxies. since apache ant 1.7.0, ant running on java1.5 or later can use proxy settings of operating system if enabled -autoproxy option. there 'setproxy' task earlier java versions. proxies turned on, requests against localhost may not work expected, if request relayed proxy.
so can use setproxy
task older versions of ant, or see docs on proxy config:
<setproxy proxyhost="firewall" proxyport="81"/>
(the username , password attributes of get
task remote system, not intermediate proxies.)
Comments
Post a Comment