Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
*/
public class JUnitWorkbenchLaunchShortcut extends JUnitLaunchShortcut {

private static final String DETECT_VM_INSTALLATIONS_DISABLED = "-DDetectVMInstallationsJob.disabled"; //$NON-NLS-1$

@Override
protected String getLaunchConfigurationTypeId() {
return "org.eclipse.pde.ui.JunitLaunchConfig"; //$NON-NLS-1$
Expand Down Expand Up @@ -112,9 +114,13 @@ protected ILaunchConfigurationWorkingCopy createLaunchConfiguration(IJavaElement

// VM arguments
String vmArgs = LaunchArgumentsHelper.getInitialVMArguments();
if (vmArgs.length() > 0) {
configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, vmArgs);
if (!vmArgs.contains(DETECT_VM_INSTALLATIONS_DISABLED)) {
if (!vmArgs.isEmpty()) {
vmArgs += " "; //$NON-NLS-1$
}
vmArgs += DETECT_VM_INSTALLATIONS_DISABLED + "=true"; //$NON-NLS-1$
}
configuration.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, vmArgs);
configuration.setAttribute(IPDELauncherConstants.BOOTSTRAP_ENTRIES, ""); //$NON-NLS-1$

// configuration attributes
Expand Down
Loading