Skip to content

Commit

Permalink
Translate JAVA_OPTS into JVM_OPTS (preferred).
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Feb 3, 2012
1 parent 1bbcf78 commit 0ee59f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/release
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cat <<EOF
---
config_vars:
PATH: .lein/bin:/usr/local/bin:/usr/bin:/bin
JAVA_OPTS: -Xmx400m
JVM_OPTS: -Xmx400m
LEIN_NO_DEV: yes
default_process_types:
web: lein run
Expand Down
3 changes: 3 additions & 0 deletions opt/lein
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ fi
LEIN_JVM_OPTS="$LEIN_JVM_OPTS -Duser.home=$HOME -Dleiningen.original.pwd=$PWD"
LEIN_JAR=".lein/leiningen-$LEIN_VERSION-standalone.jar"

# Prefer JVM_OPTS, but fall back to JAVA_OPTS for compatibility
export JVM_OPTS="${JVM_OPTS:-"$JAVA_OPTS"}"

if [ "$1" == "repl" ]; then
CLASSPATH=$(lein classpath)
if [ "$COLUMNS" != "" -a "$LINES" != "" ]; then
Expand Down

0 comments on commit 0ee59f1

Please sign in to comment.