Skip to content

Commit

Permalink
Allow task functions to be defined in project.clj.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Feb 14, 2010
1 parent 97c0ffd commit 5dcbda0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/leiningen/core.clj
Expand Up @@ -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
Expand Down

0 comments on commit 5dcbda0

Please sign in to comment.