Skip to content

Commit

Permalink
build: always overwrite files when install OpenCC data
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Jan 19, 2025
1 parent 01976cf commit 5fb4323
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-logic/convention/src/main/kotlin/OpenCCDataPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ class OpenCCDataPlugin : Plugin<Project> {
input.run {
resolve("config")
.listFiles { f -> f.extension == "json" }
?.forEach { f -> f.copyTo(output.resolve(f.name)) }
?.forEach { f -> f.copyTo(output.resolve(f.name), overwrite = true) }

val dictionary = resolve("dictionary")
for (raw in DICTS_RAW) {
val basename = "$raw.txt"
dictionary.resolve(basename).copyTo(output.resolve(basename))
dictionary.resolve(basename).copyTo(output.resolve(basename), overwrite = true)
}

val merge = resolve("scripts/merge.py").absolutePath
Expand Down

0 comments on commit 5fb4323

Please sign in to comment.