diff options
Diffstat (limited to 'plugins/templating/src/main/kotlin/templates/FallbackTemplateProcessingStrategy.kt')
-rw-r--r-- | plugins/templating/src/main/kotlin/templates/FallbackTemplateProcessingStrategy.kt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/templating/src/main/kotlin/templates/FallbackTemplateProcessingStrategy.kt b/plugins/templating/src/main/kotlin/templates/FallbackTemplateProcessingStrategy.kt new file mode 100644 index 00000000..4e88c318 --- /dev/null +++ b/plugins/templating/src/main/kotlin/templates/FallbackTemplateProcessingStrategy.kt @@ -0,0 +1,13 @@ +package org.jetbrains.dokka.templates + +import org.jetbrains.dokka.plugability.DokkaContext +import java.io.File +import java.nio.file.Files + +class FallbackTemplateProcessingStrategy(dokkaContext: DokkaContext) : TemplateProcessingStrategy { + + override fun process(input: File, output: File): Boolean { + if(input != output) input.copyTo(output, overwrite = true) + return true + } +}
\ No newline at end of file |