import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.pde.ui.launcher.EquinoxLaunchConfiguration;
+import org.eclipse.pde.ui.launcher.IPDELauncherConstants;
/** OSGiBoot launch configuration. */
public class OsgiBootEquinoxLaunchConfiguration extends
public void launch(ILaunchConfiguration configuration, String mode,
ILaunch launch, IProgressMonitor monitor) throws CoreException {
super.launch(configuration, mode, launch, monitor);
+
+ System.out.println("targetBundles="
+ + configuration.getAttribute(
+ IPDELauncherConstants.TARGET_BUNDLES, ""));
+ System.out.println("workspaceBundles="
+ + configuration.getAttribute(
+ IPDELauncherConstants.WORKSPACE_BUNDLES, ""));
+
// Refresh resources before launching
final IFile propertiesFile = (IFile) configuration.getMappedResources()[0];
propertiesFile.getParent().refreshLocal(IResource.DEPTH_INFINITE,
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;
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)) {