Mark Harrah
aef6df3e20
handle undefined target directory in unique target check
2013-06-23 19:57:31 -04:00
Mark Harrah
602c1759a1
Make ExecuteProgress listener configurable via executeProgress setting.
...
Experimental, so everything is private[sbt].
2013-06-23 19:57:30 -04:00
Mark Harrah
1cc2f57e15
Experimental task progress interface. Fixes #592 .
...
Set sbt.task.timings=true to print timings for tasks.
This sample progress handler shows how to get names for tasks and
deal with flatMapped tasks. There are still some tasks that make
it through as anonymous, which needs to be investigated.
A setting to provide a custom handler should come in a subsequent commit.
2013-06-23 19:57:30 -04:00
Mark Harrah
ce1c8b0ebc
Better auto project ID handling. Ref #776 .
...
* Consolidate project ID validation and normalization into Project methods
* Provide an earlier and more detailed error message when the directory
name can't be used for the project ID
2013-06-23 19:57:30 -04:00
Mark Harrah
6f0028e50d
Use last path component of a URI in the staged path.
2013-06-23 19:57:30 -04:00
Mark Harrah
6091e60611
Show project version in 'about'
2013-06-19 19:18:40 -04:00
Mark Harrah
7796715e88
Move deprecated scala-tools conveniences to private[sbt] accessibility
2013-06-19 17:15:22 -04:00
Mark Harrah
464f093017
Handle newer predefined launcher types in boot overrides
2013-06-19 17:15:22 -04:00
Mark Harrah
b1cba90332
Promote new State methods to public
2013-06-19 12:01:45 -04:00
Mark Harrah
284cddff70
set position on parameter references in task/setting macros
2013-06-19 11:53:11 -04:00
Mark Harrah
2f9d68e869
Require projects to have unique target directories.
...
Configuring projects so that target directories overlap is usually
unintentional and the error message that results is usually unrelated
to the cause.
2013-06-18 18:43:50 -04:00
Mark Harrah
800bd3698a
Add syntax summary to 'set' and 'inspect' help. Follow-up to #776 .
2013-06-17 12:06:13 -04:00
Mark Harrah
53f75a85cc
Basic named commands now print usage if the argument parser fails on empty input. Fixes #776 .
...
The Help for these commands now needs to be cleaned up, since they were not written with
this feature in mind. In particular,
* consider adding syntax summaries in the short help strings
* alternatively, add the syntax summary data elsewhere for use specifically by this feature
* display a better message when there is no short help string, such as
"See 'help <command>' for usage." or just displaying the lower level error message, such as
"Expected whitespace"
2013-06-17 12:06:13 -04:00
Mark Harrah
53e7960976
separate out help message functions
2013-06-17 12:06:13 -04:00
Mark Harrah
74438d0c72
handle empty help list in aligned printing
2013-06-17 12:06:13 -04:00
Mark Harrah
0780a6c08a
Key parsing improvements. Ref #776 .
...
* Explain context of expected ':' and '/' error messages
* Restore strict project ID parsing to get proper message about invalid project ID
2013-06-17 12:06:13 -04:00
Mark Harrah
fb27f5558c
Propagate taskDefinitionKey in Incompletes from flatMaps. Ref #784 .
2013-06-15 23:55:05 -04:00
Mark Harrah
5a252fae3a
ScopeFilter.debug to print accepted and rejected scopes
2013-06-10 17:05:11 -04:00
Mark Harrah
271b03550b
Record artifact, module ID, and config for products
2013-06-01 10:56:30 -04:00
Mark Harrah
cd2b1edf6c
IncOptions class backup directory should be per-compilation, not shared.
...
Otherwise, one concurrent compilation will clean the directory out from under another.
2013-05-30 15:00:26 -04:00
Mark Harrah
431a0be42d
Pull sbt dependency version from sbtVersion to facilitate cross-building plugins.
2013-05-30 15:00:26 -04:00
Mark Harrah
8d13043afa
Only add automatically detected plugins to options once. Fixes #757 .
2013-05-28 07:56:48 -04:00
Mark Harrah
598b6209e3
Put summary not available message at the debug level. Review by @cheeseng.
2013-05-14 09:09:20 -04:00
Mark Harrah
0bb460c03e
Derive testGrouping,compilers,scalaBinaryVersion. Don't go through compileInputs for doc. Fixes #539 , #708 , #391 .
2013-05-09 17:28:50 -04:00
Mark Harrah
e1acc12290
In 'set' command, handle keys in new scopes in the affected settings part
2013-05-09 17:28:50 -04:00
Mark Harrah
7ed56d3fcd
Show defining locations when there are cycles between derived settings
2013-05-09 17:28:50 -04:00
Mark Harrah
6c0f47ef48
Default settings, which give internal sbt settings something like Plugin.globalSettings.
2013-05-09 17:28:40 -04:00
Mark Harrah
60b714e8de
require dynamic initialization to be explicitly enabled for derived settings
2013-05-09 17:28:39 -04:00
Mark Harrah
994886ee51
display derived settings information in 'inspect'
2013-05-09 17:28:39 -04:00
Mark Harrah
dfe418b3c3
Derived settings, which allows injecting settings wherever their dependencies are defined.
...
This is an advanced feature initially intended for internal sbt use.
2013-05-09 17:27:43 -04:00
Mark Harrah
6b32aa661c
use Option constructor instead of Some for potentially null file lock
2013-05-08 12:56:50 -04:00
Mark Harrah
51bd1e8ceb
Include files with zip extension in unmanaged jars. Fixes #750 .
2013-05-06 08:28:34 -04:00
Mark Harrah
f7ce8334c3
Merge remote-tracking branch 'scalatest/new-framework-api-12' into 0.13
2013-05-01 08:34:01 -04:00
Mark Harrah
6a70b9f565
Proper support for stashing on-failure handlers. Fixes #732 .
2013-04-30 18:55:02 -04:00
Mark Harrah
8813712c60
Versioned global sbt directory. Fixes #735 .
2013-04-30 18:55:02 -04:00
Mark Harrah
fb0a8c463b
Scope packagedArtifacts for publish*Configuration to publish* to make it easier to filter artifacts for different publish targets.
2013-04-26 18:51:58 -04:00
cheeseng
48fb0c4ed6
Initial working version of makeParallel that support nested tasks.
2013-04-25 00:06:52 +08:00
cheeseng
3109912d00
Added support of nested test tasks when tests are executed InProcess and sequentially.
2013-04-25 00:06:52 +08:00
cheeseng
ad18b4f3ae
Added code to tag test task using Array[String] returned from Task.tags method.
2013-04-25 00:06:51 +08:00
cheeseng
f862e64911
Added support of custom summary message returned from Runner.done method.
2013-04-25 00:06:51 +08:00
cheeseng
1ec2118219
-Moved code that count test results from TestLogger to SuiteResult.
...
-Print the results in Tests.showResult.
2013-04-25 00:06:41 +08:00
cheeseng
a76523a5f6
Added >1 framework class per framework support, this enables sbt to support both old and new framework API at the same time.
2013-04-23 12:00:05 +08:00
cheeseng
f38a244d0f
Added code to call Runner's done() method in both InProcess and SubProcess cases.
2013-04-23 12:00:03 +08:00
cheeseng
244e65cd79
-Changed behavior so that only a single Runner instance is used to run tests in multiple test groups.
...
-Added code to support remoteArgs in test-interface 1.0.
2013-04-23 11:09:50 +08:00
cheeseng
b83d378cd0
Changed ForkTests to call acceptorThread.join(), to make sure that acceptorThread is finished before Acceptor.result is called.
2013-04-23 11:09:48 +08:00
cheeseng
18bc8423b5
Initial version that uses new framework API in test-interface 1.0:
...
-Changed usages and implementations of interfaces in org.scalatools.testing._ to use/implement interfaces/classes in sbt.testing._ instead.
-Added sbt.testing to interfaceFilter in TestFramework.createTestLoader method to enable loading of classes in sbt.testing package.
-Added FrameworkWrapper.java to wrap old framework implementations.
-Added code in ForkMain.java to serialize Selectors.
2013-04-23 11:09:37 +08:00
Mark Harrah
8d0c1408c0
Allow -cp argument to 'apply' command to be quoted. Fixes #724 .
2013-04-12 12:47:45 -04:00
Mark Harrah
a4c059cb7e
Better auto-generated IDs for default projects. Fixes #554 .
...
For the global plugins project, the default ID is "global-plugins".
For a normal project, the default ID is the name of the build directory.
The ID of a build definition for one of the above appends -build.
2013-04-10 20:15:28 -04:00
Mark Harrah
96b2ca7ce4
Use a default root project aggregating all projects if no root is defined. Fixes #697 .
...
Ref #554 .
2013-04-10 20:15:27 -04:00
Mark Harrah
23be591c95
memoize .sbt file loading within a build and only add a Project once
...
This fixes an infinite loop when defining a Project in a .sbt file
with the build base directory as the project base directory.
This allows the standard behavior for interpreting settings from
.sbt files for both Projects defined in .sbt files as well as in
.scala files. That is, settings in .sbt files in "." go in all
projects with "." as their base directory.
Ref #554 .
2013-04-10 20:15:27 -04:00