Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2008-04-17 21:23:10 +0000
committerThomas Watson2008-04-17 21:23:10 +0000
commit47f91c56dcdee4f8ee1e3097e70fcc9c0c1dc2de (patch)
tree7f112a63007c84e28ac515a87d2c3b58c57a5f97 /bundles/org.eclipse.osgi/eclipseAdaptor
parent6364494770a1e266edefa51a0d7e5702857a963f (diff)
downloadrt.equinox.framework-47f91c56dcdee4f8ee1e3097e70fcc9c0c1dc2de.tar.gz
rt.equinox.framework-47f91c56dcdee4f8ee1e3097e70fcc9c0c1dc2de.tar.xz
rt.equinox.framework-47f91c56dcdee4f8ee1e3097e70fcc9c0c1dc2de.zip
Bug 225206 EclipseStarter should propagate return value of application
Diffstat (limited to 'bundles/org.eclipse.osgi/eclipseAdaptor')
-rw-r--r--bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java b/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java
index a858aad9e..c29a017db 100644
--- a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java
+++ b/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java
@@ -147,7 +147,9 @@ public class EclipseStarter {
// set the compatibility boot delegation flag to false to get "standard" OSGi behavior WRT boot delegation (bug 178477)
if (FrameworkProperties.getProperty(Constants.OSGI_COMPATIBILITY_BOOTDELEGATION) == null)
FrameworkProperties.setProperty(Constants.OSGI_COMPATIBILITY_BOOTDELEGATION, "false"); //$NON-NLS-1$
- run(args, null);
+ Object result = run(args, null);
+ if (result instanceof Integer && !Boolean.valueOf(FrameworkProperties.getProperty(PROP_NOSHUTDOWN)).booleanValue())
+ System.exit(((Integer) result).intValue());
}
/**

Back to the top