diff options
Diffstat (limited to 'theme-compiler/src/com/vaadin/sass/resolver/ClassloaderResolver.java')
-rw-r--r-- | theme-compiler/src/com/vaadin/sass/resolver/ClassloaderResolver.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/theme-compiler/src/com/vaadin/sass/resolver/ClassloaderResolver.java b/theme-compiler/src/com/vaadin/sass/resolver/ClassloaderResolver.java index 84ac6dc530..28ab086be5 100644 --- a/theme-compiler/src/com/vaadin/sass/resolver/ClassloaderResolver.java +++ b/theme-compiler/src/com/vaadin/sass/resolver/ClassloaderResolver.java @@ -1,5 +1,6 @@ package com.vaadin.sass.resolver; +import java.io.File; import java.io.InputStream; import org.w3c.css.sac.InputSource; @@ -21,6 +22,9 @@ public class ClassloaderResolver implements ScssStylesheetResolver { fileName = fileName + ext; } + // Ensure only "/" is used, also in Windows + fileName = fileName.replace(File.separatorChar, '/'); + // Can the classloader find it? InputStream is = getClass().getClassLoader().getResourceAsStream( fileName); |