use -classpath instead of -cp so that jdb can be used for :java-cmd

This commit is contained in:
Justin Balthrop 2012-09-27 11:22:03 -07:00
parent 52d33ef15e
commit 48bea66ea0
2 changed files with 3 additions and 3 deletions

View file

@ -287,7 +287,7 @@ else
-Dfile.encoding=UTF-8 \ -Dfile.encoding=UTF-8 \
-Dmaven.wagon.http.ssl.easy=false \ -Dmaven.wagon.http.ssl.easy=false \
-Dleiningen.original.pwd="$ORIGINAL_PWD" \ -Dleiningen.original.pwd="$ORIGINAL_PWD" \
-cp "$CLASSPATH" \ -classpath "$CLASSPATH" \
clojure.main -m leiningen.core.main "$@" clojure.main -m leiningen.core.main "$@"
EXIT_CODE=$? EXIT_CODE=$?

View file

@ -151,7 +151,7 @@
[(apply str "-Xbootclasspath/a:" [(apply str "-Xbootclasspath/a:"
(interpose java.io.File/pathSeparatorChar (interpose java.io.File/pathSeparatorChar
(classpath/get-classpath project)))] (classpath/get-classpath project)))]
["-cp" (string/join java.io.File/pathSeparatorChar ["-classpath" (string/join java.io.File/pathSeparatorChar
(classpath/get-classpath project))])) (classpath/get-classpath project))]))
(defn shell-command [project form] (defn shell-command [project form]