1.2.0 permalink Arrow_down_16x16

stale-namespaces

leiningen.compile

  • (stale-namespaces project)
Given a seq of namespaces that are both compilable and that have missing or
out-of-date class files.

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:32 top

(defn stale-namespaces
  "Given a seq of namespaces that are both compilable and that have missing or
  out-of-date class files."
  [project]
  (filter
   (fn [n]
     (let [clj-path (ns->path n)]
       (> (.lastModified (file (:source-path project) clj-path))
          (.lastModified (file (:compile-path project)
                               (.replace clj-path "\\.clj" "__init.class"))))))
   (compilable-namespaces project)))
Vars in leiningen.compile/stale-namespaces: > defn filter fn let
Used in 0 other vars

Comments top

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