compilable-namespaces

leiningen.compile

  • (compilable-namespaces project)
Returns a seq of the namespaces that are compilable, regardless of whether
their class files are present and up-to-date.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source leiningen/compile.clj:18 top

(defn compilable-namespaces
  "Returns a seq of the namespaces that are compilable, regardless of whether
  their class files are present and up-to-date."
  [project]
  (let [nses (or (:aot project) (:namespaces project))
        nses (set (cond
                   (coll? nses) nses

                   (= :all nses)
                   (find-namespaces-in-dir (file (:source-path project)))))]
    (if (:main project)
      (conj nses (:main project))
      nses)))
Vars in leiningen.compile/compilable-namespaces: conj defn let
Used in 0 other vars

Comments top

No comments for compilable-namespaces. Log in to add a comment.