Bug 436073 - wrong application exit code in case of exception

Change-Id: I6d7579a71774ba8460aa1cb73f1c0eaebd9f6640
Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
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 2e12c6f..f78d55d 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
@@ -169,6 +169,9 @@
 		if (equinoxConfig != null) {
 			return equinoxConfig.setProperty(key, value);
 		}
+		if ("true".equals(getConfiguration().get(EquinoxConfiguration.PROP_USE_SYSTEM_PROPERTIES))) { //$NON-NLS-1$
+			System.setProperty(key, value);
+		}
 		return getConfiguration().put(key, value);
 	}