com.ybo.trackingplugin.extension.TrackingPluginExtension.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of traceplugin Show documentation
Show all versions of traceplugin Show documentation
gradle plugin allowing to add automatic logs (or other process) at the start of each traced method
package com.ybo.trackingplugin.extension
import org.gradle.api.Action
open class TrackingPluginExtension {
/** name of tasks that will be enclosed with processTrace and unProcessTask.
* these task will deal with the code modified to be traced, and when done will
* leave the code as they have found them.
* */
var trackables: Array = emptyArray()
var debug: Boolean = false
/** Configure the inner DSL object, [TraceProcessConfigHandler]. */
val configurationHandler: TraceProcessConfigHandler = TraceProcessConfigHandler()
/** Configure the inner DSL object, [TraceProcessConfigHandler]. */
fun config(action: Action) {
action.execute(configurationHandler)
}
}