sbt/util
Mark Harrah c669606999 TaskKey[T].previous: Option[T], which returns the value of the task the last time it executed.
This requires a Format[T] to be implicitly available at the call site and requires the task
to be referenced statically (not in a settingDyn call).  References to previous task values
in the form of a ScopedKey[Task[T]] + Format[T] are collected at setting load time in the
'references' setting.  These are used to know which tasks should be persisted (the ScopedKey)
and how to persist them (the Format).

When checking/delegating previous references, rules are slightly different.

A normal reference from a task t in scope s cannot refer to t in s unless
there is an earlier definition of t in s.  However, a previous reference
does not have this restriction.  This commit modifies validateReferenced
to allow this.

TODO: user documentation
TODO: stable selection of the Format when there are multiple .previous calls on the same task
TODO: make it usable in InputTasks, specifically Parsers
2013-12-06 20:45:01 -05:00
..
appmacro/src/main/scala/sbt/appmacro Remove the need for resetLocalAttrs. Fixes #994, #952. 2013-11-22 13:08:10 -05:00
classfile Remove AnalysisCallback.{beginSource, endSource} methods. 2013-10-24 16:44:45 +02:00
classpath More API docs for the classpath module 2013-08-16 14:22:14 -04:00
collection TaskKey[T].previous: Option[T], which returns the value of the task the last time it executed. 2013-12-06 20:45:01 -05:00
complete API docs for Parser(s). 2013-08-16 14:22:14 -04:00
control Silence boring Eclipse warnings: catching all exceptions 2013-01-22 09:05:15 -05:00
cross/src/main/input_sources -Xlint 2013-02-04 17:30:31 -05:00
datatype Add equals/hashCode to generated API datatype classes. 2013-10-11 15:52:23 -07:00
io Deprecate some methods replaced by PathFinder.pair 2013-10-17 15:00:48 -04:00
log avoid deadlock in ConsoleOut.systemOutOverwrite 2013-11-01 13:27:23 -04:00
process update to ScalaCheck 1.11.0 2013-11-04 11:28:40 -05:00
relation/src Fix implementation of Relation.size. 2013-11-04 09:29:38 -05:00