diff options
-rw-r--r-- | theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java b/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java index 2460c2ad2e..d6480f3e2c 100644 --- a/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java +++ b/theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java @@ -15,6 +15,7 @@ */ package com.vaadin.sass.internal.resolver; +import java.io.File; import java.net.URI; import java.net.URISyntaxException; @@ -29,6 +30,9 @@ public class VaadinResolver implements ScssStylesheetResolver { * Normalize classpath so ../../ segments are resolved */ try { + // Ensure only "/" is used, also in Windows + identifier = identifier.replace(File.separatorChar, '/'); + // Resolve "foo/../bar" -> "bar" identifier = new URI(identifier).normalize().getPath(); } catch (URISyntaxException e) { // No worries, continuing with the unnormalized path and hope for |