Add ability to detect HTTP_PROXY or HTTPS_PROXY in environment and pass it along to ivy

Review Request #1877 - Created March 6, 2015 and submitted

Information
Eric Ayers
pants
zundel/add-http-proxy
1216
77fbc77...
Reviewers
pants-reviews
benjyw, jsirois, stuhood
Add ability to detect HTTP_PROXY or HTTPS_PROXY in environment and pass it along to ivy

Added unit tests.

Using this build I was able to build a project in our repo inside a build environment that was firewalled off with only a proxy to get to the twitter and maven repository.

Without a real proxy you can test this way:

rm -rf ~/.ivy2/pants/org.antlr
export HTTPS_PROXY=https://foo:1234
export HTTP_PROXY=http://bar:567
PANTS_DEV=1 ./pants clean-all
PANTS_DEV=1 ./pants compile examples/src/java/com/pants/examples/antlr4 -ldebug

The build will fail, but you can inspect the output and system properties are being passed down to ivy.

Eric Ayers
Eric Ayers
Eric Ayers
John Sirois
Eric Ayers
John Sirois
Eric Ayers
Review request changed

Status: Closed (submitted)

Change Summary:

Thanks for the review John. Commit 97d7def

Loading...