You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by John Turnbull <jt...@uow.edu.au> on 2011/12/08 21:14:17 UTC

Can't set proxy for use by Ant

I am trying to set the proxy for Ant to use when it needs to download files but I am getting an HTTP 407 (proxy authentication) error when I run Ant.

I am using Windows and have set the ANT_OPTS environment variable like:

-Dhttp.proxyHost=***** -Dhttp.proxyPort=8080 -Dhttp.proxyUser=***** -Dhttp.proxyPass=*****

where "*****" hides confidential info.

Is this the right way to do this?  Are these the right parameters etc.?  Why would it be failing when the same settings work for Eclipse's proxy settings?

Thanks,

-jt