frericksm/clj-windows

Cannot resolve Git deps through proxy

frericksm opened this issue · 0 comments

see https://dev.clojure.org/jira/browse/TDEPS-124

until TDEPS-124 is fixed in an adaptable way, i will fix it here as follows
a) Read env var http_proxy e.g. http://127.0.0.1:3128 and transform to System-Property-Options
-Dhttp.proxyHost=127.0.0.1
-Dhttp.proxyPort=3128

a) Read env var https_proxy e.g. http://127.0.0.1:3128 and transform to System-Property-Options
-Dhttps.proxyHost=127.0.0.1
-Dhttps.proxyPort=3128

c) The System-Property-Options will be added to the java call calculating the classpath