mirror of https://github.com/sbt/sbt.git
Docs: section on `state` task
This commit is contained in:
parent
4b17d12de0
commit
130402b238
|
|
@ -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 ...
|
||||
|
|
|
|||
Loading…
Reference in New Issue