1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Error on unknown task.

This commit is contained in:
Cedric Beust 2015-11-16 04:42:06 -08:00
parent d8cbbdc772
commit 3cd9b5d178

View file

@ -56,6 +56,9 @@ public class TaskManager @Inject constructor(val plugins: Plugins, val args: Arg
val graph = DynamicGraph<PluginTask>() val graph = DynamicGraph<PluginTask>()
targets.forEach { target -> targets.forEach { target ->
if (! tasksByNames.contains(target)) {
throw KobaltException("Unknown task: $target")
}
val ti = TaskInfo(target) val ti = TaskInfo(target)
if (ti.matches(projectName)) { if (ti.matches(projectName)) {