Don't need to bind *compile-path* in compile.

This commit is contained in:
Phil Hagelberg 2009-11-11 21:23:16 -08:00
parent d84de0ccfa
commit c27e16e744

View file

@ -7,11 +7,8 @@
"Compile the namespaces specified in build.clj or all namespaces in src/
if none are provided."
[project]
;; TODO: not sure why this is necessary
(binding [*compile-path* "classes/"]
(.mkdir (file (:root project) "classes"))
(doseq [n (or (:namespaces project)
(find-namespaces-in-dir (file (:root project) "src")))]
(println "Compiling" n)
;; TODO: check to see if bytecode is older than source
(clojure.core/compile n))))
(doseq [n (or (:namespaces project)
(find-namespaces-in-dir (file (:root project) "src")))]
(println "Compiling" n)
;; TODO: check to see if bytecode is older than source
(clojure.core/compile n)))