How to use Ant Task GET with a proxy?
I see only the username and password, but there is no proxy host :(
Key in getdocs :
get
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
<setproxy proxyhost="firewall" proxyport="81"/>
( get , -.)
( Windows cmdline) , , ant ., :
ANT_OPTS = -Dhttp.proxyHost = proxy.address -Dhttp.proxyPort = proxy.port
proxy.address
proxy.port
proxy.address proxy.port ...
, , , , , ! , ant get, .
Source: https://habr.com/ru/post/1796010/More articles:Eclipse keyboard shortcuts - javaUsing XmlReader in .NET for XSLT Converting Very Large XML Files - c #ASP.NET user control, can template fields have attributes? - asp.netmysqli INSERT anomaly - phpStrange asp.net mvc error - asp.net-mvcHow to check form controls before closing a form? - c #C ++ multi-platform library for playing / recording audio (.wav, .ogg) - c ++Postgres CAST macaddr - castingAttachment Mono vs Google V8? - c ++Изменение ширины блоков по умолчанию в LaTeX Beamer - pdflatexAll Articles