mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-06-17 05:40:51 -07:00
Handle tasks with no project.
This commit is contained in:
parent
f8746460be
commit
e276f3b6d5
1 changed files with 14 additions and 12 deletions
|
@ -190,7 +190,8 @@ class TaskManager @Inject constructor(val args: Args,
|
||||||
while (toProcess.any()) {
|
while (toProcess.any()) {
|
||||||
toProcess.forEach { ti ->
|
toProcess.forEach { ti ->
|
||||||
val project = projectMap[ti.project]
|
val project = projectMap[ti.project]
|
||||||
val dependents = project!!.projectExtra.dependsOn
|
if (project != null) {
|
||||||
|
val dependents = project.projectExtra.dependsOn
|
||||||
if (dependents.any()) {
|
if (dependents.any()) {
|
||||||
dependents.forEach { depProject ->
|
dependents.forEach { depProject ->
|
||||||
val tiDep = TaskInfo(depProject.name, ti.taskName)
|
val tiDep = TaskInfo(depProject.name, ti.taskName)
|
||||||
|
@ -206,6 +207,7 @@ class TaskManager @Inject constructor(val args: Args,
|
||||||
addNode(ti)
|
addNode(ti)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
toProcess.clear()
|
toProcess.clear()
|
||||||
toProcess.addAll(newTasks)
|
toProcess.addAll(newTasks)
|
||||||
newTasks.clear()
|
newTasks.clear()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue