mirror of https://github.com/sbt/sbt.git
use new input task syntax for project/settings
This commit is contained in:
parent
f388b07632
commit
230a13d010
|
|
@ -1,8 +1,11 @@
|
||||||
import complete.DefaultParsers._
|
import complete.DefaultParsers._
|
||||||
|
|
||||||
InputKey[Unit]("check") <<= InputTask(_ => Space ~> IntBasic) { result =>
|
val check = inputKey[Unit]("Check that the value of maxErrors is as expected")
|
||||||
(result, maxErrors) map { (expected, actual) =>
|
val parser = Space ~> IntBasic
|
||||||
assert(expected == actual, "Expected " + expected + ", got " + actual)
|
|
||||||
}
|
check := {
|
||||||
|
val expected = parser.parsed
|
||||||
|
val actual = maxErrors.value
|
||||||
|
assert(expected == actual, "Expected " + expected + ", got " + actual)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue