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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user