Grzegorz Kossakowski
f3d2df0f9c
Use `IncOptions` for `transitiveStep` and `recompileAllFraction`
...
Recently introduced IncOptions allow us to make both transitiveStep
and recompileAllFraction configurable in incremental compiler.
2013-02-19 12:23:07 -05:00
Grzegorz Kossakowski
70036812ab
Introduce incremental compiler options.
...
Introduce a way to configure incremental compiler itself instead
of underlying Java/Scala compiler.
Specific list of changes in this commit:
* Add a method to `xsbti.compile.Setup` that returns incremental
compiler options as a `java.util.Map<String, String>`. We considered
statis interface instead of a `Map` but based on mailing
list feedback we decided that it's not the best way to go because
static interface is hard to evolve it by adding new options.
* Since passing `java.util.Map<String, String>` not very convenient
we convert it immediately to `sbt.inc.IncOptions`
* Add options argument to various methods/classes that implement
incremental compilation so in the end options reach
`sbt.inc.IncOptions` object
* Add `incOptions` task that allows users to configure incremental
compiler options in their build files. Default implementation of
that tasks returns just `IncOptions.DEFAULT`
* Both system property `xsbt.inc.debug` and `IncOptions.relationsDebug`
trigger debugging of relations now. In the near future, we should
deprecate use of `xsbt.inc.debug`.
2013-02-19 12:23:07 -05:00
Grzegorz Kossakowski
4fe0c02536
Break long argument list into multiple lines.
...
Some methods take a lot of arguments and I'm about to add one more
which will make them too long for easy reading.
This change is changes code formatting only. That's done on purpose
to make it easier to review other changes.
2013-02-19 12:18:26 -05:00
Grzegorz Kossakowski
d6f4c5ae4f
Strip down trailing whitespace.
...
I have Eclipse configured to do that automatically when saving file.
I decided to finally commit those changes to files I touch a lot.
2013-02-19 12:18:26 -05:00
Jan Niehusmann
f9059849df
Fix link to sbt-git plugin
...
The old url https://github.com/sbt/sbt-git-plugin resulted in an 404 error. Changed to https://github.com/sbt/sbt-git which seems to be the correct url for that plugin.
2013-02-19 09:30:38 -05:00
jozic
51728d1ad1
switch dispatch to dispatch.classic to avoid collisions with plugins which use newer versions of dispatch (0.9+)
2013-02-19 08:54:56 -05:00
Adam Warski
9d4b604513
Updating the address of the xsbt-proguard-plugin
2013-02-19 08:54:45 -05:00
Mark Harrah
9ab1b98d2a
Use @compileTimeOnly for .value and .parsed methods.
...
Needed to set position on wrapper method for correct error message position.
2013-02-19 08:54:40 -05:00
Mark Harrah
ae74fff88c
When serially executing tests*, order tests by testOnly filter order
...
* parallelExecution in test := false
cc @bantonsson
2013-02-13 10:27:43 -05:00
Mark Harrah
b152a836c5
Docs: syntax fixes
2013-02-13 08:16:25 -05:00
Mark Harrah
67c459b6a2
-Ymacro-no-expand for API docs
2013-02-13 08:13:50 -05:00
Mark Harrah
4b61747dfc
remove deprecated scaladocOptions
2013-02-13 08:12:51 -05:00
Matthew Farwell
6c6d86d5ce
outputStrategy does not apply to test tasks
2013-02-13 07:19:27 -05:00
Mark Harrah
4417e12602
Docs: remove spurious dollar sign in manual unix script
2013-02-13 07:19:27 -05:00
Mark Harrah
76e0a941ba
Update to 2.10.1-RC1
...
Needed an explicit type in PMap to workaround an error.
Need to drop tuple assignment of parser.parsed in input task macro as a workaround
for macro/resetAllAttrs/pattern matching/annotation issue in RC1.
2013-02-13 07:17:20 -05:00
Mark Harrah
7a3a8bb50b
Disable -Xlint for scalac. Too many 'Adapting argument list by creating a 2-tuple' warnings.
2013-02-13 03:25:13 -05:00
Orr Sella
aa93f43381
Added sbt-stats to community plugins
2013-02-05 21:07:40 -05:00
Orr Sella
60fb5dcfd8
Added sbt-sublime to community plugins
2013-02-05 21:07:37 -05:00
Mark Harrah
c815f57a79
Workaround for os deadlock detection at the process level. Fixes #650 .
2013-02-05 10:27:19 -05:00
Mark Harrah
c0b1bb51e6
-Xlint
2013-02-04 17:30:31 -05:00
Mark Harrah
8cb7e23011
Load global plugins in their own class loader and replace the base loader with that. Fixes #272 .
...
Also, replace the base classpath with the global classpath.
2013-02-01 13:10:27 -05:00
Mark Harrah
52954b3ae7
skip duplicate entries in PluginClassLoader
2013-02-01 13:10:26 -05:00
Mark Harrah
b2eb4661df
Support 'reload plugins' after ignoring a failure to load a project.
...
This can be used to debug problems with dependencies or code.
It won't help with .sbt files, however.
2013-01-29 17:47:29 -05:00
Mark Harrah
437c805f3d
Fix ScalaProviderTest to work with new CrossValue type
2013-01-29 17:47:29 -05:00
Mark Harrah
6c5cafb55b
Remove support for deprecated alternative to project/ directory name.
2013-01-29 17:47:29 -05:00
Eugene Yokota
125727ba83
support binary version in launcher
2013-01-29 16:55:13 -05:00
Mark Harrah
e47b8ab578
Make 'eval' command work when project isn't loaded.
2013-01-29 08:47:04 -05:00
Mark Harrah
a57407375e
Implement InputTask.~= to operate directly on the result type T instead of an InputTask[T].
2013-01-28 18:01:35 -05:00
Mark Harrah
6a13d1e70a
move pre-type-lambda code to use a type lambda
2013-01-28 17:14:54 -05:00
Mark Harrah
b9402e2feb
fix tests/fork2
2013-01-28 17:14:53 -05:00
Mark Harrah
9702d3d318
Handle exceptions not caught by the test framework when forking. Fixes #653 .
2013-01-28 17:14:53 -05:00
Mark Harrah
8d11d1087a
Mark the tests failed exception as having already provided feedback
2013-01-28 17:14:53 -05:00
Mark Harrah
76a02c463f
Temporarily use a Scala home with '++ /path/to/scala/home'
2013-01-28 17:14:53 -05:00
Mark Harrah
13ea342b7a
use standard Context.weakTypeOf
2013-01-28 17:14:53 -05:00
Mark Harrah
076480b50a
Reduce InputTask to the ideal wrapper around 'State => Parser[Initialize[Task[T]]]'
...
Ref #407 .
2013-01-28 17:14:53 -05:00
Mark Harrah
1f32688657
remove deprecated Initialize.scoped method
2013-01-28 17:14:53 -05:00
Jason Zaugg
c597b48eda
Stop using Predef.error
...
We'd like to remove this from 2.11.0.
This patch should be backported to 0.12.3.
2013-01-28 22:29:48 +01:00
Eugene Yokota
d7779ec96e
add more CrossVersionTest
2013-01-24 13:03:40 -05:00
Eugene Yokota
fedd43922a
add CrossVersionTest
2013-01-24 13:03:40 -05:00
Eugene Yokota
6c24d1a8b8
deprecate binaryVersion
2013-01-24 13:03:40 -05:00
Mark Harrah
1f110c26e1
Run all scripted tests provided on the command line even if one group fails
...
Previously, all tests selected by a command line argument would be run,
but if a test failed, the tests for the next argument would not be run.
2013-01-24 13:00:41 -05:00
Eugene Yokota
b929d778e9
adds sbtApiVersion and scalaApiVersion
...
sbtApiVersion and scalaApiVersion each calculates the API
version of release builds as well as milestones and RCs.
scalaBinaryVersion and sbtBinaryVersion are now aware of
scalaApiVersion and sbtApiVersion respectively.
For example, sbtBinaryVersion for "0.13.0-SNAPSHOT" now evaluates to
"0.13.0-SNAPSHOT" instead of "0.13".
2013-01-24 08:21:11 -05:00
Mark Harrah
54f461752f
Put 2.10+ scalac options behind scalaVersion check. Closes #649 .
2013-01-23 12:48:54 -05:00
Mark Harrah
824000009d
Right precedence of sbt.boot.properties lookup, handle qualifier correctly. Fixes #651 .
2013-01-23 12:48:54 -05:00
Paolo G. Giarrusso
b0fe85490c
Enable Java -Xlint warnings, excluding serialization-related ones
2013-01-22 09:29:03 -05:00
Paolo G. Giarrusso
92d7520f7b
Silence boring Eclipse warnings: feature warnings - take #2
...
Silencing boring warnings allows seeing the interesting ones. Here I've excluded
reflectiveCalls, since that's a useful warning.
However, silencing those warnings in *Eclipse* would require committing Eclipse
projects, something which *will* take extra effort; I verified that the warnings
disappeared from the output of compilation in SBT.
2013-01-22 09:29:03 -05:00
Paolo G. Giarrusso
d64a0e078d
Silence boring Eclipse warnings: catching all exceptions, part 2
...
These warning fixes are new since my last pull request, please verify.
2013-01-22 09:05:15 -05:00
Paolo G. Giarrusso
236143be8d
Silence boring Eclipse warnings: catching all exceptions
...
Here I make explicit where catching all exceptions is intended.
Mark Harrah corrected one decision during review.
2013-01-22 09:05:15 -05:00
Paolo G. Giarrusso
40bc141058
Silence boring Eclipse warnings: @SuppressWarnings("rawtypes")
...
Add @SuppressWarnings("rawtypes") to ResolverAdapter, since it has a comment
making pretty clear that using raw types is intended.
2013-01-22 09:05:15 -05:00
Paolo G. Giarrusso
1d7e68be1b
Silence boring Eclipse warnings: unused imports
2013-01-22 09:05:15 -05:00