X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FResources.java;h=e1e267f7944ccf8caafa013339b9f33cc952a1db;hb=1da33fe9e7c5104ec5d0b9b312d1114fdf2931be;hp=c0240ca7d5e8c3ca710bbd9ceddc9e371416228a;hpb=e58686eae8a823ed64ed0ec92c2274c41d90ec93;p=org.ibex.core.git diff --git a/src/org/xwt/Resources.java b/src/org/xwt/Resources.java index c0240ca..e1e267f 100644 --- a/src/org/xwt/Resources.java +++ b/src/org/xwt/Resources.java @@ -48,7 +48,9 @@ public class Resources { /** Load a directory as if it were an archive */ public static synchronized void loadDirectory(File dir) throws IOException { loadDirectory(dir, ""); } private static synchronized void loadDirectory(File dir, String prefix) throws IOException { - new Static(prefix.replace(File.separatorChar, '.')); + String n = prefix.replace(File.separatorChar, '.'); + if (n.endsWith(".")) n = n.substring(0, n.length() - 1); + new Static(n); String[] subfiles = dir.list(); for(int i=0; i