Commit Graph

750 Commits

Author SHA1 Message Date
Mark Harrah 8f1768d6a8 add Logger to Streams 2010-09-04 08:45:34 -04:00
Mark Harrah caa655ae06 add owner name function to context 2010-09-04 08:44:21 -04:00
Mark Harrah 2e3367d6d6 first part of fixing #44 2010-09-04 08:42:37 -04:00
Mark Harrah 40a8b77f18 make 'run' and 'tracking' subprojects available 2010-09-04 08:30:02 -04:00
Mark Harrah bdcf0a7656 'project definitions' can get info about compilation
definition that has constructor with single parameter of
 type Compiled gets passed the compilation parameters and
 Analysis for compiling it
2010-09-04 08:27:07 -04:00
Mark Harrah 8c02f9f478 rename Compile member to avoid conflict with pending change 2010-09-04 08:25:34 -04:00
Mark Harrah 050f9db501 rework ConsoleLogger
can send output to a PrintWriter
control over color, still need custom formatter
replace IvyLogger with normal Logger
2010-09-04 08:24:26 -04:00
Mark Harrah 9bcd68d28c rework REPL support
allow bindings, which requires specifying the parent class loader
same code can be used for both 'console' and 'console-project' now
provide interface through main/Console
2010-09-04 08:18:06 -04:00
Mark Harrah 37594904f9 remove unused parameter and fix comment 2010-09-04 08:13:36 -04:00
Mark Harrah 763fbfb39f fix PMap test 2010-09-04 08:12:17 -04:00
Mark Harrah 6378107317 paths cleanup 2010-09-04 08:11:36 -04:00
Mark Harrah 22f319588c reworked tracking
added memoization for Set[File] => Set[File]
2010-09-04 08:11:05 -04:00
Mark Harrah b4eea78959 cleanup 2010-09-04 08:07:51 -04:00
Mark Harrah 0c59e9d5a6 minor updates for p2 2010-08-30 09:10:25 -04:00
Mark Harrah 62691e6681 cross-configurations 2010-08-27 19:17:03 -04:00
Mark Harrah 4bb7c44730 fix Logger/Process 2010-08-22 19:07:46 -04:00
Mark Harrah 368bdd2701 task system cleanup
KList.map -> transform
can now drop trailing 'H' from multi-Task 'mapH'
compressed Action hierarchy by merging (Flat)Map{ped,All,Failure} into (Flat)Mapped
moved most information in Info into attributes: AttributeMap to allow future changes
2010-08-21 22:55:42 -04:00
Mark Harrah 1949fe903c Fix issue with lost task names 2010-08-21 22:52:18 -04:00
Mark Harrah 0b39232445 clean up Process subproject
no longer has any dependencies
small ProcessLogger interface to send buffered out/err to
commented out (but working) implicit conversions from Logger -> ProcessLogger
  for use in an integrating project to get original functionality
2010-08-21 22:49:11 -04:00
Mark Harrah 1a8f4a9874 fix launch test 2010-08-21 22:47:26 -04:00
Mark Harrah 51518c8d90 eliminate overloading of #| between type classes
this allows function parameter type to be inferred for binary/text
 and implicit conversions to ProcessBuilder to kick in
2010-08-21 22:45:50 -04:00
Mark Harrah 79103857c9 add SingleProject
a small trait to use for declaring single projects
using the standard task system
2010-08-14 10:52:46 -04:00
Mark Harrah 1fef28d812 a standard task system on top of the 'tasks' module
map, flatMap on single/parallel tasks
dependsOn for side-effect-only dependencies
variants to handle failure- operations similar to catch/finally
fork, join, reduce, ...
initial structure to handle tags, needs to be moved to generic map
per-task streams:
  file-backed, named input/output streams and readers
  keyed by task name
  grab streams of current task or another task's streams
  pipe between tasks, ProcessBuilders (partially unify tasks/processes)
access to command line, current State from any task
multi-project aggregation controllable per-task

