mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Fix task error detection.
This commit is contained in:
parent
c238b47141
commit
6726edc3cb
1 changed files with 2 additions and 2 deletions
|
@ -56,11 +56,11 @@ public class TaskManager @Inject constructor(val plugins: Plugins, val args: Arg
|
|||
|
||||
val graph = DynamicGraph<PluginTask>()
|
||||
targets.forEach { target ->
|
||||
if (! tasksByNames.contains(target)) {
|
||||
val ti = TaskInfo(target)
|
||||
if (! tasksByNames.contains(ti.task)) {
|
||||
throw KobaltException("Unknown task: $target")
|
||||
}
|
||||
|
||||
val ti = TaskInfo(target)
|
||||
if (ti.matches(projectName)) {
|
||||
val task = tasksByNames[ti.task]
|
||||
if (task != null && task.plugin.accept(project)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue