Commit Graph

75 Commits

Author SHA1 Message Date
Jean-Rémi Desjardins ca736e55d3 Minor code cleanup 2014-12-03 09:56:34 -08:00
Eugene Yokota 3f958a5bce enable -deprecation for Scala 2.10
Enable -deprecation flag to catch old code being use when we migrate
things.
In this commit I moved error to sys.error.
2014-10-10 15:42:26 -04:00
Josh Suereth aee7903338 Disable flaky test, as it's timeout based.
Fixes #1398
2014-08-08 14:28:33 -04:00
Josh Suereth 244abd3b6f Scalariforming test code 2014-05-07 11:52:23 -04:00
Eugene Yokota adb41611cf added scalariform 2014-05-01 12:50:07 -04:00
Mark Harrah 906f86e39f API documentation for TaskStreams. 2013-12-19 18:32:01 -05:00
Mark Harrah a677448a6c Fix closeable streams to recreate streams for a key if the delegate was closed. 2013-12-06 20:43:48 -05:00
Mark Harrah 9f75ab31cc fix task execution test compilation 2013-06-28 00:01:19 -04:00
Mark Harrah f30953ea4d ManagedStreams cannot be sealed if Streams is to be externally implemented 2013-02-25 09:24:05 -05:00
Mark Harrah 076480b50a Reduce InputTask to the ideal wrapper around 'State => Parser[Initialize[Task[T]]]'
Ref #407.
2013-01-28 17:14:53 -05:00
Mark Harrah aff95baf0e Provide cacheDirectory via Streams instead of a separate setting
This is cleaner and makes it harder for the task author to have overlapping caches.
2013-01-10 16:06:12 -05:00
Grzegorz Kossakowski ef39aeb9c1 Follow source layout convention supported by Eclipse.
Moved source files so directory structure follow package
structure. That makes it possible to use Scala Eclipse plugin
with sbt's source code.
2012-12-07 10:27:08 -08:00
Mark Harrah 538f687208 Use and methods instead of mapR,mapFailure,flatFailure,flatMapR 2012-12-02 03:17:19 -05:00
Mark Harrah 8d6dd10798 2.10.0-M5, different arity generalization
1. KList[M[_]] now instead of KList[HL <: HList, M[_]]
  a. head, tail work properly in this variant
  b. disadvantage is that full type not easily transformed to new type constructor
2. AList abstracts on K[L[x]], a higher order type constructor.
 A. Instances written for:
  a. KList
  b. Seq[M[T]] for a fixed T
  c. TupleN
  d. single values
  e. operate on one type constructor when nested
 B. Main disadvantage is type inference.  It just doesn't happen for K[L[x]].
    This is mitigated by AList being used internally and rarely needing to construct a K.
2012-11-17 20:19:24 -05:00
Mark Harrah 29dd76da85 defer opening logging output files until an actual write 2012-08-27 10:49:13 -04:00
Mark Harrah e2b5ce374c fix task tests 2012-07-01 15:16:41 -04:00
Mark Harrah 4b724e1102 inline tasks, for internal use later 2012-05-19 18:20:20 -04:00
Eugene Vigdorchik dabb0fd377 Refactor according to the comments. 2012-05-17 07:24:24 -04:00
Eugene Vigdorchik 2b1f21a21c Additional method in ProcessIO to process inheriting input. 2012-05-17 07:24:24 -04:00
Mark Harrah 2bb2aed1f6 Revert "work around for 2.10. pattern matching on KNil now requires KNil()"
This reverts commit 2f726b34c3.