open issue: overloading #| with multiple type classes does not work
2010-08-14 09:55:49 -04:00
Mark Harrah 23bf3e55c7 merge two Tasked methods
In practice, the returned task is coupled to the conversion function,
so task and taskToNode were merged.  Also, renamed 'task' to 'act'.
2010-08-14 09:50:22 -04:00
Mark Harrah 44c49ab531 remove Rewrite 2010-08-14 09:49:28 -04:00
Mark Harrah 714d21d865 add IO functions: InputStream -> File, BufferedReader -> List[String] 2010-08-14 09:48:46 -04:00
Mark Harrah 1602dd2715 KList updates
add conversion from List[M[_]] to KList[M, HList]
required KList to be covariant in its HList parameter
2010-08-14 09:46:49 -04:00
Mark Harrah bf2057f647 Fix issue with view being called multiple times for the same task (view -> viewCache) 2010-08-14 09:45:26 -04:00
Mark Harrah dff30c036e sbt and Scala classifiers can be configured in build.properties
The sbt.classifiers property sets the classifiers for sbt and
scala.classifiers sets it for Scala.  Note that when creating a
project, Scala and sbt are retrieved right after project setup.

Changes to *.classifiers will only apply if project/boot is
removed or a new version of Scala is retrieved.
2010-08-11 18:50:44 -04:00
Mark Harrah e750de2c3b allow *, ** in paths and handle absolute paths for 'load' and related commands 2010-08-10 09:20:11 -04:00
Mark Harrah 1ee5af39d6 allow discovery on both modules/classes, not just one or the other 2010-08-10 09:19:37 -04:00
Mark Harrah fe224479bc small cleanups to exception handling 2010-08-10 08:46:27 -04:00
Mark Harrah 371a66bc3f rm dead-end standard tasks 2010-08-10 08:45:36 -04:00
Mark Harrah 39839f2c16 change from user commands extending Command directly to providing CommandDefinitions instance that creates commands 2010-08-10 08:44:34 -04:00
Mark Harrah 32150e7097 type alias A ~>| B for [T]A[T] => Option[B[T]] 2010-08-10 08:40:14 -04:00
Mark Harrah 14d1bc5282 split out read-only RMap from PMap 2010-08-10 08:39:30 -04:00
Mark Harrah 8caaabbdf4 Handle absolute paths passed to Path.fromString 2010-08-10 08:36:31 -04:00
Mark Harrah d3f02f7c80 control incremental compiler debugging with xsbt.inc.debug system property 2010-08-10 08:35:26 -04:00
Mark Harrah 98cd577e1d Configure jetty-env.xml. Allows specifying JNDI datasources. Inspired by maven-jetty-plugin.
Only takes effect when jettyEnvXml equals Some[File], by default None.
Tested with jrebel.
2010-08-04 20:33:50 -04:00
Mark Harrah 23bda55124 compile, discover, append commands 2010-08-04 19:51:12 -04:00
Mark Harrah ab78c8791a remove call-by-name modifier for error function, doesn't work well 2010-08-04 19:48:48 -04:00
Mark Harrah 250a287079 fix source selection for load -project 2010-08-04 19:42:32 -04:00
Mark Harrah 96df10aad2 ignore empty commands 2010-08-04 19:41:46 -04:00
Mark Harrah 758380979e command error handling 2010-08-04 19:41:11 -04:00
Mark Harrah 7390876874 remove unnecessary default arguments from Build 2010-08-04 19:19:15 -04:00
Mark Harrah 767a1e47c1 adding more commands 2010-07-27 23:01:45 -04:00
Mark Harrah 8e255bc226 log start message for processor update 2010-07-22 12:17:59 -04:00
Mark Harrah 9c2268e919 task running command 2010-07-19 12:38:42 -04:00
Mark Harrah 665dae75e7 make JLine dependency optional for Logger module 2010-07-19 12:33:41 -04:00
Mark Harrah 56b0b7592d unnecessary import in BufferedLogger 2010-07-19 12:32:13 -04:00