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

import org.jetbrains.dokka.DokkaConfiguration
import org.jetbrains.dokka.plugability.DokkaContext
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
    }
}