mirror of https://github.com/sbt/sbt.git
fix task execution test compilation
This commit is contained in:
parent
989c1d3dc6
commit
9f75ab31cc
|
|
@ -22,7 +22,7 @@ object TaskGen extends std.TaskExtra
|
||||||
{
|
{
|
||||||
val (service, shutdown) = CompletionService[Task[_], Completed](maxWorkers)
|
val (service, shutdown) = CompletionService[Task[_], Completed](maxWorkers)
|
||||||
val dummies = std.Transform.DummyTaskMap(Nil)
|
val dummies = std.Transform.DummyTaskMap(Nil)
|
||||||
val x = new Execute[Task](checkCycles, Execute.noTriggers)(std.Transform(dummies))
|
val x = new Execute[Task](Execute.config(checkCycles), Execute.noTriggers, ExecuteProgress.empty[Task])(std.Transform(dummies))
|
||||||
try { x.run(root)(service) } finally { shutdown() }
|
try { x.run(root)(service) } finally { shutdown() }
|
||||||
}
|
}
|
||||||
def tryRun[T](root: Task[T], checkCycles: Boolean, maxWorkers: Int): T =
|
def tryRun[T](root: Task[T], checkCycles: Boolean, maxWorkers: Int): T =
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ object TaskTest
|
||||||
{
|
{
|
||||||
val (service, shutdown) = completionService[Task[_],Completed](restrictions, (x: String) => System.err.println(x))
|
val (service, shutdown) = completionService[Task[_],Completed](restrictions, (x: String) => System.err.println(x))
|
||||||
|
|
||||||
val x = new Execute[Task](checkCycles, Execute.noTriggers)(taskToNode(idK[Task]))
|
val x = new Execute[Task](Execute.config(checkCycles), Execute.noTriggers, ExecuteProgress.empty[Task])(taskToNode(idK[Task]))
|
||||||
try { x.run(root)(service) } finally { shutdown() }
|
try { x.run(root)(service) } finally { shutdown() }
|
||||||
}
|
}
|
||||||
def tryRun[T](root: Task[T], checkCycles: Boolean, restrictions: ConcurrentRestrictions[Task[_]]): T =
|
def tryRun[T](root: Task[T], checkCycles: Boolean, restrictions: ConcurrentRestrictions[Task[_]]): T =
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue