import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.pde.ui.launcher.EquinoxLaunchConfiguration;
+import org.eclipse.pde.launching.EquinoxLaunchConfiguration;
+/** OSGiBoot launch configuration. */
public class OsgiBootEquinoxLaunchConfiguration extends
EquinoxLaunchConfiguration {
public final static String ID = SlcIdeUiPlugin.ID
ILaunch launch, IProgressMonitor monitor) throws CoreException {
super.launch(configuration, mode, launch, monitor);
- // TODO: add launch listener to be notified when is terminated and
- // refresh resources
+// System.out.println("targetBundles="
+// + configuration.getAttribute(
+// IPDELauncherConstants.TARGET_BUNDLES, ""));
+// System.out.println("workspaceBundles="
+// + configuration.getAttribute(
+// IPDELauncherConstants.WORKSPACE_BUNDLES, ""));
- IFile propertiesFile = (IFile) configuration.getMappedResources()[0];
+ // Refresh resources before launching
+ final IFile propertiesFile = (IFile) configuration.getMappedResources()[0];
propertiesFile.getParent().refreshLocal(IResource.DEPTH_INFINITE,
monitor);
- // propertiesFile.getProject().refreshLocal(IResource.DEPTH_INFINITE,
- // monitor);
}
@Override
ILaunch launch, IProgressMonitor monitor) throws CoreException {
// System.out.println("Launching... " + launch);
ILaunchConfigurationWorkingCopy wc = configuration.getWorkingCopy();
- OsgiLaunchHelper.updateLaunchConfiguration(wc);
+ OsgiLaunchHelper.updateLaunchConfiguration(wc, false);
wc.doSave();
super.preLaunchCheck(configuration, launch, monitor);