Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Merge pull request #771 from charleslparker/master

Clarifying project-specific plugins in doc
  • Loading branch information...
2 parents 5d37b41 + 11e6864 commit 6b2412ad35708a95bdc85cd25854052ad404371f @technomancy committed
Showing with 21 additions and 0 deletions.
  1. +21 −0 doc/
21 doc/
@@ -80,6 +80,27 @@ Often more complicated tasks get divided up into subtasks. Placing
`:subtasks` metadata on a task defn which contains a vector of subtask
vars will allow `lein help $TASK_CONTAINING_SUBTASKS` to list them.
+### Project-specific Tasks
+Occasionally, the need arises for a task specific to a project, so
+that, for example, `lein foo` is available from within that project's
+repo without a `lein install` or dependency download. To enable this
+behavior, place the `foo.clj` file defining the new task in
+`tasks/leiningen/` and add `tasks` to your `.lein-classpath`:
+$ ls project.clj src tasks test
+$ ls -R tasks
+$ echo -ne ":tasks" | cat >> .lein-classpath
+$ lein foo
+Hello, Foo!
## Code Evaluation
Plugin functions run inside Leiningen's process, so they have access

0 comments on commit 6b2412a

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