TapikGeneratorContext

data class TapikGeneratorContext(val outputDirectory: File, val generatedSourcesDirectory: File, val log: (String) -> Unit, val logDebug: (String) -> Unit, val logWarn: (String, Throwable?) -> Unit)(source)

Carries directories and logging utilities that Tapik generators rely on.

Parameters

outputDirectory

directory used for non-source outputs (reports, documentation).

generatedSourcesDirectory

directory where generated Kotlin sources should be written.

log

info-level logger.

logDebug

debug-level logger.

logWarn

warning-level logger that accepts an optional Throwable.

Constructors

Link copied to clipboard
constructor(outputDirectory: File, generatedSourcesDirectory: File, log: (String) -> Unit, logDebug: (String) -> Unit, logWarn: (String, Throwable?) -> Unit)

Properties

Link copied to clipboard

directory where generated Kotlin sources should be written.

Link copied to clipboard
val log: (String) -> Unit

info-level logger.

Link copied to clipboard
val logDebug: (String) -> Unit

debug-level logger.

Link copied to clipboard

warning-level logger that accepts an optional Throwable.

Link copied to clipboard

directory used for non-source outputs (reports, documentation).