1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-05-22 10:34:04 +02:00
IntelliJ-IdeaVim/annotation-processors/src/main/kotlin/com/intellij/vim/FileWriter.kt
2023-06-06 10:42:42 +03:00

20 lines
594 B
Kotlin

/*
* Copyright 2003-2023 The IdeaVim authors
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE.txt file or at
* https://opensource.org/licenses/MIT.
*/
package com.intellij.vim
import com.google.devtools.ksp.processing.SymbolProcessorEnvironment
import java.io.File
class FileWriter {
fun generateResourceFile(fileName: String, content: String, environment: SymbolProcessorEnvironment) {
val resourcesDir = environment.options["generated_directory"]
val file = File("$resourcesDir/$fileName")
file.writeText(content)
}
}