mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
#244: removed no longer necessary check for unknown task in createGraph2()
This commit is contained in:
parent
8399171d3f
commit
2cbe3ad560
1 changed files with 1 additions and 4 deletions
|
@ -87,7 +87,7 @@ class TaskManager @Inject constructor(val args: Args,
|
|||
|
||||
var taskInfos = calculateDependentTaskNames(passedTaskNames, allProjects)
|
||||
|
||||
// Remove not existing tasks (e.g. dynamic task defined for a single project)
|
||||
// Remove not existing tasks (e.g. dynamic task defined for a single project)
|
||||
taskInfos = taskInfos.filter { hasTask(it) }
|
||||
|
||||
val projectsToRun = findProjectsToRun(taskInfos, allProjects)
|
||||
|
@ -277,9 +277,6 @@ class TaskManager @Inject constructor(val args: Args,
|
|||
// Keep only the tasks we need to run.
|
||||
//
|
||||
val taskInfos = passedTasks.filter {
|
||||
if (!nodeMap.keys().contains(it.taskName)) {
|
||||
throw KobaltException("Unknown task: $it")
|
||||
}
|
||||
it.matches(projectName)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue