Commit Graph

80 Commits

Author SHA1 Message Date
Mark Harrah 2a21a86f8c move from TaskData to new system 2011-09-21 22:54:46 -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 5420a48a87 on-load message customizable, more specific message for plugin projects 2011-09-03 17:30:37 -04:00
Mark Harrah 6ea27e893b handle Scala version better in 'about' command 2011-08-18 08:23:43 -04:00
Mark Harrah d36e02ea22 allow setting initialization to be partially dynamic and run in parallel 2011-08-14 10:53:37 -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 a19d5a799c try out simplified display of scoped keys 2011-08-04 07:20:25 -04:00
Mark Harrah 30baf74169 improved global logging and 'last' command 2011-07-24 17:36:42 -04:00
Mark Harrah 2d4d27e529 add 'about' command with sbt versions and Scala versions 2011-07-24 17:36:42 -04:00
Mark Harrah 109326d34b additional warning when ignoring project load failure 2011-07-24 17:36:42 -04:00
Mark Harrah f0a9305ba2 clean up graphSettings 2011-07-23 23:07:54 -04:00
Mark Harrah b956b62c89 use name setting when displaying updated project 2011-07-17 11:26:27 -04:00
Mark Harrah f7cb85d36e restrict discarding session settings error message to direct load/reload. fixes #99 2011-07-12 23:09:57 -04:00
Mark Harrah 2e99fde9d2 overrideConfigs method for easier configuration substitution
ref #42
2011-07-09 16:54:41 -04:00
Mark Harrah b096d1b175 global settings preparation: separate compilation/loading stages of Eval 2011-07-09 16:54:41 -04:00
Mark Harrah d7a35e8e1d minor rearranging of rootProject 2011-07-06 07:30:47 -04:00
Mark Harrah 205a67e4a3 warn when reload discards session settings 2011-06-27 22:29:48 -04:00
Mark Harrah f7068a4cbb introduce file-mappings for File->File, Extracted.append for reloading with additional settings 2011-06-26 12:27:06 -04:00
Mark Harrah 18a3e7995e add new ProjectReference called LocalRootProject for referencing the root project in the current build 2011-06-23 20:37:56 -04:00
Mark Harrah 50fd30a695 ProjectDefinition.toString 2011-06-15 19:09:31 -04:00
Mark Harrah 1248830e2c fix 'inspect' not showing setting value 2011-06-15 19:08:49 -04:00
Mark Harrah 0fa5b85736 fix ProjectDefinition.equals not considering base directory, ref #54 2011-06-15 19:08:49 -04:00
Mark Harrah 3c775416b4 make settings parameter for ProjectDef call-by-name 2011-06-14 19:31:54 -04:00
Mark Harrah 8e4192b144 show type in output of 'inspect' 2011-06-14 19:31:54 -04:00
Mark Harrah be1bdbb350 use current project's logLevel for command logging 2011-06-10 23:40:25 -04:00
Mark Harrah 9a914bea4b minor improvements to running tasks from console-project 2011-05-25 22:44:22 -04:00
Mark Harrah babf642dfc speed up startup 2011-05-02 20:43:19 -04:00
Mark Harrah 515386d973 load/unload hooks 2011-04-26 21:19:56 -04:00
Mark Harrah daa58adc85 work on parser error handling 2011-04-25 20:20:05 -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 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 dc6584ff68 scripts: change base directory 2011-04-18 18:26:57 -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 f55414355e improve error messages for cycles 2011-04-13 19:06:36 -04:00
Mark Harrah e6b816d86e add additional in scope identifiers 2011-04-08 22:13:53 -04:00
Mark Harrah 50e453c70c provide more convenient access to BuildStructure and all projects 2011-04-08 22:03:41 -04:00
Mark Harrah 2a737690a8 allow Scala-level cyclic references between projects
this occurs legally when different dependencies go in
  reverse directions, as with delegates
the direct arguments to Project.apply are now call-by-name
the modifying functions like 'aggregate' cannot be call-by-name
   since they are varargs
2011-04-07 22:48:01 -04:00
Mark Harrah 8059b1a164 ability write graph of settings dependencies to dot format 2011-04-01 21:08:08 -04:00
Mark Harrah 2b37df87b5 'inspect actual <key>' for actual dependencies, 'inspect <key>' for declared 2011-03-29 20:53:21 -04:00
Mark Harrah 2ab8f5c3c0 fixes to 'inspect' delegates and provided by outputs 2011-03-25 22:01:21 -04:00
Mark Harrah 1de086755b command logging through Streams, 'last' without a key to redisplay it 2011-03-21 20:26:04 -04:00
Mark Harrah f34c3b5837 some renamings and removals suggested by Heiko
clarify command-related members of State:
  processors -> definedCommands
  commands -> remainingCommands
drop some Extracted members:
  curi replaced by currentRef.build
  cid replaced by currentRef.project
2011-03-21 17:56:41 -04:00
Mark Harrah caee48130e split out SessionSettings from Project.scala 2011-03-21 17:56:24 -04:00
Mark Harrah 63b1c3441b work on displaying task errors 2011-03-20 22:54:01 -04:00
Mark Harrah 50f1bd73d6 add convenience method for evaluating tasks 2011-03-19 00:04:37 -04:00
Mark Harrah 09b36a4476 make global scope explicit in command-retrieval 2011-03-13 21:42:44 -04:00
Mark Harrah f18241395b 'reload plugins' to change to plugins project
'reload return' to change back to original project.
Declaring a plugin:
> reload plugins
> set libraryDependencies += ...
> reload return
2011-03-11 22:33:30 -05:00
Mark Harrah f298d3a8f2 put configurations into default build scope 2011-03-05 08:25:17 -05:00
Mark Harrah 60d9355b54 add build level configuration
made ProjectRef semantics explicit
2011-03-03 06:44:19 -05:00