]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - eclipse/plugins/org.argeo.slc.ide.ui/src/main/java/org/argeo/slc/ide/ui/launch/osgi/OsgiLaunchHelper.java
Bypass simple configurator if found
[gpl/argeo-slc.git] / eclipse / plugins / org.argeo.slc.ide.ui / src / main / java / org / argeo / slc / ide / ui / launch / osgi / OsgiLaunchHelper.java
index 6866f3dc41e7ae60f1b22833e6090d584951533d..ee01f02a2d2eaf0c3d27b81c278f2b07298b47b4 100644 (file)
@@ -34,9 +34,11 @@ import org.eclipse.jface.viewers.IStructuredSelection;
 import org.eclipse.osgi.service.resolver.BundleDescription;
 import org.eclipse.pde.core.plugin.IPluginModelBase;
 import org.eclipse.pde.core.plugin.PluginRegistry;
+import org.eclipse.pde.internal.build.IPDEBuildConstants;
 import org.eclipse.pde.ui.launcher.IPDELauncherConstants;
 import org.eclipse.swt.widgets.Shell;
 
+@SuppressWarnings("restriction")
 public class OsgiLaunchHelper implements OsgiLauncherConstants {
        private static Boolean debug = false;
 
@@ -279,10 +281,16 @@ public class OsgiLaunchHelper implements OsgiLauncherConstants {
                                bundleId = bundleId.substring(0, indexAt);
                        }
 
+                       // We can now rely on bundleId value
+
                        if (bundleId.endsWith(".source")) {
                                if (debug)
                                        System.out.println("Skip source bundle " + bundleId);
                                continue bundles;
+                       } else if (bundleId
+                                       .equals(IPDEBuildConstants.BUNDLE_SIMPLE_CONFIGURATOR)) {
+                               // skip simple configurator in order to avoid side-effects
+                               continue bundles;
                        }
 
                        if (bundlesToStart.contains(bundleId)) {