Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2013-05-08 17:48:25 +0000
committerThomas Watson2013-05-08 17:48:25 +0000
commit80424a72af56a7bd24b89c98fbbc028993650b7a (patch)
treec7959d8cf3d8fd56021c9d8078a31ed6504ca909
parent1af6d94de996c73f90d2f09829725c0ea0e9db0b (diff)
downloadrt.equinox.framework-80424a72af56a7bd24b89c98fbbc028993650b7a.tar.gz
rt.equinox.framework-80424a72af56a7bd24b89c98fbbc028993650b7a.tar.xz
rt.equinox.framework-80424a72af56a7bd24b89c98fbbc028993650b7a.zip
Bug 407525 - Log a warning if old style plugin is detected
-rw-r--r--bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/internal/adaptor/EclipseStorageHook.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/internal/adaptor/EclipseStorageHook.java b/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/internal/adaptor/EclipseStorageHook.java
index 78aa333aa..d5c73c5b5 100644
--- a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/internal/adaptor/EclipseStorageHook.java
+++ b/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/internal/adaptor/EclipseStorageHook.java
@@ -454,6 +454,11 @@ public final class EclipseStorageHook implements StorageHook, HookConfigurator {
//Now we know the symbolicId and the version of the bundle, we check to see if don't have a manifest for it already
Version version = Version.parseVersion(generatedManifest.get(Constants.BUNDLE_VERSION));
String symbolicName = ManifestElement.parseHeader(org.osgi.framework.Constants.BUNDLE_SYMBOLICNAME, generatedManifest.get(org.osgi.framework.Constants.BUNDLE_SYMBOLICNAME))[0].getValue();
+
+ // log a warning about old 2.0 plugins being deprecated and may not be supported in future releases
+ String message = "The plugin \"" + symbolicName + "\" with the version \"" + version + "\" and location \"" + bundledata.getLocation() + "\" is an old style Eclipse 2.0 plugin with no OSGi bundle manifest. Support for Eclipse 2.0 style plugins will be removed in a furture release."; //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$ //$NON-NLS-4$
+ bundledata.getAdaptor().getFrameworkLog().log(new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, FrameworkLogEntry.WARNING, 0, message, 0, null, null));
+
ManifestElement generatedFrom = ManifestElement.parseHeader(PluginConverterImpl.GENERATED_FROM, generatedManifest.get(PluginConverterImpl.GENERATED_FROM))[0];
Headers<String, String> existingHeaders = checkManifestAndParent(cacheLocation, symbolicName, version.toString(), Byte.parseByte(generatedFrom.getAttribute(PluginConverterImpl.MANIFEST_TYPE_ATTRIBUTE)));
//We don't have a manifest.

Back to the top