Skip to content

Commit

Permalink
Fix JTE code generation on Windows (#3860)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Jun 13, 2024
1 parent 7721ecc commit f2ee7b2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ abstract class GenerateJreRelatedSourceCode : DefaultTask() {
val targetFile = mainTargetDir.toPath().resolve(it.resolveSibling(it.nameWithoutExtension).path)

FileOutput(targetFile).use { output ->
templateEngine.render(it.path, params, output)
// JTE does not support Windows paths, so we need to replace them
val safePath = it.path.replace('\\', '/')
templateEngine.render(safePath, params, output)
}
}
}
Expand Down

0 comments on commit f2ee7b2

Please sign in to comment.