]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix regression that broke widget set compilation in 7.7.1 (#20285)
authorIngo Kegel <ingo.kegel@ej-technologies.com>
Fri, 16 Sep 2016 09:27:21 +0000 (11:27 +0200)
committerHenri Sara <hesara@vaadin.com>
Fri, 16 Sep 2016 10:16:11 +0000 (13:16 +0300)
The fix for

https://dev.vaadin.com/ticket/20262

broke widget set compilation on Windows, possibly only under certain circumstances

Change-Id: Ica559b9c7199014bf1a2babad29f53b083ff74a2

server/src/main/java/com/vaadin/server/widgetsetutils/ClassPathExplorer.java

index 45bd3751d35b83e1e3a137995efe13210d98dfd8..99ec884c4241919bbb4c91b6163271307aefc943 100644 (file)
@@ -451,7 +451,7 @@ public class ClassPathExplorer {
                     String key = dirs[i].getCanonicalPath() + "/" + name
                             + dirs[i].getName();
                     locations.put(key,
-                            new URL("file://" + dirs[i].getCanonicalPath()));
+                            dirs[i].getCanonicalFile().toURI().toURL());
                 }
             } catch (Exception ioe) {
                 return;