This commit is contained in:
Mark Harrah 2013-02-22 16:31:32 -05:00
parent 6e30bd7842
commit 010b9d1c10
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,5 @@
import sun.net.spi.nameservice.dns.DNSNameService
object A {
val x = new DNSNameService
}

View File

@ -0,0 +1,9 @@
import complete.DefaultParsers._
val checkIterations = inputKey[Unit]("Verifies the accumlated number of iterations of incremental compilation.")
checkIterations := {
val expected: Int = (Space ~> NatBasic).parsed
val actual: Int = (compile in Compile).value.compilations.allCompilations.size
assert(expected == actual, s"Expected $expected compilations, got $actual")
}

View File

@ -0,0 +1,7 @@
# initial compilation
> checkIterations 1
# no further compilation should be necessary, since nothing changed
# previously, a dependency on a jar in <java.home>lib/ext/ would
# always force recompilation
> checkIterations 1