diff options
author | Henri Sara <henri.sara@itmill.com> | 2010-04-01 11:08:23 +0000 |
---|---|---|
committer | Henri Sara <henri.sara@itmill.com> | 2010-04-01 11:08:23 +0000 |
commit | 71e76940afd627a5a923fcae29fc6932a8874331 (patch) | |
tree | 954c8cbf41ba280c6376e88a7dcaf2079cc32392 /src | |
parent | d8e96c7e044c3d150fd8ff0bc7f2370d0790b833 (diff) | |
download | vaadin-framework-71e76940afd627a5a923fcae29fc6932a8874331.tar.gz vaadin-framework-71e76940afd627a5a923fcae29fc6932a8874331.zip |
Speed up widget map generation significantly by ignoring hidden files and directories
svn changeset:12273/svn branch:6.3
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/terminal/gwt/widgetsetutils/ClassPathExplorer.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/vaadin/terminal/gwt/widgetsetutils/ClassPathExplorer.java b/src/com/vaadin/terminal/gwt/widgetsetutils/ClassPathExplorer.java index 2b5ea6aa90..081fa4a382 100644 --- a/src/com/vaadin/terminal/gwt/widgetsetutils/ClassPathExplorer.java +++ b/src/com/vaadin/terminal/gwt/widgetsetutils/ClassPathExplorer.java @@ -310,8 +310,12 @@ public class ClassPathExplorer { for (int i = 0; i < dirs.length; i++) { try { // add the present directory - locations.put(new URL("file://" + dirs[i].getCanonicalPath()), - name + dirs[i].getName()); + if (!dirs[i].isHidden() + && !dirs[i].getPath().contains(File.separator + ".")) { + locations.put(new URL("file://" + + dirs[i].getCanonicalPath()), name + + dirs[i].getName()); + } } catch (Exception ioe) { return; } |