Respect JAVA_OPTS env variable in CLI tools. (#1478)

This commit is contained in:
Nikolay Igotti
2018-04-09 10:08:00 +03:00
committed by GitHub
parent c046372025
commit 6415734881
3 changed files with 10 additions and 2 deletions
+6
View File
@@ -19,3 +19,9 @@ It will produce platform-specific shared object (.so on Linux, .dylib on macOS a
C language header, allowing to use all public APIs available in your Kotlin/Native program from C code.
See `samples/python_extension` as an example of using such shared object to provide a bridge between Python and
Kotlin/Native.
Q: How do I run Kotlin/Native behind corporate proxy?
A: As Kotlin/Native need to download platform specific toolchain, you need to specify
`-Dhttp.proxyHost=xxx -Dhttp.proxyPort=xxx` as compiler's or `gradlew` arguments,
or set it via `JAVA_OPTS` environment variable.
+2 -1
View File
@@ -68,7 +68,8 @@ java_opts=(-ea \
-Xmx3G \
"-Djava.library.path=${NATIVE_LIB}" \
"-Dkonan.home=${KONAN_HOME}" \
-Dfile.encoding=UTF-8)
-Dfile.encoding=UTF-8 \
${JAVA_OPTS})
# Unset some environment variables which are set by XCode and may potentially affect the tool executed.
for VAR in `cat "${KONAN_HOME}/tools/env_blacklist"`; do
+2 -1
View File
@@ -72,7 +72,8 @@ set JAVA_OPTS=-ea ^
-Xmx3G ^
"-Djava.library.path=%NATIVE_LIB%" ^
"-Dkonan.home=%_KONAN_HOME%" ^
-Dfile.encoding=UTF-8
-Dfile.encoding=UTF-8 ^
%JAVA_OPTS%
set LIBCLANG_DISABLE_CRASH_RECOVERY=1