You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In *nix world, there is a widely accepted set of environment variables for proxy configuration:http_proxy, https_proxy, ftp_proxy, no_proxy. SBT already picks up those variables.
But in Java a quite different set of system properties is accepted as described in the following document http://docs.oracle.com/javase/7/docs/technotes/guides/net/proxies.html Many HTTP libraries support Java-style system properties out of the box, whereas *nix standard http_proxy stays neglected.
It would be very handy to have a setting bashScriptUseSystemProxy (it may be a different name) which would enable translation of http_proxy and no_proxy environment variables into following Java arguments upon startup: http.proxyHost, http.proxyPort, http.nonProxyHosts
Information
What sbt-native-packager are you using
1.2.0
What sbt version
0.13.13
What is your build system (e.g. Ubuntu, MacOS, Windows, Debian )
MacOS
What package are you building (e.g. docker, rpm, ...)
RPM, Universal zip
What version has your build tool (find out with e.g. rpm --version)
rpm (RPM) 5.4.15
What is your target system (e.g. Ubuntu 16.04, CentOS 7)
CentOS 7
The text was updated successfully, but these errors were encountered:
I'm not sure if native-packager is the right place to put this into.
Setting java options for a specific runtime behavior is not related to creating
packages.
Putting this in the Recipe section in the documentation would be okay, but the feature itself is out-of-scope for native-packager, I'm afraid.
In *nix world, there is a widely accepted set of environment variables for proxy configuration:
http_proxy
,https_proxy
,ftp_proxy
,no_proxy
. SBT already picks up those variables.But in Java a quite different set of system properties is accepted as described in the following document http://docs.oracle.com/javase/7/docs/technotes/guides/net/proxies.html Many HTTP libraries support Java-style system properties out of the box, whereas *nix standard
http_proxy
stays neglected.It would be very handy to have a setting
bashScriptUseSystemProxy
(it may be a different name) which would enable translation ofhttp_proxy
andno_proxy
environment variables into following Java arguments upon startup:http.proxyHost
,http.proxyPort
,http.nonProxyHosts
Information
1.2.0
0.13.13
MacOS
RPM, Universal zip
rpm --version
)rpm (RPM) 5.4.15
CentOS 7
The text was updated successfully, but these errors were encountered: