Jason Zaugg
efa362c583
Fix #552 Compensate for JLine's absent EOF detection.
...
In the unsupported terminal mode, JLine treats a broken
stdin as an endless stream of empty lines. This is problematic
for idea-sbt-plugin: if the IntelliJ process is forcibly killed
and leaves the child SBT process running, it consumes considerable
CPU processing these.
Patching JLine itself would be the cleanest solution (the change
has already been applied to JLine 2), but I've shied away from that
and instead wrapped the InputStream that is read by JLine to
intercept the result of -1 from read(). When this happens, the
flat `inputEof` is set to true.
2012-09-23 15:58:15 -04:00
Jason Zaugg
2ef0fcae6a
Fix #552 Compensate for JLine's absent EOF detection.
...
In the unsupported terminal mode, JLine treats a broken
stdin as an endless stream of empty lines. This is problematic
for idea-sbt-plugin: if the IntelliJ process is forcibly killed
and leaves the child SBT process running, it consumes considerable
CPU processing these.
Patching JLine itself would be the cleanest solution (the change
has already been applied to JLine 2), but I've shied away from that
and instead wrapped the InputStream that is read by JLine to
intercept the result of -1 from read(). When this happens, the
flat `inputEof` is set to true.
2012-09-23 15:58:15 -04:00
Mark Harrah
614d9976d6
invalidate cache when metadata deleted from local repository
2012-09-23 15:46:26 -04:00
Mark Harrah
5500d38367
invalidate cache when metadata deleted from local repository
2012-09-23 15:46:26 -04:00
Mark Harrah
22cd38ae32
pending test case demonstrating cache issue when deleting parts of local repository
2012-09-22 16:46:11 -04:00
Mark Harrah
a2c2af8b08
add [every] to syntax summary of 'set' command
2012-09-22 16:45:24 -04:00
Josh Suereth
37f9d6bf21
Windows config now works. Still an issue with sbt.bat not setting up paths/temp files correctly....
2012-09-22 10:12:03 -04:00
Josh Suereth
42fbfabc6a
Merge branch 'full-packaging' into feature/windows-sbt-config
2012-09-22 08:20:53 -04:00
Kevin Scaldeferri
933d5fb0fe
Include all JAR packaging types in the default classpathTypes. Fixes #550
...
These special types need to be recognized in both the POM parser and added to the classpath.
The previous code was not DRY, and eclipse-plugin was in one but not the other. This ensures
new types can be added in the future without risking this type of oversight.
2012-09-21 16:56:56 -04:00
Mark Harrah
b353d0b94c
better internal interfaces to javadoc/scaladoc/raw scalac
2012-09-18 16:30:33 -04:00
Mark Harrah
ad92037d34
sample usage of separate macro configuration
2012-09-18 14:01:19 -04:00
Eugene Vigdorchik
b8ef434ec1
When forking tests serialize Event.error as well. Closes #543 .
2012-09-18 13:23:29 -04:00
Mark Harrah
c8ffd6a54d
better error message for null setting values
2012-09-18 13:22:40 -04:00
Mark Harrah
607824cc22
better error message for null setting values
2012-09-18 13:22:40 -04:00
Mark Harrah
37661c9576
Strip explicitArtifacts from projectDependencies. Fixes #546 .
...
The module definition (ModuleID) got copied as to be the dependency definition,
but as a dependency definition, it should not include explicit artifacts.
2012-09-12 14:31:57 -04:00
Mark Harrah
a0b5b0e7ac
Fail publishing when artifacts to publish do not exist.
2012-09-11 11:37:41 -04:00
Mark Harrah
b15fb72727
Fail publishing when artifacts to publish do not exist.
2012-09-11 11:37:41 -04:00
Josh Suereth
0ac0a4767d
Bumped to new sbt launcher that supports publishing universal packages.
2012-09-07 14:08:46 -04:00
Josh Suereth
5407a21803
Use environment variable thanks to lame sbt jenkins plugin
2012-09-07 13:52:05 -04:00
Josh Suereth
872d88ea23
Updated build so you can specify SBT version on the command line.
2012-09-07 12:58:02 -04:00
杨博
7820d3deea
Update src/scripts/sbt
...
Enable space in arguments.
Like: sbt 'run-main com.myhostname.myproject.Main'
2012-09-02 14:31:59 +08:00
Mark Harrah
d17de8e83a
back all ConsoleLoggers by a common ConsoleOut
...
The common ConsoleOut merges (overwrites) consecutive Resolving xxxx ... lines
when ansi codes are enabled.
2012-09-01 09:56:09 -04:00
Mark Harrah
66ac1dbc9a
use context logger instead of initial logger for Resolving messages
2012-09-01 09:56:09 -04:00
Mark Harrah
2010ae7b3c
back all ConsoleLoggers by a common ConsoleOut
...
The common ConsoleOut merges (overwrites) consecutive Resolving xxxx ... lines
when ansi codes are enabled.
2012-09-01 09:56:09 -04:00
Mark Harrah
ea6bf368db
use context logger instead of initial logger for Resolving messages
2012-09-01 09:56:09 -04:00
James Roper
a3e9b53fe5
Pulled mapper folding into a function for reuse
2012-08-31 06:24:16 -04:00
James Roper
702ee44e0e
Source position mapper support
2012-08-31 06:24:16 -04:00
James Roper
5e2fc5f005
Reported file name when an error occurs while opening a corrupt zip file in Locate
2012-08-31 06:15:33 -04:00
Mark Harrah
ed902ea565
Proper isolation of build definition classes. Fixes #536 , #511 .
2012-08-30 16:37:56 -04:00
Mark Harrah
9d39b5d9e1
Add valid project IDs to 'No project <x> in <uri>' error message
2012-08-30 16:37:56 -04:00
Mark Harrah
9a0b59b597
Force update on change to last modified time of artifacts or cached descriptor.
...
This is part 2 of the fix for #532 . It may also fix issues when working with
multiple local projects via 'publish-local' and binary dependencies.
2012-08-29 11:13:48 -04:00
Mark Harrah
3dd3a18996
Force update on change to last modified time of artifacts or cached descriptor.
...
This is part 2 of the fix for #532 . It may also fix issues when working with
multiple local projects via 'publish-local' and binary dependencies.
2012-08-29 11:13:48 -04:00
Mark Harrah
7ed0c85097
Second part of resolution cache work. Fixes #532 .
...
Replaces the standard Ivy resolution cache:
1. Separate the cached resolved Ivy files from resolution reports,
making resolution reports easier to find (target/resolution-cache/reports/)
2. Cache location includes extra attributes so that cross builds of a plugin
do not overwrite each other.
2012-08-29 11:13:48 -04:00
Mark Harrah
14952e00b6
Second part of resolution cache work. Fixes #532 .
...
Replaces the standard Ivy resolution cache:
1. Separate the cached resolved Ivy files from resolution reports,
making resolution reports easier to find (target/resolution-cache/reports/)
2. Cache location includes extra attributes so that cross builds of a plugin
do not overwrite each other.
2012-08-29 11:13:48 -04:00
Mark Harrah
69724c4f87
don't write <scope> section of pom if scope is 'compile'
2012-08-28 11:55:24 -04:00
Mark Harrah
7a7acce621
don't write <scope> section of pom if scope is 'compile'
2012-08-28 11:55:24 -04:00
Mark Harrah
d641c72a45
per-project resolution cache that deletes cached files before each update
...
These are the ivy files, properties, and resolve reports for the project,
not dependencies and their artifacts.
2012-08-28 11:55:24 -04:00
Mark Harrah
c7f6ce4aec
per-project resolution cache that deletes cached files before each update
...
These are the ivy files, properties, and resolve reports for the project,
not dependencies and their artifacts.
2012-08-28 11:55:24 -04:00
Mark Harrah
152d51465d
Merge multiple dependency definitions for the same ID. Fixes #468 , #285 , #419 , #480 .
...
This is only a workaround. Multiple dependency definitions should be avoided
in general.
2012-08-27 10:49:13 -04:00
Mark Harrah
eca9ab9bb1
2.10 compatibility
2012-08-27 10:49:13 -04:00
Mark Harrah
74c07c64a7
Merge multiple dependency definitions for the same ID. Fixes #468 , #285 , #419 , #480 .
...
This is only a workaround. Multiple dependency definitions should be avoided
in general.
2012-08-27 10:49:13 -04:00
Mark Harrah
29dd76da85
defer opening logging output files until an actual write
2012-08-27 10:49:13 -04:00
Mark Harrah
cbaa805511
clean up temporary directory on exit. ref #502
...
Directory was already empty, this just removes the empty directory.
2012-08-27 09:14:00 -04:00
Mark Harrah
b53104f8ff
note about Scala build and compiler interface
2012-08-27 08:41:08 -04:00
Mark Harrah
42042a9d85
2.8.1 compatibility for compiler interface
2012-08-27 08:33:33 -04:00
Mark Harrah
feffe4feb0
toStrings for some concurrent restrictions
2012-08-27 08:33:33 -04:00
Johannes Rudolph
fc51b4c16b
publish for 0.12, fixes #14
2012-08-27 11:15:58 +02:00
Johannes Rudolph
6373970e48
upgrade to latest ls-sbt
2012-08-27 10:55:18 +02:00
Mark Harrah
8c0a2fbe1c
require a smaller set of sources in the third (transitive) step of inc. compilation
2012-08-26 13:44:32 -04:00
Eugene Vigdorchik
b4e64d37db
Various fork in Test fixes. Closes #512 #515 .
2012-08-25 07:15:23 -04:00