diff options
author | Artur Signell <artur@vaadin.com> | 2012-11-12 16:31:41 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-11-12 16:32:14 +0200 |
commit | aa6b57956e11173b98f8da2dda914f62b6d2d884 (patch) | |
tree | 5e5961abd4acccdb15fc20b7acf3d4f7de56cbca /theme-compiler | |
parent | ad096cda0475857e71451d4e3d660c11f9bc79b2 (diff) | |
download | vaadin-framework-aa6b57956e11173b98f8da2dda914f62b6d2d884.tar.gz vaadin-framework-aa6b57956e11173b98f8da2dda914f62b6d2d884.zip |
Fixed ClassloaderResolver on Windows (#9606)
Change-Id: I4bb5b17eb27622d4ed52368dd7678a4851eb94c2
Diffstat (limited to 'theme-compiler')
-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); |