]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed ClassloaderResolver on Windows (#9606) 46/246/1
authorArtur Signell <artur@vaadin.com>
Mon, 12 Nov 2012 14:31:41 +0000 (16:31 +0200)
committerArtur Signell <artur@vaadin.com>
Mon, 12 Nov 2012 14:32:14 +0000 (16:32 +0200)
Change-Id: I4bb5b17eb27622d4ed52368dd7678a4851eb94c2

theme-compiler/src/com/vaadin/sass/resolver/ClassloaderResolver.java

index 84ac6dc530f038aaebe4d404a5761dd220524201..28ab086be5e2804263fc8de8817cbba03481324f 100644 (file)
@@ -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);