1
0
Fork 0
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:
DevCharly 2016-07-02 00:40:05 +02:00
parent 8399171d3f
commit 2cbe3ad560

View file

@ -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)
}