Fixed noise with picking up JAVA_TOOL_OPTIONS (#3599)

This commit is contained in:
Geoff Bourne authored and GitHub committed 2025-08-06 20:25:12 -05:00
1 parent c6e970c8d2
commit dedacfb94e
1 file changed
+3
+3
View File
@@ -122,6 +122,9 @@ addToProxyArgs http.proxyHost "${PROXY_HOST:-}"
addToProxyArgs http.proxyPort "${PROXY_PORT:-}"
addToProxyArgs http.nonProxyHosts "${PROXY_NON_PROXY_HOSTS:-}"
export JAVA_TOOL_OPTIONS+=" ${proxyArgs[*]}"
if [[ $JAVA_TOOL_OPTIONS =~ ^[[:blank:]]*$ ]]; then
export -n JAVA_TOOL_OPTIONS
fi
function fixJavaPath() {
# Some Docker management UIs grab all the image declared variables and present them for configuration.