diff options
author | Darin Swanson | 2003-09-04 21:16:24 +0000 |
---|---|---|
committer | Darin Swanson | 2003-09-04 21:16:24 +0000 |
commit | e13628af7877e1f4f290bed9c76b91d91a48370e (patch) | |
tree | fde3ba34015732c23a2157b0a2dec830a7a13ae6 /org.eclipse.ui.externaltools/Program Tools Support/org | |
parent | 97e32aea21c04d5320dd1b77c7ffbf511c387193 (diff) | |
download | eclipse.platform.debug-e13628af7877e1f4f290bed9c76b91d91a48370e.tar.gz eclipse.platform.debug-e13628af7877e1f4f290bed9c76b91d91a48370e.tar.xz eclipse.platform.debug-e13628af7877e1f4f290bed9c76b91d91a48370e.zip |
Bug 41068 - Ant in separate VM does not color output
Diffstat (limited to 'org.eclipse.ui.externaltools/Program Tools Support/org')
-rw-r--r-- | org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program/launchConfigurations/ProgramLaunchDelegate.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program/launchConfigurations/ProgramLaunchDelegate.java b/org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program/launchConfigurations/ProgramLaunchDelegate.java index 879de763e..5649677dd 100644 --- a/org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program/launchConfigurations/ProgramLaunchDelegate.java +++ b/org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program/launchConfigurations/ProgramLaunchDelegate.java @@ -20,6 +20,8 @@ import java.util.Map; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IProgressMonitor; +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.Status; import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.ILaunch; import org.eclipse.debug.core.ILaunchConfiguration; @@ -29,8 +31,8 @@ import org.eclipse.debug.core.model.ILaunchConfigurationDelegate; import org.eclipse.debug.core.model.IProcess; import org.eclipse.debug.core.variables.LaunchVariableUtil; import org.eclipse.debug.ui.CommonTab; -import org.eclipse.debug.ui.launchVariables.RefreshTab; import org.eclipse.debug.ui.launchVariables.LaunchVariableContextManager; +import org.eclipse.debug.ui.launchVariables.RefreshTab; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.ui.IWindowListener; import org.eclipse.ui.IWorkbenchWindow; @@ -165,6 +167,11 @@ public class ProgramLaunchDelegate implements ILaunchConfigurationDelegate { if (p != null) { monitor.beginTask(MessageFormat.format(ExternalToolsProgramMessages.getString("ProgramLaunchDelegate.3"), new String[] {configuration.getName()}), IProgressMonitor.UNKNOWN); //$NON-NLS-1$ process = DebugPlugin.newProcess(launch, p, location.toOSString(), processAttributes); + if (process == null) { + p.destroy(); + throw new CoreException(new Status(IStatus.ERROR, IExternalToolConstants.PLUGIN_ID, IExternalToolConstants.ERR_INTERNAL_ERROR, "An IProcess could not be created for the launch", null)); + } + } process.setAttribute(IProcess.ATTR_CMDLINE, generateCommandLine(cmdLine)); |