Bind *compile-path*, not sure how it becomes unbound.
This commit is contained in:
parent
6aebd55634
commit
3413b16b2a
1 changed files with 7 additions and 4 deletions
|
@ -7,7 +7,10 @@
|
|||
"Compile the namespaces specified in build.clj or all namespaces in src/
|
||||
if none are provided."
|
||||
[project]
|
||||
(.mkdir (file (:root project) "classes"))
|
||||
(doseq [n (or (:namespaces project)
|
||||
(find-namespaces-in-dir (file (:root project) "src")))]
|
||||
(compile n)))
|
||||
;; 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)
|
||||
(clojure.core/compile n))))
|
Loading…
Reference in a new issue