mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
[246422] Fixed Shell constructor in runCommand method.
This commit is contained in:
parent
ebaa191fab
commit
bca7723a18
1 changed files with 4 additions and 3 deletions
|
@ -13,10 +13,11 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - Adapted from LocalShellService.
|
* Martin Oberhuber (Wind River) - Adapted from LocalShellService.
|
||||||
* Sheldon D'souza (Celunite) - Adapted from SshShellService.
|
* Sheldon D'souza (Celunite) - Adapted from SshShellService.
|
||||||
* Martin Oberhuber (Wind River) - [226262] Make IService IAdaptable
|
* Martin Oberhuber (Wind River) - [226262] Make IService IAdaptable
|
||||||
* Martin Oberhuber (Wind River) - [226301][api] IShellService should throw SystemMessageException on error
|
* Martin Oberhuber (Wind River) - [226301][api] IShellService should throw SystemMessageException on error
|
||||||
s *******************************************************************************/
|
* Anna Dushistova (MontaVista) - [246422] Possible bug in TelnetShellService.runCommand()
|
||||||
|
*******************************************************************************/
|
||||||
package org.eclipse.rse.internal.services.telnet.shell;
|
package org.eclipse.rse.internal.services.telnet.shell;
|
||||||
|
|
||||||
import org.eclipse.core.runtime.IProgressMonitor;
|
import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
|
@ -45,7 +46,7 @@ public class TelnetShellService extends AbstractShellService implements ITelnetS
|
||||||
public IHostShell runCommand(String initialWorkingDirectory,
|
public IHostShell runCommand(String initialWorkingDirectory,
|
||||||
String command, String encoding, String[] environment,
|
String command, String encoding, String[] environment,
|
||||||
IProgressMonitor monitor) throws SystemMessageException {
|
IProgressMonitor monitor) throws SystemMessageException {
|
||||||
TelnetHostShell hostShell = new TelnetHostShell(fTelnetSessionProvider, initialWorkingDirectory, TelnetHostShell.SHELL_INVOCATION, encoding, environment);
|
TelnetHostShell hostShell = new TelnetHostShell(fTelnetSessionProvider, initialWorkingDirectory, command, encoding, environment);
|
||||||
return hostShell;
|
return hostShell;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue