Skip to content

Commit f7face0

Browse files
Ignore _JAVA_OPTIONS and JAVA_TOOL_OPTIONS if they're set (#18)
1 parent 816c94e commit f7face0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/diktat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ JAVA_ARGS+=('-Xmx512m')
502502
JAVA_ARGS+=("-Duser.home=$(native_path "${PWD}")")
503503
JAVA_ARGS+=("-Ddiktat.config.path=$(native_path "${CONFIG_FILE}")")
504504

505+
unset _JAVA_OPTIONS JAVA_TOOL_OPTIONS
505506
JAVA_VERSION=$("${JAVA}" -version 2>&1 | head -n1 | cut -d'"' -f2)
506507
JAVA_MAJOR_VERSION=$(echo "${JAVA_VERSION}" | sed 's/^1\.//' | cut -d'.' -f1)
507508
if (( JAVA_MAJOR_VERSION >= 17 ))

0 commit comments

Comments
 (0)