Docs: section on `state` task

This commit is contained in:
Mark Harrah 2012-12-03 08:54:53 -05:00
parent 4b17d12de0
commit 130402b238
1 changed files with 9 additions and 0 deletions

View File

@ -216,3 +216,12 @@ For getting the test classpath of a specific project, use this key:
val taskKey: Task[Seq[Attributed[File]]] =
Keys.fullClasspath in (projectRef, Test)
Using State in a task
---------------------
To access the current State from a task, use `state` task as an input.
For example,
::
myTask := ... state.value ...