From b1db6de5e71322c44bb74282d6d1d2fe9ad76031 Mon Sep 17 00:00:00 2001 From: lgemeinhardt Date: Tue, 22 Jan 2019 17:25:57 +0100 Subject: [PATCH] Support the workflow under Windows. #9 I found and fixed the first file/path issue, while running j2cl native with Windows 10 ... added the following fix ".replace('\\', '/')" here "com.google.j2cl.generator.OutputGeneratorStage#generateOutputs:87" String typeRelativePath = getRelativePath(type).replace('\\', '/'); Not sure if this fix is well placed, but is corrects the issue (looking up an windows path in a map with unix paths)... --- .../java/com/google/j2cl/generator/OutputGeneratorStage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transpiler/java/com/google/j2cl/generator/OutputGeneratorStage.java b/transpiler/java/com/google/j2cl/generator/OutputGeneratorStage.java index e04595dfa0..5454c9fe17 100644 --- a/transpiler/java/com/google/j2cl/generator/OutputGeneratorStage.java +++ b/transpiler/java/com/google/j2cl/generator/OutputGeneratorStage.java @@ -84,7 +84,7 @@ public void generateOutputs(List j2clCompilationUnits) { new JavaScriptImplGenerator(problems, declareLegacyNamespace, type); // If the java type contains any native methods, search for matching native file. - String typeRelativePath = getRelativePath(type); + String typeRelativePath = getRelativePath(type).replace('\\', '/'); String typeAbsolutePath = FrontendUtils.getJavaPath(getAbsolutePath(j2clCompilationUnit, type));