From 130402b2384503a71bb7c4e9626194afea459f23 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Mon, 3 Dec 2012 08:54:53 -0500 Subject: [PATCH] Docs: section on `state` task --- src/sphinx/Extending/Build-State.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/sphinx/Extending/Build-State.rst b/src/sphinx/Extending/Build-State.rst index 14fdf79b1..e22e1b091 100644 --- a/src/sphinx/Extending/Build-State.rst +++ b/src/sphinx/Extending/Build-State.rst @@ -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 ...