Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove left-over use of integer error code in classloader eval.

  • Loading branch information...
commit dcb5aea2ce70a5e6a41290416aa02eaad22cc4b1 1 parent 0eff5d8
@technomancy technomancy authored
Showing with 1 addition and 6 deletions.
  1. +1 −6 leiningen-core/src/leiningen/core/eval.clj
View
7 leiningen-core/src/leiningen/core/eval.clj
@@ -177,16 +177,11 @@
(defmethod eval-in :classloader [project form]
(let [classpath (map io/file (classpath/get-classpath project))
classloader (cl/classlojure classpath)]
- ;; TODO: special-case :java.library.path
(doseq [opt (get-jvm-args project)
:when (.startsWith opt "-D")
:let [[_ k v] (re-find #"^-D(.*?)=(.*)$" opt)]]
(System/setProperty k v))
- (try (cl/eval-in classloader form)
- 0 ;; pretend to return an exit code for now
- (catch Exception e
- (.printStackTrace e)
- 1))))
+ (cl/eval-in classloader form)))
(defmethod eval-in :leiningen [project form]
(when (:debug project)
Please sign in to comment.
Something went wrong with that request. Please try again.