Lines 14-21
Link Here
|
14 |
import java.net.MalformedURLException; |
14 |
import java.net.MalformedURLException; |
15 |
import java.net.URL; |
15 |
import java.net.URL; |
16 |
import java.util.*; |
16 |
import java.util.*; |
17 |
import java.util.jar.JarEntry; |
17 |
import java.util.zip.ZipEntry; |
18 |
import java.util.jar.JarFile; |
18 |
import java.util.zip.ZipFile; |
19 |
import org.eclipse.core.runtime.adaptor.*; |
19 |
import org.eclipse.core.runtime.adaptor.*; |
20 |
import org.eclipse.osgi.framework.adaptor.FrameworkAdaptor; |
20 |
import org.eclipse.osgi.framework.adaptor.FrameworkAdaptor; |
21 |
import org.eclipse.osgi.framework.internal.core.Constants; |
21 |
import org.eclipse.osgi.framework.internal.core.Constants; |
Lines 511-519
Link Here
|
511 |
|
511 |
|
512 |
private Set getExportsFromJAR(File jarFile) { |
512 |
private Set getExportsFromJAR(File jarFile) { |
513 |
Set names = new HashSet(); |
513 |
Set names = new HashSet(); |
514 |
JarFile file = null; |
514 |
ZipFile file = null; |
515 |
try { |
515 |
try { |
516 |
file = new JarFile(jarFile, false); |
516 |
file = new ZipFile(jarFile); |
517 |
} catch (IOException e) { |
517 |
} catch (IOException e) { |
518 |
String message = NLS.bind(EclipseAdaptorMsg.ECLIPSE_CONVERTER_PLUGIN_LIBRARY_IGNORED, jarFile, pluginInfo.getUniqueId()); |
518 |
String message = NLS.bind(EclipseAdaptorMsg.ECLIPSE_CONVERTER_PLUGIN_LIBRARY_IGNORED, jarFile, pluginInfo.getUniqueId()); |
519 |
adaptor.getFrameworkLog().log(new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.ERROR, 0, message, 0, e, null)); |
519 |
adaptor.getFrameworkLog().log(new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.ERROR, 0, message, 0, e, null)); |
Lines 521-527
Link Here
|
521 |
} |
521 |
} |
522 |
//Run through the entries |
522 |
//Run through the entries |
523 |
for (Enumeration entriesEnum = file.entries(); entriesEnum.hasMoreElements();) { |
523 |
for (Enumeration entriesEnum = file.entries(); entriesEnum.hasMoreElements();) { |
524 |
JarEntry entry = (JarEntry) entriesEnum.nextElement(); |
524 |
ZipEntry entry = (ZipEntry) entriesEnum.nextElement(); |
525 |
String name = entry.getName(); |
525 |
String name = entry.getName(); |
526 |
if (!isValidPackageName(name)) |
526 |
if (!isValidPackageName(name)) |
527 |
continue; |
527 |
continue; |