Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2014-02-20 21:30:07 +0000
committerThomas Watson2014-02-20 21:30:07 +0000
commitc48f9c82ccc057bc15a37ed9be7d059803c390b2 (patch)
treeab9148a4e5fa4dd6aac04cefbf2a36c3a0c0765f /bundles
parentce832d6acbf8eb59a6cf6d27c7306b0e05704d89 (diff)
downloadrt.equinox.framework-c48f9c82ccc057bc15a37ed9be7d059803c390b2.tar.gz
rt.equinox.framework-c48f9c82ccc057bc15a37ed9be7d059803c390b2.tar.xz
rt.equinox.framework-c48f9c82ccc057bc15a37ed9be7d059803c390b2.zip
Bug 426492 - Missing dependency message from Equinox got worse
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java
index 7a10b79cd..2c6fc83a1 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java
@@ -20,6 +20,7 @@ import java.util.*;
import java.util.concurrent.Semaphore;
import java.util.concurrent.TimeUnit;
import org.eclipse.core.runtime.internal.adaptor.*;
+import org.eclipse.osgi.container.*;
import org.eclipse.osgi.container.namespaces.EquinoxModuleDataNamespace;
import org.eclipse.osgi.framework.log.FrameworkLog;
import org.eclipse.osgi.framework.log.FrameworkLogEntry;
@@ -42,6 +43,7 @@ import org.osgi.framework.launch.Framework;
import org.osgi.framework.startlevel.BundleStartLevel;
import org.osgi.framework.startlevel.FrameworkStartLevel;
import org.osgi.framework.wiring.FrameworkWiring;
+import org.osgi.resource.Resource;
import org.osgi.util.tracker.ServiceTracker;
/**
@@ -376,7 +378,12 @@ public class EclipseStarter {
return appLauncher.reStart(argument);
} catch (Exception e) {
if (log != null && context != null) { // context can be null if OSGi failed to launch (bug 151413)
- // TODO Should log unresolved bundles here
+ ModuleResolutionReport report = context.getBundle().adapt(Module.class).getContainer().resolve(null, false);
+ for (Resource unresolved : report.getEntries().keySet()) {
+ String bsn = ((ModuleRevision) unresolved).getSymbolicName();
+ FrameworkLogEntry logEntry = new FrameworkLogEntry(bsn != null ? bsn : EquinoxContainer.NAME, FrameworkLogEntry.WARNING, 0, Msg.Module_ResolveError + report.getResolutionReportMessage(unresolved), 1, null, null);
+ log.log(logEntry);
+ }
}
throw e;
}

Back to the top