return null;
}
String protocol = jar.getProtocol().toLowerCase();
try {
if (protocol.startsWith("jar")) {
return new StandardPluginLocation(new URL(jar.toExternalForm()
.replaceFirst("!(.*?)$", Util.joinPath("!", context))), jar);
} else if (protocol.startsWith("file")) {
File f = new File(jar.toURI());
return new StandardPluginLocation(f.getParentFile(), manifest);
}
} catch (URISyntaxException e) {
return null;
} catch (MalformedURLException e) {
return null;