Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added use of proxy as set by env variable 'http_proxy' #308

Merged
merged 1 commit into from Dec 6, 2016

Conversation

pysaumont
Copy link
Contributor

Not sure about log level in case of NumberFormatException for the port number.

@@ -425,6 +432,18 @@ private void downloadImpl(File file, String version) throws IOException {
}
}

private Proxy getProxy() {
String http_proxy = System.getenv("http_proxy");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok, so that's how you extract the proxy info, I was wondering what approach you picked.

I was thinking that information should be picked from ~/.config/kobalt/settings.xml to be consistent, but your approach is better than nothing for now.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable should be called httpProxy by the way.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was only a first try in order to get something working. And sorry for the variable name. Do you want me to fix it?

@cbeust
Copy link
Owner

cbeust commented Dec 6, 2016

That's fine, I'll fix it myself. Going to merge this, thanks!

And sorry for all the trouble you had to go through to get this working, I appreciate your efforts :-)

@cbeust cbeust merged commit 160d955 into cbeust:master Dec 6, 2016
@cbeust
Copy link
Owner

cbeust commented Dec 6, 2016

I did some reformatting and pushed. FYI I also renamed the environment variable to httpProxy since Kobalt uses camel case everywhere (even in XML) to be consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants