Fixed problem with loadaing pluglets.

changed "file://" to "file:"


git-svn-id: svn://10.0.0.236/trunk@60193 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
idk%eng.sun.com
2000-02-09 03:39:45 +00:00
parent fabf64cb64
commit 7cca0630ac

View File

@@ -40,9 +40,9 @@ public class PlugletLoader {
public static PlugletFactory getPluglet(String path) {
try {
org.mozilla.util.DebugPluglet.print("-- PlugletLoader.getPluglet("+path+")\n");
URL url = new URL("file://"+path);
URL url = new URL("file:"+path);
URLClassLoader loader = URLClassLoader.newInstance(new URL[]{url});
URL manifestURL = new URL("jar:file://"+path+"!/META-INF/MANIFEST.MF");
URL manifestURL = new URL("jar:file:"+path+"!/META-INF/MANIFEST.MF");
InputStream inputStream = manifestURL.openStream();
Manifest manifest = new Manifest(inputStream);
Attributes attr = manifest.getMainAttributes();
@@ -82,7 +82,7 @@ public class PlugletLoader {
public static String getMIMEDescription(String path) {
try {
org.mozilla.util.DebugPluglet.print("-- PlugletLoader.getMIMEDescription("+path+")\n");
URL manifestURL = new URL("jar:file://"+path+"!/META-INF/MANIFEST.MF");
URL manifestURL = new URL("jar:file:"+path+"!/META-INF/MANIFEST.MF");
InputStream inputStream = manifestURL.openStream();
Manifest manifest = new Manifest(inputStream);
Attributes attr = manifest.getMainAttributes();