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:
parent
b31da8fa49
commit
ec378e561d
1 changed files with 3 additions and 1 deletions
|
@ -84,7 +84,6 @@ public class Plugins @Inject constructor (val taskManagerProvider : Provider<Tas
|
||||||
}
|
}
|
||||||
val annotation = it.second
|
val annotation = it.second
|
||||||
|
|
||||||
log(3, "Adding MethodTask from @Task: ${it.first} $annotation")
|
|
||||||
plugin.methodTasks.add(IPlugin.MethodTask(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 method = methodTask.method
|
||||||
val annotation = methodTask.taskAnnotation
|
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 {
|
fun toTask(m: Method, project: Project, plugin: IPlugin): (Project) -> TaskResult {
|
||||||
val result: (Project) -> TaskResult = {
|
val result: (Project) -> TaskResult = {
|
||||||
m.invoke(plugin, project) as TaskResult
|
m.invoke(plugin, project) as TaskResult
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue