Skip to content

Commit 1c0eea7

Browse files
c-dilksbaltzell
authored andcommitted
fix: allow run-groovy users to set JAVA_OPTS
`libexec/env.sh` hard codes a value of `$JAVA_OPTS` for groovy calls, (via `run-groovy`) making it impossible for `run-groovy` users to change any Java options, e.g., heap size limits. This PR allows users to override `env.sh`'s settings by appending user-level `JAVA_OPTS`.
1 parent ec94673 commit 1c0eea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libexec/env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if [ $# -ge 1 ]; then
3030
# additional variables and settings for groovy
3131
if [ "$1" = "groovy" ]; then
3232
JYPATH="${JYPATH:+${JYPATH}:}${CLAS12DIR}/lib/packages"
33-
export JAVA_OPTS="-Dsun.java2d.pmoffscreen=false -Djava.util.logging.config.file=$CLAS12DIR/etc/logging/debug.properties -Xms1024m -Xmx2048m -XX:+UseSerialGC"
33+
export JAVA_OPTS="-Dsun.java2d.pmoffscreen=false -Djava.util.logging.config.file=$CLAS12DIR/etc/logging/debug.properties -Xms1024m -Xmx2048m -XX:+UseSerialGC ${JAVA_OPTS-}"
3434
fi
3535

3636
export JYPATH

0 commit comments

Comments
 (0)