Allow task functions to be defined in project.clj.
This commit is contained in:
parent
97c0ffd854
commit
5dcbda0ef7
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue