1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

This fix broke task ordering, need to investigate.

This commit is contained in:
Cedric Beust 2016-07-12 02:22:23 -08:00
parent 63f02f86bf
commit d577a785c5

View file

@ -277,13 +277,13 @@ class TaskManager @Inject constructor(val args: Args,
// Make each task depend on the previous one, so that command line tasks are executed in the // Make each task depend on the previous one, so that command line tasks are executed in the
// order the user specified them // order the user specified them
passedTasks.zip(passedTasks.drop(1)).forEach { pair -> // passedTasks.zip(passedTasks.drop(1)).forEach { pair ->
nodeMap[pair.first.taskName].forEach { first -> // nodeMap[pair.first.taskName].forEach { first ->
nodeMap[pair.second.taskName].forEach { second -> // nodeMap[pair.second.taskName].forEach { second ->
result.addEdge(second, first) // result.addEdge(second, first)
} // }
} // }
} // }
// //
// Reverse the always map so that tasks can be looked up. // Reverse the always map so that tasks can be looked up.