From fa57346a6630bfea1f200b1eb9dedfcaae9c9051 Mon Sep 17 00:00:00 2001 From: Josh Suereth Date: Wed, 5 Nov 2014 09:24:42 -0500 Subject: [PATCH] Fix scripted test to understand new compile/compileIncremental task switch. --- sbt/src/sbt-test/actions/compile-time-only/build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbt/src/sbt-test/actions/compile-time-only/build.sbt b/sbt/src/sbt-test/actions/compile-time-only/build.sbt index a81a081e4..5baf27554 100644 --- a/sbt/src/sbt-test/actions/compile-time-only/build.sbt +++ b/sbt/src/sbt-test/actions/compile-time-only/build.sbt @@ -4,7 +4,7 @@ libraryDependencies += "org.scala-sbt" % "sbt" % sbtVersion.value lazy val expectErrorNotCrash = taskKey[Unit]("Ensures that sbt properly set types on Trees so that the compiler doesn't crash on a bad reference to .value, but gives a proper error instead.") expectErrorNotCrash := { - val fail = (compile in Compile).failure.value + val fail = (compileIncremental in Compile).failure.value fail.directCause match { case Some(x: xsbti.CompileFailed) => () case _ => sys.error("Compiler crashed instead of providing a compile-time-only exception.")