Mark Harrah
054a754493
doc, test-doc tasks
2010-12-02 19:45:16 -05:00
Mark Harrah
a7b784fc86
small fixes
2010-12-02 19:31:23 -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
16e2b71ccc
don't print help for internal commands
2010-11-24 14:10:48 -05:00
Mark Harrah
ccf0508ce6
cleanup, small fixes
2010-11-24 14:08:20 -05:00
Mark Harrah
46a6a1af16
'test' task
2010-11-24 14:03:26 -05:00
Mark Harrah
9a8c62517f
small fixes to main discovery
2010-11-13 20:23:12 -05:00
Mark Harrah
54ba5d75be
work on products+configurations
2010-11-13 20:21:06 -05:00
Mark Harrah
69dd8b95d5
don't consider password when determining if 'update' is uptodate
2010-11-09 20:46:14 -05:00
Mark Harrah
b601804046
only write resulting Analysis back if compilation was performed
2010-10-30 15:44:36 -04:00
Mark Harrah
5f047f4439
remove out of date comment
2010-10-30 13:25:04 -04:00
Mark Harrah
f6bd013cd3
update help for 'iflast'
2010-10-30 13:24:45 -04:00
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
Mark Harrah
fec83c1470
fix help for 'compile'
2010-09-05 10:49:49 -04:00
Mark Harrah
502f355a65
convenience methods for compilation
2010-09-04 08:46:36 -04:00
Mark Harrah
0caa00da64
update DotGraph for 0.9
2010-09-04 08:46:19 -04:00
Mark Harrah
61c855ddc6
working towards using Logger
2010-09-04 08:46:00 -04:00
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
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
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
1949fe903c
Fix issue with lost task names
2010-08-21 22:52:18 -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
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
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
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
23bda55124
compile, discover, append commands
2010-08-04 19:51:12 -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
9c2268e919
task running command
2010-07-19 12:38:42 -04:00
Mark Harrah
1169493115
native type should be T => Option[O] not PartialFunction[T, O]
2010-07-19 12:31:22 -04:00
Mark Harrah
d7b66458f2
first shot at general command/definition model
2010-07-17 12:07:41 -04:00
Mark Harrah
d0fa1eb461
* move Environment classes to util/env module
...
* move TrapExit, SelectMainClass to run module
* rearrange some compilation-related code
* Jetty-related code moved to web module
2010-07-14 19:24:50 -04:00
Mark Harrah
6f3c699435
- Stuart's improvements to triggered execution
...
- continue splitting original sbt module
* separated process, testing modules
* various IO, logging, classpath migration
* split out javac interface
2010-07-05 12:53:37 -04:00
Mark Harrah
37185c0fb6
discovery, persistence, frontend, and various fixes to incremental
2010-07-02 06:57:03 -04:00
Mark Harrah
9ad9df42b6
first part of semantic, multi-stage incremental compilation
2010-06-27 09:18:35 -04:00
Mark Harrah
e1e60fe859
preserve compiler interface classes across invocations
2010-03-13 13:25:08 -05:00
Mark Harrah
a33223a02c
legal cleanup
2010-02-07 23:45:19 -05:00
Mark Harrah
4a566eb581
fix project creation prompt and launcher cache
2010-01-27 18:22:42 -05:00
Mark Harrah
5f9f3729d1
work on source api parts
2010-01-22 20:17:49 -05:00
Mark Harrah
6f6b795b39
* Basic API serialization
...
* Fixes to API extraction and equality checking
* Reworked tracking
* New compile infrastructure based on API changes
* Example application for testing
2010-01-05 19:50:43 -05:00
Mark Harrah
33434bc82b
Cut size of final jar by 300k.
2009-10-17 22:40:02 -04:00
Mark Harrah
b2fdc07505
Turned sbt launcher into a general Scala application launcher as described in launch.specification
2009-09-27 14:39:26 -04:00
Mark Harrah
76e81409df
Updates to Ivy component and getting launcher component working.
2009-09-08 23:13:30 -04:00