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 \
-Dmaven.wagon.http.ssl.easy=false \
-Dleiningen.original.pwd="$ORIGINAL_PWD" \
-cp "$CLASSPATH" \
-classpath "$CLASSPATH" \
clojure.main -m leiningen.core.main "$@"
EXIT_CODE=$?

View file

@ -151,8 +151,8 @@
[(apply str "-Xbootclasspath/a:"
(interpose java.io.File/pathSeparatorChar
(classpath/get-classpath project)))]
["-cp" (string/join java.io.File/pathSeparatorChar
(classpath/get-classpath project))]))
["-classpath" (string/join java.io.File/pathSeparatorChar
(classpath/get-classpath project))]))
(defn shell-command [project form]
`(~(or (:java-cmd project) (System/getenv "JAVA_CMD") "java")