aboutsummaryrefslogtreecommitdiff
path: root/plugins/templating/src/main/kotlin/templates/FallbackTemplateProcessingStrategy.kt
blob: 22b5b00b61a89bca4621edca2abfd59b571ed2d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package org.jetbrains.dokka.templates

import org.jetbrains.dokka.DokkaConfiguration
import java.io.File

class FallbackTemplateProcessingStrategy : TemplateProcessingStrategy {

    override fun process(input: File, output: File, moduleContext: DokkaConfiguration.DokkaModuleDescription?): Boolean {
        if (input != output) input.copyTo(output, overwrite = true)
        return true
    }
}