Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Sievers2012-12-17 10:20:03 +0000
committerTobias Oberlies2013-01-25 13:23:42 +0000
commitae3f93aef90e280a1711da4ac11342c011ba480d (patch)
treea491f66a2bbb94d1cee53e0bd02d3306eca7ca2e /bundles/org.eclipse.equinox.p2.extensionlocation
parentc32f1112f9b3d28bd3208ddb11c54ef2010b5eac (diff)
downloadrt.equinox.p2-ae3f93aef90e280a1711da4ac11342c011ba480d.tar.gz
rt.equinox.p2-ae3f93aef90e280a1711da4ac11342c011ba480d.tar.xz
rt.equinox.p2-ae3f93aef90e280a1711da4ac11342c011ba480d.zip
331683 Publisher returns error status in case of invalid manifestv20130125-132342
- BundlesAction will now return a multi-status with severity error (and details in child message(s)) in case of invalid MANIFEST or IOException. - Static helper methods createBundleDescription(), loadManifest() and basicLoadManifest() now throw BundleException and IOException instead of ignoring them. - Added corresponding ...IgnoringExceptions() methods (and marked them as deprecated) which preserve old behaviour and allow to adapt users of these methods as they see fit. Bug 331683
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.extensionlocation')
-rw-r--r--bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/SiteListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/SiteListener.java b/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/SiteListener.java
index 74e1307ef..3aac05499 100644
--- a/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/SiteListener.java
+++ b/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/SiteListener.java
@@ -318,7 +318,7 @@ public class SiteListener extends DirectoryChangeListener {
for (int i = 0; plugins != null && i < plugins.length; i++) {
File bundleLocation = plugins[i];
if (bundleLocation.isDirectory() || bundleLocation.getName().endsWith(".jar")) { //$NON-NLS-1$
- BundleDescription description = BundlesAction.createBundleDescription(bundleLocation);
+ BundleDescription description = BundlesAction.createBundleDescriptionIgnoringExceptions(bundleLocation);
if (description != null) {
String id = description.getSymbolicName();
String version = description.getVersion().toString();

Back to the top