Commit Graph

54 Commits

Author SHA1 Message Date
Mark Harrah 1eef9e660a missed a compatibility overload for constructing an InputKey 2012-04-13 17:47:12 -04:00
Mark Harrah 87d2144c12 rank settings, tasks and use this to restrict help/settings/tasks output. fixes #315 2012-03-25 20:35:09 -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 9c87d078e3 InputTask.dependsOn, fixes #242 2011-12-13 17:29:08 -05:00
Holden Karau 07fd9ab57e Increase the magic number for RichTaskableN and ApplyN 2011-12-13 12:30:06 -08:00
Mark Harrah eb2ec8c781 concurrent execution restrictions 2011-11-19 23:56:30 -05:00
Mark Harrah e16bf3f695 fix stray closing */ 2011-10-16 21:29:39 -04:00
Mark Harrah 5e37d8e585 brief API documentation on some core settings types 2011-10-16 20:20:45 -04:00
Mark Harrah ddd70fcc77 inject 'log' method to State as convenience for CommandSupport.logger 2011-10-16 17:27:36 -04:00
Mark Harrah 6ddeca12a2 merge Scoped{Setting,Task,Input} and {Setting,Task,Input}Key 2011-10-16 17:27:36 -04:00
Mark Harrah d15504d970 local settings, sbt-package-private for now 2011-10-01 14:40:14 -04:00
Mark Harrah dc70cb7fb9 clean up Reduced 2011-09-26 08:20:08 -04:00
Mark Harrah 5ea02bf148 fix #204 2011-09-26 08:20:08 -04: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 0c2cb33d7b Undeprecate conversions to ScopedKey 2011-08-28 13:30:11 -04:00
Mark Harrah 90f25b234e Settings overhaul, intended to be source compatible where it matters.
Moves many methods previously provided by implicit conversions directly onto the classes
  for better discoverability, especially with scaladoc.

1. Initialize now allowed in more places.  Minor renamings in Initialize to avoid conflicts
  a. map -> apply
  b. get -> evaluate
2. Identity on Scoped* is deprecated- it is now redundant
3. Can now use += and <+= for String, Int, Long, Double settings.
  There may be some problematic corner cases in inference, especially with +=, ++, <+=, <++=
4. Some classes with a scoped: ScopedKey[T] method now have scopedKey: ScopedKey[T] instead.
5. The implicit conversion to ScopedKey[T] is now deprecated.  Use the scopedKey method.
6. :== and ::= are now private[sbt] to better reflect that they were internal use only.
2011-08-14 10:53:37 -04:00
Mark Harrah 4ae0ba6b57 more refactoring of special settings: input tasks. fixes #114 2011-07-21 22:03:56 -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 8c659328e9 back A.Key with Manifest, dropping object equality. fixes #27
type inference restoration pending switch to 2.9.0
2011-05-26 08:21:33 -04:00
Mark Harrah e048c6d07e fully configurable run task easier to create 2011-05-23 21:43:26 -04:00
Mark Harrah 6ae6a4b9ad or combinator for common optional setting handling case 2011-05-23 08:14:10 -04:00
Mark Harrah 2343a55bb9 replace Path with RichFile 2011-05-14 18:21:41 -04:00
Mark Harrah 7837e1a37b variants of += and ++= that accepting Initialize[S] 2011-05-12 22:33:45 -04:00
Mark Harrah 0ad682f2c1 basic optional input support 2011-05-07 22:02:06 -04:00
Mark Harrah 30e454af0a tab complete main classes, trigger auto-detection tasks on compilation 2011-04-23 13:17:21 -04:00
Mark Harrah f24af2a05b support for task hooks: triggeredBy and runBefore 2011-04-23 11:49:58 -04:00
Mark Harrah 8f639ffc4d convenience methods for working in console-project 2011-04-20 23:33:53 -04:00
Mark Harrah 815ed50dcf task/setting/attribute descriptions 2011-04-20 20:18:58 -04:00
Mark Harrah b75605c701 expand out to Apply9 2011-04-16 12:36:54 -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 5dcc1bc9bc direct Artifact->File map, removing source patterns
build and publish main sources and docs by default
control built-in artifacts with 'publish-artifact'
// disable publishing docs
 publishArtifact in (Compile,packageDoc) := false
// enable publishing test jar, docs, and sources
 publishArtifact in Test := true
2011-04-14 07:32:42 -04:00
Mark Harrah 4b70fe0921 auto-compiler plugins 2011-04-11 22:12:03 -04:00
Mark Harrah dfb0a9ec8c put remaining keys in Keys 2011-04-06 21:00:48 -04:00
Mark Harrah f2270262d2 ScopedTask[t] -> ScopedKey[Task[t]] implicit 2011-04-05 07:10:28 -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 b7f92ae07f 2.9 compatibility fixes 2011-03-04 06:16:35 -05:00
Mark Harrah 60d9355b54 add build level configuration
made ProjectRef semantics explicit
2011-03-03 06:44:19 -05:00
Mark Harrah 3922580c58 join for tasks and settings 2011-03-01 08:48:14 -05:00
Mark Harrah c9b932acd1 cleanup/rework related to Settings/InputParser
- drop fillThis: handle in injectStreams instead
- simplify InputParser construction (at the expense of implementation simplicity)
- split out ScopeKey/initialization parts of Setting with separate Initialize trait
  + makes Apply obsolete
  + makes the Initialize trait properly composable
  + this allowed splitting the InputParser definition into
    an Initialize for parsing and one for the action
- implement test-only
- inject resolved scope
2011-02-11 20:22:17 -05:00
Mark Harrah 1124cc59d9 package, package-doc, package-src 2011-02-10 08:16:07 -05:00
Mark Harrah 28d0b36b43 copy-resources 2011-02-06 13:01:50 -05:00
Mark Harrah c9b1b507cd doc,test tasks 2011-02-06 11:33:29 -05:00
Mark Harrah c1cc482b94 overhaul Streams injection 2011-02-05 21:39:34 -05:00
Mark Harrah eb10f7ee94 improve Setting construction
- make all constructing methods end in = for lowest precedence
- rename Scope constructing method 'apply' to 'in' to allow 'apply' to
    be used on single settings as well as tuples and 'in' reads better
2011-02-04 22:02:39 -05:00
Mark Harrah bff18e7e7a curry InputTask.apply for inference 2011-02-02 19:26:45 -05:00
Mark Harrah b9e4c9299b work on special settings, TupleN/FunctionN interface for map/flatMap 2011-01-30 23:19:28 -05:00
Mark Harrah 1c9caf40a3 minor additions 2011-01-29 11:22:59 -05:00
Mark Harrah 43dc6af4ce support map/flatMap on mixed Task/Setting KLists 2011-01-28 21:15:39 -05:00