Ant GET Task and Proxy Server

How to use Ant Task GET with a proxy?

I see only the username and password, but there is no proxy host :(

+3
source share
2 answers

Key in getdocs :

Trusted . Since Apache Ant 1.7.0, Ant running on Java1.5 or later, can use the system proxy settings if enabled with the -autoproxy option. There is also "setproxy", a task for earlier versions of Java. With proxies enabled, requests against localhost may not work as expected if a request is sent to the proxy.

, setproxy Ant :

<setproxy proxyhost="firewall" proxyport="81"/>

( get , -.)

+5

( Windows cmdline) , , ant .
, :

ANT_OPTS = -Dhttp.proxyHost = proxy.address -Dhttp.proxyPort = proxy.port

proxy.address proxy.port ...

, , , , , ! , ant get, .

+1

Source: https://habr.com/ru/post/1796010/


All Articles