Allow task functions to be defined in project.clj.

This commit is contained in:
Phil Hagelberg 2010-02-14 14:14:49 -08:00
parent 97c0ffd854
commit 5dcbda0ef7

View file

@ -61,7 +61,8 @@
(format "%s is not a task. Use \"help\" to list all tasks."
task)))]
(try
(require task-ns)
(when-not (find-ns task-ns)
(require task-ns))
(or (ns-resolve task-ns task)
error-fn)
(catch java.io.FileNotFoundException e