Permalink
Browse files

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

  • Loading branch information...
1 parent 0eff5d8 commit dcb5aea2ce70a5e6a41290416aa02eaad22cc4b1 @technomancy technomancy committed Jun 10, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 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)

0 comments on commit dcb5aea

Please sign in to comment.