diff options
author | Andrey Loskutov | 2018-10-30 16:45:47 +0000 |
---|---|---|
committer | Andrey Loskutov | 2018-10-30 16:45:47 +0000 |
commit | 7d65c3565b61618454a809b02ea5d09d120db565 (patch) | |
tree | 2cfec0795efaba8c89a2d6847ebe9211831f2f9a | |
parent | e1ba456f2ff1d4ab1de0d9608cfd14451e5b4d64 (diff) | |
download | rt.equinox.framework-7d65c3565b61618454a809b02ea5d09d120db565.tar.gz rt.equinox.framework-7d65c3565b61618454a809b02ea5d09d120db565.tar.xz rt.equinox.framework-7d65c3565b61618454a809b02ea5d09d120db565.zip |
Bug 540605 - [regression] Eclipse 4.10 hasY20181031-2200I20181101-1800I20181031-1800I20181031-0550I20181031-0540I20181030-1800
ds.delayed.keepInstances=false per default
Change-Id: I3faf5cb84a3f28b4a19a2e29f952faf49aff4204
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
2 files changed, 11 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 9d610b677..b3c75ab5e 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 @@ -200,6 +200,15 @@ public class EclipseStarter { // set a default value; but this value can be overriden by the config.ini configuration.put(EquinoxConfiguration.PROP_COMPATIBILITY_BOOTDELEGATION + EquinoxConfiguration.PROP_DEFAULT_SUFFIX, "true"); //$NON-NLS-1$ } + + String dsDelayedKeepInstances = System.getProperty(EquinoxConfiguration.PROP_DS_DELAYED_KEEPINSTANCES); + if (dsDelayedKeepInstances != null) { + // The system properties have a specific setting; use it + configuration.put(EquinoxConfiguration.PROP_DS_DELAYED_KEEPINSTANCES, dsDelayedKeepInstances); + } else { + // set a default value; but this value can be overriden by the config.ini + configuration.put(EquinoxConfiguration.PROP_DS_DELAYED_KEEPINSTANCES + EquinoxConfiguration.PROP_DEFAULT_SUFFIX, "true"); //$NON-NLS-1$ + } } return configuration; } diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxConfiguration.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxConfiguration.java index 4ef8d9c45..22e1b251d 100644 --- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxConfiguration.java +++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/framework/EquinoxConfiguration.java @@ -172,6 +172,7 @@ public class EquinoxConfiguration implements EnvironmentInfo { public static final String PROP_CONTEXT_BOOTDELEGATION = "osgi.context.bootdelegation"; //$NON-NLS-1$ public static final String PROP_COMPATIBILITY_BOOTDELEGATION = "osgi.compatibility.bootdelegation"; //$NON-NLS-1$ + public static final String PROP_DS_DELAYED_KEEPINSTANCES = "ds.delayed.keepInstances"; //$NON-NLS-1$ public static final String PROP_COMPATIBILITY_ERROR_FAILED_START = "osgi.compatibility.errorOnFailedStart"; //$NON-NLS-1$ public static final String PROP_COMPATIBILITY_START_LAZY = "osgi.compatibility.eagerStart.LazyActivation"; //$NON-NLS-1$ public static final String PROP_COMPATIBILITY_START_LAZY_ON_FAIL_CLASSLOAD = "osgi.compatibility.trigger.lazyActivation.onFailedClassLoad"; //$NON-NLS-1$ @@ -232,7 +233,7 @@ public class EquinoxConfiguration implements EnvironmentInfo { public static final String SYSTEM_PROVIDE_HEADER_SYSTEM_EXTRA = "system.extra"; //$NON-NLS-1$ public static final String PROP_DEFAULT_SUFFIX = ".default"; //$NON-NLS-1$ - public static final Collection<String> PROP_WITH_ECLIPSE_STARTER_DEFAULTS = Collections.singletonList(PROP_COMPATIBILITY_BOOTDELEGATION); + public static final Collection<String> PROP_WITH_ECLIPSE_STARTER_DEFAULTS = Collections.unmodifiableList(Arrays.asList(PROP_COMPATIBILITY_BOOTDELEGATION, PROP_DS_DELAYED_KEEPINSTANCES)); public static final String PROP_INIT_UUID = "equinox.init.uuid"; //$NON-NLS-1$ public static final String PROP_ACTIVE_THREAD_TYPE = "osgi.framework.activeThreadType"; //$NON-NLS-1$ |