I am trying to get ANT and IVY to work on a proxy server.
SetProxy task is working fine
<target name="proxy"> <property name="proxy.host" value="proxy.server.com" /> <property name="proxy.port" value="8080" /> <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}" /> </target>
But when I tried to use environment variables
set ANT_OPTS="-Dhttp.proxyHost=proxy.server.com -Dhttp.proxyPort=8080"
Ivy cannot connect to the repositories, and here is the output of the ANT properties for the proxy
[echoproperties] http.proxyHost=proxy.server.com -Dhttp.proxyPort\=8080
When I tried the "autoproxy" argument to no avail
ant -autoproxy deploy
Here from ANT
C:\Workspace\DevProjects\fxin>ant -Dproxy.host=proxy.eur.xerox.com -Dproxy.port=8000 deploy Buildfile: C:\Workspace\DevProjects\fxin\build.xml load-properties: [echo] Using properties file: build.properties download-ivy: [echoproperties]
Any ideas?
source share