X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FResources.java;h=615ef97ab8394e5c99048f8638f6ec85c0377f70;hb=93224727752b3da9a70bacd473c5f961efb3a297;hp=be4eb99eca6c25d0cb81602d77fdaa7bc13f8976;hpb=e6a665b309c7103a3a29c2cd96b1073409c13606;p=org.ibex.core.git diff --git a/src/org/xwt/Resources.java b/src/org/xwt/Resources.java index be4eb99..615ef97 100644 --- a/src/org/xwt/Resources.java +++ b/src/org/xwt/Resources.java @@ -6,7 +6,6 @@ import java.net.*; import java.util.*; import java.util.zip.*; import java.lang.*; -import java.applet.*; import org.xwt.js.*; import org.xwt.util.*; @@ -48,8 +47,8 @@ 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 { - String n = prefix.replace(File.separatorChar, '.'); - if (n.endsWith(".")) n = n.substring(0, n.length() - 1); + 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