<setproxy>
This is a very useful task to run before any tasks that require access to a resource that can sit outside a firewall. The <setproxy> task enables you to set the proxy settings for the JVM in which the Ant task is running within. Table 5.22 shows the attributes associated with this task.
Attributes | Description |
---|---|
proxyHost | The name of the proxy to use for HTTP/FTP requests. The proxy is disabled if this is blank. |
proxyPort | Defaults to port 80 if the port of the proxyHost is not specified. |
socksProxyHost | The name of the SOCKS proxy server. |
socksProxyPort | Defaults to port 1080 if the port of the socksProxyHost is not specified. |
nonProxyHosts | A comma-separated list of hosts where the proxy ... |
Get Ant Developer’s Handbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.