1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-06-16 13:20:52 -07:00

Wrap work.

This commit is contained in:
Cedric Beust 2015-10-10 07:44:44 -07:00
parent 0fe686122f
commit f32bfb8c80

View file

@ -157,9 +157,13 @@ public class TaskManager @Inject constructor(val plugins: Plugins, val args: Arg
log(3, "toProcess size: " + toProcess.size())
toProcess.forEach { target ->
// wrapAfter.get(ti.id).let {
// newToProcess.addAll(it)
// }
wrapAfter.get(ti.id).let {
val tasks = tasksByNames.get(it)
if (tasks != null) {
tasks.forEach {
newToProcess.add(TaskInfo(project.name!!, task!!.name))
}
}
val currentTask = TaskInfo(project.name!!, target.task)
transitiveClosure.add(tasksByNames.get(currentTask.task)!!)