aboutsummaryrefslogtreecommitdiff
path: root/plugins/templating/src/main/kotlin/templates/FallbackTemplateProcessingStrategy.kt
blob: a76d8eae79b8dfb49e46080003a2eb2327777e3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Copyright 2014-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
 */

package org.jetbrains.dokka.templates

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

public class FallbackTemplateProcessingStrategy : TemplateProcessingStrategy {

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