From cbe087d4895c8397462488b3163f24ef471a7845 Mon Sep 17 00:00:00 2001 From: Bruce Adams Date: Sat, 27 Oct 2012 12:57:39 -0400 Subject: [PATCH] Finish getting path quoting right for boot classpath #828 --- bin/lein | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/lein b/bin/lein index 11c88f89..c58d30ca 100755 --- a/bin/lein +++ b/bin/lein @@ -55,7 +55,7 @@ do fi done -export LEIN_HOME=${LEIN_HOME:-"$HOME/.lein"} +export LEIN_HOME="${LEIN_HOME:-"$HOME/.lein"}" for f in "$LEIN_HOME/leinrc" ".leinrc"; do if [ -e "$f" ]; then @@ -139,9 +139,7 @@ if [ -r "$BIN_DIR/../src/leiningen/version.clj" ]; then else # Not running from a checkout add_path CLASSPATH "$LEIN_JAR" - # TODO: unify setting this; it's a complete mess. Should be able - # to easily modify jvm opts without losing bootclasspath - export LEIN_JVM_OPTS="${LEIN_JVM_OPTS:-"-Xbootclasspath/a:$LEIN_JAR"}" + BOOTCLASSPATH="-Xbootclasspath/a:$LEIN_JAR" if [ ! -r "$LEIN_JAR" -a "$1" != "self-install" ]; then "$0" self-install @@ -190,7 +188,7 @@ if [ "$1" = "self-install" ]; then exit 1 fi echo "Downloading Leiningen to $LEIN_JAR now..." - mkdir -p $(dirname "$LEIN_JAR") + mkdir -p "$(dirname "$LEIN_JAR")" LEIN_URL="https://github.com/downloads/technomancy/leiningen/leiningen-$LEIN_VERSION-standalone.jar" $HTTP_CLIENT "$LEIN_JAR.pending" "$LEIN_URL" if [ $? == 0 ]; then @@ -285,6 +283,7 @@ else export TRAMPOLINE_FILE "$LEIN_JAVA_CMD" \ -client -XX:+TieredCompilation \ + "${BOOTCLASSPATH[@]}" \ $LEIN_JVM_OPTS \ -Dfile.encoding=UTF-8 \ -Dmaven.wagon.http.ssl.easy=false \