This commit caused "java.lang.Error: typeConstructor inapplicable for <none>" when running 'sxr'
2012-03-17 22:58:13 -04:00
Mark Harrah 2f726b34c3 work around for 2.10. pattern matching on KNil now requires KNil() 2012-03-17 19:31:03 -04:00
Mark Harrah c40055cc1c cleanup, fix compilation 2012-02-19 22:41:26 -05:00
Mark Harrah eb2ec8c781 concurrent execution restrictions 2011-11-19 23:56:30 -05:00
Mark Harrah a7e95ada16 API documentation 2011-11-19 23:56:30 -05:00
Mark Harrah 5918c24722 Task state.
* Allow tasks to provide State transformations that are applied after all tasks complete.
* Provide convenience methods for preserving state across invocations.
* Option of session or persisted state.
2011-09-21 22:54:46 -04:00
Mark Harrah 97028cb7f8 drop unused 'original' field from task info 2011-09-21 22:54:46 -04:00
Mark Harrah ffb4f1f325 simpler hashCode for Task 2011-08-05 21:56:32 -04:00
Mark Harrah b096d1b175 global settings preparation: separate compilation/loading stages of Eval 2011-07-09 16:54:41 -04:00
Mark Harrah d0e072aa14 fix dependsOn not propagating failures in dependencies 2011-06-22 19:17:10 -04:00
Mark Harrah 4af89d51e1 dump a bit less state on cycles 2011-06-12 21:32:51 -04:00
Mark Harrah 9002720933 move to 2.9.0-1, bump to 0.9.9 2011-05-29 00:22:08 -04:00
Mark Harrah 0c572bc4aa touch variant that doesn't set last modified time 2011-05-18 08:12:06 -04:00
Mark Harrah b0afdbc6e6 make ManagedStreams public 2011-05-12 09:26:15 -04:00
Mark Harrah aae8b084ca test fixes 2011-05-07 22:02:05 -04:00
Mark Harrah 818382766e add Types.idFun to replace Predef.identity, replace a :== overload
idFun[T]: T => T instead of identity[T](t: T): T
  doesn't require a new class file when used as a function value
replaced overloads of :== that assigned the Scoped reference on
  the right to the Scoped on the left with <<= scoped.identity
2011-04-16 11:24:58 -04:00
Mark Harrah f42c93901b work on tests 2011-04-08 19:17:58 -04:00
Mark Harrah 15f490c625 fix input tasks not being keyed & not showing up in failed task list 2011-04-04 19:10:35 -04:00
Mark Harrah 0123351a8f initially only display originating task failures only 2011-03-21 20:50:20 -04:00
Mark Harrah 63b1c3441b work on displaying task errors 2011-03-20 22:54:01 -04:00
Mark Harrah c1cc482b94 overhaul Streams injection 2011-02-05 21:39:34 -05:00
Mark Harrah 684da642c5 cleanup in TaskExtra 2011-01-28 21:14:12 -05:00
Mark Harrah 21dabc0fab load a single Streams instance per session and store it in BuildStructure 2011-01-21 17:22:18 -05:00
Mark Harrah 087bc569e0 multi-project model based on Settings and ProjectRef 2011-01-18 18:48:32 -05:00
Mark Harrah 6d2bbbe0c1 TaskGroups, Context in tasks, new tasks
add syncTask task constructor and copy-resources/copy-test-resources instances
add console-quick, test-console, console, test-run
add IntegrationTest trait
make Context available through 'context' task
update 'last' and 'show' to use Context to retrieve task by name
drop SingleProject (superseded by Project)
add TaskGroup to be able to inject groups of named tasks
fix watchPaths missing flat sources
proper logging in a few more places, such as compile
2010-11-24 14:18:59 -05:00
Mark Harrah 46a6a1af16 'test' task 2010-11-24 14:03:26 -05:00
Mark Harrah fdb4a98d8b Task.doFinally 2010-11-13 20:02:25 -05:00
Mark Harrah 47e9428144 TaskMap: memoizes task-producing functions 2010-09-17 19:41:20 -04:00
Mark Harrah 62b30c0156 shorten toString for task Info, correct it for Incomplete 2010-09-12 22:41:02 -04:00
Mark Harrah be8b63cb38 fix implied transformation loop
'implied' state was not reset on transformed
 Task, so it was processed again (and again...)
2010-09-08 14:32:28 -04:00
Mark Harrah 1659e05213 more methods for changing Task 'implied' state
implied(flag: Boolean)
local
2010-09-08 14:31:14 -04:00