Antonio Cunei
94e36a14c8
Change modifiedTime definitions
2017-12-22 01:55:37 +01:00
Antonio Cunei
ebff7919e9
Revert *ModifiedTime() calls to *lastModified*() calls
...
There are just too many instances in which sbt's code relies on
the `lastModified`/`setLastModified` semantics, so instead of moving
to `get`/`setModifiedTime`, we use new IO calls that offer the new
timestamp precision, but retain the old semantics.
2017-12-22 01:55:37 +01:00
Eugene Yokota
40b86ae412
bump modules and plugins
2017-12-16 12:22:42 -05:00
Dale Wijnand
ae99922101
Use IO.getModified over importing the method
2017-12-16 12:22:42 -05:00
Antonio Cunei
46d6b01f79
Use copyLastModified() in Sync.scala
...
It turns out the code in Sync.scala activiely tries to transfer
the invalid modifed time of non-existent files in the source
directory over the time of the target file, which may or may
not exist. In case it exists, the modification time is set
to January 1, 1970. This is arguably a bug in Sync, which
should be adjusted to better handle mappings with source
files that do not exist. For now, however, we preserve the
current behavior, using the deprecated copyLastModified().
2017-12-16 12:22:42 -05:00
Antonio Cunei
295bcff851
Hash calculation may throw exception w/ getModifiedTime(); fix
...
In Eval there is a calculation of hashes by scanning the elements
of classpath, and getting the last modification time of each
directory. When lastModified() was in use, non-existent elements
would return 0L, but getModifiedTime() will throw an exception
instead (like getLastModifiedTime(), incidentally).
So, we catch the FileNotFoundException and return 0L now as well.
2017-12-16 12:22:42 -05:00
Antonio Cunei
2129f8ceb5
Use IO.copyModifiedTime() in place of IO.copyLastModified()
2017-12-16 12:22:42 -05:00
Antonio Cunei
8c7b781d3f
Moved Milli._ to IO.
2017-12-16 12:22:42 -05:00
Antonio Cunei
699b53262a
Convert lastModified() to sbt.io.Milli.getModifiedTime(), more precise
2017-12-16 12:22:42 -05:00
Eugene Yokota
a6eb1260c8
Merge branch '1.0.x' into wip/bump
2017-11-29 16:45:02 -05:00
Antonio Cunei
b19bd33dc0
Missing import
2017-10-26 02:30:23 +02:00
Antonio Cunei
53ea3596ec
Interim fix for #3583 , for 1.0.3
...
In 0.13.x, zinc would discover only top-level objects and classes
containing tests to the test framework. In 1.x, however, zinc can
discover also nested objects and classes; that causes the "name"
of a ClassLike to no longer be usable for reflection.
This change filters out nested objects/classes from the list,
restoring compatibility with 0.13. A zinc extension of ClassLike
will probably be introduced in 1.1 or 1.2, in order to provide
the test framework with enough information to deal with nested
classes.
This patch unblocks https://github.com/sbt/sbt-standalone-build/issues/15
2017-10-26 02:30:23 +02:00
Simon Schäfer
93e08b7ee7
Fix warnings about unused pattern vars in various projects
2017-10-19 13:07:24 +02:00
Dale Wijnand
a41727fb17
Add, configure & enforce file headers
2017-10-05 09:03:40 +01:00
Dale Wijnand
805b76f3d4
Add back, re-configure & re-enable Scalafmt
2017-08-10 16:35:23 +01:00
Eugene Yokota
f0ac6ae11c
Adjust to upstream changes
2017-07-16 00:51:49 -04:00
Martin Duhem
347914191a
Adapt to new library management API
2017-07-15 18:09:40 -04:00
Dale Wijnand
9494967e05
Upgrade util/lm/zinc & config build for util modules
...
Welcome back home!
2017-07-07 12:11:59 +01:00
Eugene Yokota
efa3b1d340
Bump to latest io, scalajson, sjsonnew, contraband, util, lm, zinc
2017-07-06 11:05:24 +01:00
Eugene Yokota
03c9b648fb
Adjust to Zinc and lm changes
2017-05-30 00:59:43 -04:00
Eugene Yokota
cfbff070e0
Ignore ZipException in cache
...
Fixes #3050
2017-05-26 21:02:41 -04:00
Eugene Yokota
2b5637270a
update TestFramework
...
- update reset.sh for debugging
- use Vector around TestFramework
- unbind existing appdenders from newLog
- register string codec for TestStringEvent
2017-05-19 00:16:19 -04:00
jvican
818b8c85ae
Bump util to X11 and rename `SbtExclusionRule`
2017-05-03 12:42:16 +02:00
Eugene Yokota
da046791e0
Apply Scalafmt formatting
2017-04-21 04:48:31 -04:00
Eugene Yokota
9e02995ac0
Bump to Zinc 1.0.0-X14
2017-04-18 00:56:22 -04:00
Dale Wijnand
3f590d8e13
Drop most remaining deprecations
2017-04-11 16:46:11 +01:00
Dale Wijnand
cef287b6e8
Drop deprecated SubProcess apply overload
2017-04-11 16:40:20 +01:00
Dale Wijnand
9f688be9f5
Simplify sbt.Compiler
2017-04-11 16:39:53 +01:00
Dale Wijnand
a6015793e2
Code formatting only changes
2017-04-11 14:32:38 +01:00
Dale Wijnand
be3fa7e66d
Just whitespace & comment changes
2017-04-11 11:48:24 +01:00
Lars Hupel
da7d03ed48
avoid deleting the target of `makeJar` if it's not a file
2017-04-04 16:28:50 -04:00
Eugene Yokota
093fc061cc
Send testing events to logger
2017-04-01 17:19:45 -04:00
Eugene Yokota
e6d11ed83d
Fix the bridge selection
2017-03-23 15:51:16 -04:00
Eugene Yokota
180bdfd129
Bump underlying modules to latest
2017-03-23 12:41:24 -04:00
Dale Wijnand
e67cd6948b
Fix a bunch but not all compile warnings
2017-03-03 01:33:44 +01:00
Antonio Cunei
b2bd1f745f
Update scalaCompilerBridgeSource
2017-02-15 14:42:24 +01:00
Eugene Yokota
74cfbd4a9c
Implement bgRun based on sbt-core-next
2017-01-20 13:02:31 -05:00
Josh Soref
a8ce474fd6
spelling: dependencies
2017-01-20 08:13:00 +00:00
Josh Soref
f5248f04ce
spelling: compiler
2017-01-20 08:12:00 +00:00
eugene yokota
9044d6c07a
Merge pull request #2910 from eed3si9n/wip/212
...
[sbt 1.0] Use Scala 2.12.1
2017-01-15 22:24:33 -05:00
Eugene Yokota
7ddbd69e53
Use Scala 2.12.1
...
Bump up the Scala version used by sbt to 2.12.1.
Most changes are migration of the integration tests.
2017-01-15 20:49:14 -05:00
Eugene Yokota
beb1fe3c5a
Fail when the forked test harness fails
...
Fail when the forked test harness fails using NonFatal
Fixes #2442/#2722
Add another fork-uncaught scripted test
Originally from https://github.com/retronym/sbt-test-fork-swallows-error
2017-01-15 05:49:07 -05:00
Paul Draper
f836ba0c63
Fix #2677 : Tags.ForkedTestGroup doesn't work
...
Move tag to correct task
2017-01-14 21:58:37 -05:00
Dale Wijnand
7fcfec8b8e
-sbinary/+sjson-new, -datatype/+contraband & upgrades
...
* start to replace sbinary with sjson-new
* upgrade from sbt/datatype to sbt/contraband
* upgrade and migrate to new sbt modules APIs
2017-01-05 21:59:00 +00:00
Dale Wijnand
43821667bf
Upgrade scalariform version
2016-12-11 12:13:11 +00:00
kenji yoshida
27fe8eb6f7
remove unused imports ( #2719 )
2016-08-30 07:29:17 +01:00
xuwei-k
857fc0f5da
use JavaConverters instead of JavaConversions
...
- https://issues.scala-lang.org/browse/SI-9684
- 0c5b42d974
2016-08-30 01:31:04 +09:00
Dale Wijnand
84c611af36
Remove unused vals/defs
2016-07-12 14:31:35 +01:00
Dale Wijnand
deea82542c
Remove unused imports
2016-07-12 11:55:10 +01:00
Dale Wijnand
222a970080
Kill some vars
2016-07-07 01:39:52 +01:00