aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHenri Sara <henri.sara@itmill.com>2009-10-27 15:08:16 +0000
committerHenri Sara <henri.sara@itmill.com>2009-10-27 15:08:16 +0000
commit44f5e4a252a8053dece47f94556af82643ec3874 (patch)
tree1217b59ef8f1cd5f4952082694c8ba9696374a42 /src
parentc0f0421d75d09e72724bfb9d412fb48e5ddf3e4e (diff)
downloadvaadin-framework-44f5e4a252a8053dece47f94556af82643ec3874.tar.gz
vaadin-framework-44f5e4a252a8053dece47f94556af82643ec3874.zip
Corrections to support for multiple source paths in widgetset builder
svn changeset:9412/svn branch:6.2
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/widgetsetutils/ClassPathExplorer.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/widgetsetutils/ClassPathExplorer.java b/src/com/vaadin/terminal/gwt/widgetsetutils/ClassPathExplorer.java
index ff8786a6b5..6a45860803 100644
--- a/src/com/vaadin/terminal/gwt/widgetsetutils/ClassPathExplorer.java
+++ b/src/com/vaadin/terminal/gwt/widgetsetutils/ClassPathExplorer.java
@@ -98,7 +98,21 @@ public class ClassPathExplorer {
files[i].length() - 8);
classname = classpathLocations.get(location) + "."
+ classname;
- widgetsets.put(classname, location);
+ if (!widgetsets.containsKey(classname)) {
+ String packageName = classpathLocations.get(location);
+ String packagePath = packageName.replaceAll("\\.", "/");
+ String basePath = location.getFile().replaceAll(
+ "/" + packagePath + "$", "");
+ try {
+ URL url = new URL(location.getProtocol(), location
+ .getHost(), location.getPort(), basePath);
+ widgetsets.put(classname, url);
+ } catch (MalformedURLException e) {
+ // should never happen as based on an existing URL,
+ // only changing end of file name/path part
+ e.printStackTrace();
+ }
+ }
}
}
} else {