summaryrefslogtreecommitdiffstats
path: root/theme-compiler/src/com/vaadin/sass
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-05-03 08:57:24 +0300
committerArtur Signell <artur@vaadin.com>2013-05-03 08:57:24 +0300
commit68d3f0ac04fb945f8f2ca2b60b75d65485f98f7a (patch)
tree8e06c7ec387add4809cd2c96357e9a891247795a /theme-compiler/src/com/vaadin/sass
parentf7e41e74bf3dbd9aae15aca90ba08cb0f3c9b61a (diff)
downloadvaadin-framework-68d3f0ac04fb945f8f2ca2b60b75d65485f98f7a.tar.gz
vaadin-framework-68d3f0ac04fb945f8f2ca2b60b75d65485f98f7a.zip
Fixed scss file resolving issue in Windows (#11762)
Change-Id: I63484865ce56a54cc8f3fb673c03ffd0be6c8dc1
Diffstat (limited to 'theme-compiler/src/com/vaadin/sass')
-rw-r--r--theme-compiler/src/com/vaadin/sass/internal/resolver/VaadinResolver.java4
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