Skip to content

Commit

Permalink
Remove left-over use of integer error code in classloader eval.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Jun 10, 2012
1 parent 0eff5d8 commit dcb5aea
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions leiningen-core/src/leiningen/core/eval.clj
Expand Up @@ -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)
Expand Down

0 comments on commit dcb5aea

Please sign in to comment.