]> 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)
committerIngo Kegel <ingo.kegel@ej-technologies.com>
Fri, 16 Sep 2016 09:27:21 +0000 (11:27 +0200)
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 5d1bbbfa5f09f9266d736dac738a357794726700..c271aec09f9585e70e7b4195e063bb2b61aa0bca 100644 (file)
@@ -454,7 +454,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;