Commit Graph

91 Commits

Author SHA1 Message Date
Mark Harrah f462cda1fb add 'project /' and 'project ..' commands 2010-10-30 13:24:23 -04:00
Mark Harrah 27c8f565ed auto-update if configuration has changed 2010-10-26 18:31:51 -04:00
Mark Harrah 37904a1644 replace unordered collections in several locations with ordered ones 2010-10-26 18:09:33 -04:00
Mark Harrah 16ad0419a8 fix incorrectly using cache directory as cache file for compile
now, <cache-dir>/compile/<config>
2010-10-26 18:06:59 -04:00
Mark Harrah a76d75bca6 more flexible scalac logging
the custom scalac Reporter now delegates to an instance of
  an sbt interface called xsbti.Reporter
handling compilation logging is now mainly done on the sbt-side of the
  compiler interface
the xsbti.Reporter interface provides access to richer information
  about errors and warnings, including source file, line, and offset
xsbti.Reporter can be implemented by users to get access to
  detailed information without needing to parse the logging output
the CompileFailed exception that is thrown when compilation fails now
  includes an array of the problems, providing detailed
  error and warning information that can, for example, be consumed
  by doing a mapFailure on 'compile' and using 'Compile.allProblems'
2010-10-23 16:34:22 -04:00
Mark Harrah a3f1b9c22f fix tests, discovery
updated compile tests for new minimal AnalysisCallback
moved discovery to discovery/ subproject and updated for new approach
fixed discovery to only find public methods when searching for annotated definitions
extracting inherited definitions unimplemented in api/, so some discovery tests fail
moved discovery classes from sbt.inc package to sbt.compile
2010-10-06 08:24:13 -04:00
Mark Harrah 585f98438a discovery, 'run', and separate out build Scala version 2010-09-27 19:05:21 -04:00
Mark Harrah b233cfb29f use default project when none discovered 2010-09-27 19:00:46 -04:00
Mark Harrah a033e1647a translate call to task-name to taskName 2010-09-27 19:00:22 -04:00
Mark Harrah df721ddf15 reintegrate support for sending commands over loopback 2010-09-27 18:59:35 -04:00
Mark Harrah d185e0aeb4 properly fail when a task fails 2010-09-27 18:59:14 -04:00
Mark Harrah ce068d7fbc Java source support
generate API for Java sources from class files (currently, uses reflection)
hook into partial recompilation process
2010-09-27 18:57:00 -04:00
Mark Harrah d6b21b9a96 small cleanup 2010-09-27 18:52:51 -04:00
Mark Harrah 4b43e070ca handle empty arguments case correctly 2010-09-27 18:49:13 -04:00
Mark Harrah a2300c7dc0 use default configurations 2010-09-27 18:48:46 -04:00
Mark Harrah 0f0e89af85 check that external project directory exists before trying to load it 2010-09-23 11:45:19 -04:00
Mark Harrah f3de1d728c fix printing sources 2010-09-23 10:29:25 -04:00
Mark Harrah 28f1eecbef changes to make latest preview easier 2010-09-23 09:21:39 -04:00
Mark Harrah 1567de67b2 fix update, default project supports triggered execution 2010-09-21 22:38:18 -04:00
Mark Harrah eed8dfdbab grab base inter-project dependencies from the ProjectInfo 2010-09-21 22:36:22 -04:00
Mark Harrah bedc288c91 actually throw the exception when name is not overridden instead of returning it as the name 2010-09-21 22:34:07 -04:00
Mark Harrah 87842346c6 rename compile command to avoid conflict with compile task 2010-09-21 22:32:54 -04:00
Mark Harrah 20cdb2b75b TaskExtra superseded by package object 2010-09-21 22:31:35 -04:00
Mark Harrah 92df7fe3ee remove some explicitly constructed implicits no longer necessary with 2.8.1 2010-09-21 22:29:18 -04:00
Mark Harrah b16b0adc0f add sbt package object
for use from project definitions only-
 it is a top-level project
add dependency and repository builders
 cross-versioning will be a post-construction transformation
2010-09-21 22:24:24 -04:00
Mark Harrah e0ac454f65 tailrec annotation and shorten constant name in Watched 2010-09-21 22:02:26 -04:00
Mark Harrah 805e6c1338 remove original compiler test application 2010-09-21 22:00:37 -04:00
Mark Harrah d6a7401cd8 fix component name in main notice 2010-09-21 22:00:11 -04:00
Mark Harrah 108ecf59fa a demo Project type
multi-project incremental compilation
 and dependency management
'update' currently runs on every compile
built-in 'compile' command shadows 'compile' action
2010-09-17 22:17:10 -04:00
Mark Harrah 3db480c611 add ProjectExtra to TestProject 2010-09-17 22:13:11 -04:00
Mark Harrah 3a8235a614 raw Project vals are added as execution dependencies 2010-09-17 22:12:17 -04:00
Mark Harrah 0d5814e2b3 Rework external dependency tracking and multi-projects
Reduce AnalysisCallback interface:
  remove discovery
  simplify dependency notification methods
Use map of classpath entry to Analysis for locating
  source API for external dependencies
Handle classpath changes by locating class
  on classpath and either locating Analysis/Source
  as above or comparing Stamp.  This requires storing
  the class name of a binary dependency now.
Make this process aware of full classpath, including
  boot classpath
2010-09-17 21:59:43 -04:00
Mark Harrah 7155b50ee0 Project subtype for evaluating tour3 2010-09-13 19:44:26 -04:00
Mark Harrah 15abc87c45 remove spurious unchecked warning 2010-09-13 19:42:40 -04:00
Mark Harrah 43d593e281 start of managed project support
does proper inter-project resolution
still needs proper scope/configuration setup
2010-09-12 23:16:07 -04:00
Mark Harrah c2a9a95baf redo external projects
move externals from State to ProjectInfo
2010-09-12 22:58:22 -04:00
Mark Harrah e3d39175d4 add console-project tasks to Project 2010-09-12 22:49:33 -04:00
Mark Harrah 129f1e152d remove comment that no longer applies 2010-09-12 22:44:33 -04:00
Mark Harrah fce5330464 use Incomplete.show for displaying task failures 2010-09-12 22:43:42 -04:00
Mark Harrah 179634a019 some more ways to create a Console 2010-09-12 22:42:18 -04:00
Mark Harrah 1d1aa6b1b5 integrate logging, subprojects 2010-09-08 14:46:14 -04:00
Mark Harrah e80de34a6e split out extra tasks, implement logging 2010-09-08 14:45:22 -04:00
Mark Harrah a5ac661115 make project history-enabled 2010-09-08 14:44:04 -04:00
Mark Harrah 7b64a8f526 project navigation changes
projectClosure takes State
save initial project in State
2010-09-08 14:40:24 -04:00
Mark Harrah 0c12c5e2bd merge ProjectContainer into Project, rearrange sub project methods 2010-09-06 00:15:20 -04:00
Mark Harrah 323115e263 register loadp, ~, -- commands 2010-09-06 00:13:59 -04:00
Mark Harrah 67682f32d3 implement ~ 2010-09-06 00:13:53 -04:00
Mark Harrah 018ef2b3c7 add failure wall command '--' 2010-09-05 11:16:53 -04:00
Mark Harrah 6b4844094a project loading 2010-09-05 11:12:44 -04:00
Mark Harrah cc4fc95dba add generic attribute map to State 2010-09-05 10:56:24 -04:00