1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

Add support for QNX connections over SSH.

Change-Id: I8797b8cbb40967992c0d0b37fe6e2b5e79f92e6e
This commit is contained in:
Doug Schaefer 2016-05-03 16:53:19 -04:00
parent 9e941839a8
commit 82342164e2

View file

@ -253,9 +253,9 @@ public class JSchConnection implements IRemoteConnectionControlService, IRemoteC
private final IRemoteConnection fRemoteConnection;
private final IJSchService fJSchService;
private final Map<String, String> fEnv = new HashMap<String, String>();
private final Map<String, String> fProperties = new HashMap<String, String>();
private final List<Session> fSessions = new ArrayList<Session>();
private final Map<String, String> fEnv = new HashMap<>();
private final Map<String, String> fProperties = new HashMap<>();
private final List<Session> fSessions = new ArrayList<>();
private ChannelSftp fSftpCommandChannel;
private boolean isFullySetup; // including sftp channel and environment
@ -897,6 +897,12 @@ public class JSchConnection implements IRemoteConnectionControlService, IRemoteC
encoding = executeCommand("locale charmap", subMon.newChild(10)); //$NON-NLS-1$
break;
case "qnx": //$NON-NLS-1$
osArch = executeCommand("uname -p", subMon.newChild(10)); //$NON-NLS-1$
osVersion = executeCommand("uname -r", subMon.newChild(10)); //$NON-NLS-1$
encoding = "UTF-8"; //$NON-NLS-1$
break;
default:
osVersion = "unknown"; //$NON-NLS-1$
osArch = "unknown"; //$NON-NLS-1$