X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FResources.java;h=914979059f628f24bd0e07a0f824c2c50a73d58a;hb=49d1e475353a7660ac33d5cc8e65a3f72ef11376;hp=a152bf80b4b745ff18ddde34682269ca6b1c5434;hpb=345865827e473f64410c7e3c07e73d20a8db7c4f;p=org.ibex.core.git diff --git a/src/org/xwt/Resources.java b/src/org/xwt/Resources.java index a152bf8..9149790 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; iname to a fully