Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2002-11-11 15:22:34 +0000
committerDarin Wright2002-11-11 15:22:34 +0000
commit2b3987f021d8c0fcf757514d0cd725b55326c9d4 (patch)
tree92d9e0d1197fc9a02113f201e7857481b9f80d96 /org.eclipse.ui.externaltools/Program Tools Support
parent22209cedf4c4bab4a44931c153b39ff3aac6d00b (diff)
downloadeclipse.platform.debug-2b3987f021d8c0fcf757514d0cd725b55326c9d4.tar.gz
eclipse.platform.debug-2b3987f021d8c0fcf757514d0cd725b55326c9d4.tar.xz
eclipse.platform.debug-2b3987f021d8c0fcf757514d0cd725b55326c9d4.zip
bug 19623
Diffstat (limited to 'org.eclipse.ui.externaltools/Program Tools Support')
-rw-r--r--org.eclipse.ui.externaltools/Program Tools Support/org/eclipse/ui/externaltools/internal/program/launchConfigurations/ProgramLaunchDelegate.java12
1 files changed, 12 insertions, 0 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 b6acbeee7..82f94fc63 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
@@ -95,6 +95,7 @@ public class ProgramLaunchDelegate implements ILaunchConfigurationDelegate {
if (p != null) {
process = DebugPlugin.newProcess(launch, p, location.toOSString());
}
+ process.setAttribute(IProcess.ATTR_CMDLINE, renderCommandLine(cmdLine));
if (ExternalToolsUtil.isBackground(configuration)) {
// refresh resources after process finishes
@@ -122,4 +123,15 @@ public class ProgramLaunchDelegate implements ILaunchConfigurationDelegate {
}
+ protected static String renderCommandLine(String[] commandLine) {
+ if (commandLine.length < 1)
+ return ""; //$NON-NLS-1$
+ StringBuffer buf= new StringBuffer(commandLine[0]);
+ for (int i= 1; i < commandLine.length; i++) {
+ buf.append(' ');
+ buf.append(commandLine[i]);
+ }
+ return buf.toString();
+ }
+
}

Back to the top