Skip to content

Commit

Permalink
json: fix TSGenerator on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
angryziber committed Dec 5, 2024
1 parent 40f8697 commit 3735d52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Unreleased
* json: fix TSGenerator on Windows
* jdbc: between operator introduced with open and closed ranges, also in and notIn
* jdbc: @NoTransaction can now be used on jobs
* jdbc: fixed usage of multiple different DataSources when there is an active transaction
Expand Down
3 changes: 2 additions & 1 deletion json/src/TSGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package klite.json
import klite.Converter
import klite.publicProperties
import org.intellij.lang.annotations.Language
import java.io.File
import java.io.PrintStream
import java.lang.System.err
import java.nio.file.Path
Expand Down Expand Up @@ -36,7 +37,7 @@ open class TSGenerator(
@OptIn(ExperimentalPathApi::class)
open fun printFrom(dir: Path) {
dir.walk(INCLUDE_DIRECTORIES).filter { it.extension == "class" }.sorted().forEach {
val className = dir.relativize(it).toString().removeSuffix(".class").replace("/", ".")
val className = dir.relativize(it).toString().removeSuffix(".class").replace(File.separatorChar, '.')
printClass(className)
}
}
Expand Down

0 comments on commit 3735d52

Please sign in to comment.