Skip to content
Browse files

Allow task functions to be defined in project.clj.

  • Loading branch information...
1 parent 97c0ffd commit 5dcbda0ef7dd3bcbfe7387f4db7f3c27e16e4ce4 @technomancy committed Feb 14, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/leiningen/core.clj
3 src/leiningen/core.clj
@@ -61,7 +61,8 @@
(format "%s is not a task. Use \"help\" to list all tasks."
- (require task-ns)
+ (when-not (find-ns task-ns)
+ (require task-ns))
(or (ns-resolve task-ns task)
(catch e

0 comments on commit 5dcbda0

Please sign in to comment.
Something went wrong with that request. Please try again.