1.2.0 permalink Arrow_down_16x16

resolve-task

leiningen.core

  • (resolve-task task)

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/core.clj:68 top

(defn resolve-task [task]
  (let [task-ns (symbol (str "leiningen." task))
        task (symbol task)]
    (try
     (when-not (find-ns task-ns)
       (require task-ns))
     (or (ns-resolve task-ns task)
         #'task-not-found)
     (catch java.io.FileNotFoundException e
       #'task-not-found))))
Vars in leiningen.core/resolve-task: defn find-ns let ns-resolve or require when-not
Used in 0 other vars

Comments top

No comments for resolve-task. Log in to add a comment.