Finish getting path quoting right for boot classpath #828

This commit is contained in:
Bruce Adams 2012-10-27 12:57:39 -04:00
parent 377153b1bc
commit cbe087d489

View file

@ -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 \