From a169248979bed452386ca92058520ced3b6b5564 Mon Sep 17 00:00:00 2001 From: Yeser Amer Date: Tue, 20 Feb 2024 09:48:03 +0100 Subject: [PATCH] [incubator-kie-issues#717] mvn package throws an exception in Kogito project in Microsoft Windows machines with `quarkus.package.type=uber-jar` (#5694) * kie-issues#717: Windows path management fixed. * kie-issues#717: Removed unnecessary changes. * kie-issues#717: Moving the fix on the field assignment to cover all the cases --- .../src/main/java/org/drools/codegen/common/GeneratedFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/GeneratedFile.java b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/GeneratedFile.java index bd5455641e2..741754efd30 100644 --- a/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/GeneratedFile.java +++ b/drools-model/drools-codegen-common/src/main/java/org/drools/codegen/common/GeneratedFile.java @@ -67,7 +67,7 @@ private GeneratedFile(GeneratedFileType type, Path path, String pathAsString, by } this.path = path; - this.pathAsString = pathAsString; + this.pathAsString = pathAsString.replace('\\', '/'); this.contents = contents; }