Browse Source

Don't override a globally set MAVEN_OPTS, especially when there are no jenv

options. Besides, when trying to set exportedKey[MAVEN_OPTS] as MAVEN_OPTS
is already set, MAVEN_OPTS as the key is expanded, resulting in an error
message:
-Xmx1g -XX:MaxPermSize=256m: syntax error in expression (error token is ":MaxPermSize=256m")
pull/11/head
Frank Pavageau 13 years ago
parent
commit
50e3ac1c73
  1. 8
      plugins/maven/etc/jenv.d/exec/maven-before.bash

8
plugins/maven/etc/jenv.d/exec/maven-before.bash

@ -1,4 +1,6 @@ @@ -1,4 +1,6 @@
if [ "$1" = "mvn" ]; then
exportVariable MAVEN_OPTS $JENV_OPTIONS
unset JENV_OPTIONS
fi
if [ -n "$JENV_OPTIONS" -a -z "$MAVEN_OPTS" ]; then
exportVariable MAVEN_OPTS $JENV_OPTIONS
unset JENV_OPTIONS
fi
fi

Loading…
Cancel
Save