Skip to content

Commit 1e701e0

Browse files
author
David Hasani
committed
handle Windows
1 parent fc15be8 commit 1e701e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/model/CodeModernizerSessionContext.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,13 @@ data class CodeModernizerSessionContext(
260260
if (depDirectory != null) {
261261
dependencyFiles.forEach { depFile ->
262262
val relativePath = File(depFile.path).relativeTo(depDirectory)
263+
if (depFile.path.contains("compilations.json")) {
264+
if (File.separatorChar != '/') {
265+
var content = depFile.readText()
266+
content = content.replace("\\\\", "/")
267+
depFile.writeText(content)
268+
}
269+
}
263270
var relativePathString = relativePath.toPath().toString()
264271
if (copyResult == null) {
265272
// null copyResult means doing a SQL conversion; put metadata under dependencies folder

0 commit comments

Comments
 (0)