diff options
author | Thomas Watson | 2014-08-19 17:46:00 +0000 |
---|---|---|
committer | Thomas Watson | 2014-08-19 17:47:48 +0000 |
commit | be93258cdaa11109f214dbc61513e5b4ac8a0052 (patch) | |
tree | 3bb68342b91bc43c0091142756e13dbc801a850b | |
parent | a4df02e94cd2643f6102497398eb185d6b811312 (diff) | |
download | rt.equinox.framework-be93258cdaa11109f214dbc61513e5b4ac8a0052.tar.gz rt.equinox.framework-be93258cdaa11109f214dbc61513e5b4ac8a0052.tar.xz rt.equinox.framework-be93258cdaa11109f214dbc61513e5b4ac8a0052.zip |
Bug 441681 - System property osgi.compatibility.bootdelegation gets overridden by EclipseStarter.classM20140827-1200M20140827-0800M20140820-1200M20140820-0800
-rw-r--r-- | bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java | 18 |
1 files changed, 6 insertions, 12 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 f78d55dbe..4d6115e8b 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 @@ -185,11 +185,14 @@ public class EclipseStarter { private synchronized static Map<String, String> getConfiguration() { if (configuration == null) { configuration = new HashMap<String, String>(); - // TODO hack - String useSystemProperties = System.getProperty(EquinoxConfiguration.PROP_USE_SYSTEM_PROPERTIES, "true"); //$NON-NLS-1$ - if ("true".equals(useSystemProperties)) { //$NON-NLS-1$ + // TODO hack to set these to defaults for EclipseStarter + // Note that this hack does not allow these properties to be specified in config.ini + if (System.getProperty(EquinoxConfiguration.PROP_USE_SYSTEM_PROPERTIES) == null) { configuration.put(EquinoxConfiguration.PROP_USE_SYSTEM_PROPERTIES, "true"); //$NON-NLS-1$ } + if (System.getProperty(EquinoxConfiguration.PROP_COMPATIBILITY_BOOTDELEGATION) == null) { + configuration.put(EquinoxConfiguration.PROP_COMPATIBILITY_BOOTDELEGATION, "true"); //$NON-NLS-1$ + } } return configuration; } @@ -293,7 +296,6 @@ public class EclipseStarter { if (running) throw new IllegalStateException(Msg.ECLIPSE_STARTUP_ALREADY_RUNNING); processCommandLine(args); - finalizeProperties(); framework = new Equinox(configuration); framework.init(); context = framework.getBundleContext(); @@ -1304,14 +1306,6 @@ public class EclipseStarter { return ((String) left[3]).compareTo((String) right[3]); // compare qualifier } - private static void finalizeProperties() { - // if check config is unknown and we are in dev mode, - if (getProperty(PROP_DEV) != null && getProperty(PROP_CHECK_CONFIG) == null) - setProperty(PROP_CHECK_CONFIG, "true"); //$NON-NLS-1$ - if (getProperty(EquinoxConfiguration.PROP_COMPATIBILITY_BOOTDELEGATION) == null) - setProperty(EquinoxConfiguration.PROP_COMPATIBILITY_BOOTDELEGATION, "true"); //$NON-NLS-1$ - } - private static class InitialBundle { public final String locationString; public final URL location; |