1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 08:38:13 -07:00

Log in a better location.

This commit is contained in:
Cedric Beust 2015-11-17 01:17:03 -08:00
parent b31da8fa49
commit ec378e561d

View file

@ -84,7 +84,6 @@ public class Plugins @Inject constructor (val taskManagerProvider : Provider<Tas
}
val annotation = it.second
log(3, "Adding MethodTask from @Task: ${it.first} $annotation")
plugin.methodTasks.add(IPlugin.MethodTask(it.first, annotation))
}
@ -97,6 +96,9 @@ public class Plugins @Inject constructor (val taskManagerProvider : Provider<Tas
val method = methodTask.method
val annotation = methodTask.taskAnnotation
val methodName = method.declaringClass.toString() + "." + method.name
log(3, " Found task:${annotation.name} method: $methodName")
fun toTask(m: Method, project: Project, plugin: IPlugin): (Project) -> TaskResult {
val result: (Project) -> TaskResult = {
m.invoke(plugin, project) as TaskResult