Bind *compile-path*, not sure how it becomes unbound.

This commit is contained in:
Phil Hagelberg 2009-11-02 22:27:16 -08:00
parent 6aebd55634
commit 3413b16b2a

View file

@ -7,7 +7,10 @@
"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")))]
(compile n)))
(println "Compiling" n)
(clojure.core/compile n))))