Compile :main even if not explicitly listed in :namespaces.
This commit is contained in:
parent
14f9691e0a
commit
aaf60f6da0
1 changed files with 8 additions and 6 deletions
|
@ -13,12 +13,14 @@
|
||||||
"Returns a seq of the namespaces that are compilable, regardless of whether
|
"Returns a seq of the namespaces that are compilable, regardless of whether
|
||||||
their class files are present and up-to-date."
|
their class files are present and up-to-date."
|
||||||
[project]
|
[project]
|
||||||
;; TODO: Compile :main ns if needed
|
(let [nses (set (cond
|
||||||
(cond
|
(coll? (:namespaces project))
|
||||||
(coll? (:namespaces project))
|
(:namespaces project)
|
||||||
(:namespaces project)
|
(= :all (:namespaces project))
|
||||||
(= :all (:namespaces project))
|
(find-namespaces-in-dir (file (:source-path project)))))]
|
||||||
(find-namespaces-in-dir (file (:source-path project)))))
|
(if (:main project)
|
||||||
|
(conj nses (:main project))
|
||||||
|
nses)))
|
||||||
|
|
||||||
(defn stale-namespaces
|
(defn stale-namespaces
|
||||||
"Given a seq of namespaces that are both compilable and that hav missing or
|
"Given a seq of namespaces that are both compilable and that hav missing or
|
||||||
|
|
Loading…
Reference in a new issue