1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-13 03:05:39 +02:00

Bug 537575 - Set default locale if no locale command. Also updates

version to 3.0.1

Change-Id: I71e04586dc8dc0eed7b4dc899206ef70c2d5c939
Signed-off-by: Greg Watson <g.watson@computer.org>
This commit is contained in:
Greg Watson 2018-09-17 10:53:33 -04:00
parent 963f9fa93b
commit b1bdab816f
32 changed files with 50 additions and 38 deletions

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -74,6 +74,7 @@ public class JSchConnection implements IRemoteConnectionControlService, IRemoteC
public static final boolean DEFAULT_IS_PASSWORD = false; public static final boolean DEFAULT_IS_PASSWORD = false;
public static final boolean DEFAULT_USE_LOGIN_SHELL = true; public static final boolean DEFAULT_USE_LOGIN_SHELL = true;
public static final String DEFAULT_LOGIN_SHELL_COMMAND = "/bin/bash -l -c '{0}'"; //$NON-NLS-1$ public static final String DEFAULT_LOGIN_SHELL_COMMAND = "/bin/bash -l -c '{0}'"; //$NON-NLS-1$
public static final String DEFAULT_ENCODING = "UTF-8"; //$NON-NLS-1$
public static final String EMPTY_STRING = ""; //$NON-NLS-1$ public static final String EMPTY_STRING = ""; //$NON-NLS-1$
private String fWorkingDir; private String fWorkingDir;
@ -693,14 +694,18 @@ public class JSchConnection implements IRemoteConnectionControlService, IRemoteC
String osVersion; String osVersion;
String osArch; String osArch;
String encoding; String encoding = DEFAULT_ENCODING;
String osName = executeCommand("uname", subMon.newChild(10)); //$NON-NLS-1$ String osName = executeCommand("uname", subMon.newChild(10)); //$NON-NLS-1$
switch (osName.toLowerCase()) { switch (osName.toLowerCase()) {
case "linux": //$NON-NLS-1$ case "linux": //$NON-NLS-1$
osArch = executeCommand("uname -m", subMon.newChild(10)); //$NON-NLS-1$ osArch = executeCommand("uname -m", subMon.newChild(10)); //$NON-NLS-1$
osVersion = executeCommand("uname -r", subMon.newChild(10)); //$NON-NLS-1$ osVersion = executeCommand("uname -r", subMon.newChild(10)); //$NON-NLS-1$
encoding = executeCommand("locale charmap", subMon.newChild(10)); //$NON-NLS-1$ try {
encoding = executeCommand("locale charmap", subMon.newChild(10)); //$NON-NLS-1$
} catch (RemoteConnectionException e) {
// Use default
}
break; break;
case "darwin": //$NON-NLS-1$ case "darwin": //$NON-NLS-1$
@ -713,7 +718,11 @@ public class JSchConnection implements IRemoteConnectionControlService, IRemoteC
osArch = "x86_64"; //$NON-NLS-1$ osArch = "x86_64"; //$NON-NLS-1$
} }
} }
encoding = executeCommand("locale charmap", subMon.newChild(10)); //$NON-NLS-1$ try {
encoding = executeCommand("locale charmap", subMon.newChild(10)); //$NON-NLS-1$
} catch (RemoteConnectionException e) {
// Use default
}
break; break;
case "aix": //$NON-NLS-1$ case "aix": //$NON-NLS-1$
@ -728,13 +737,16 @@ public class JSchConnection implements IRemoteConnectionControlService, IRemoteC
osArch += "64"; //$NON-NLS-1$ osArch += "64"; //$NON-NLS-1$
} }
} }
encoding = executeCommand("locale charmap", subMon.newChild(10)); //$NON-NLS-1$ try {
encoding = executeCommand("locale charmap", subMon.newChild(10)); //$NON-NLS-1$
} catch (RemoteConnectionException e) {
// Use default
}
break; break;
case "qnx": //$NON-NLS-1$ case "qnx": //$NON-NLS-1$
osArch = executeCommand("uname -p", subMon.newChild(10)); //$NON-NLS-1$ osArch = executeCommand("uname -p", subMon.newChild(10)); //$NON-NLS-1$
osVersion = executeCommand("uname -r", subMon.newChild(10)); //$NON-NLS-1$ osVersion = executeCommand("uname -r", subMon.newChild(10)); //$NON-NLS-1$
encoding = "UTF-8"; //$NON-NLS-1$
break; break;
default: default:

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -2,7 +2,7 @@
<feature <feature
id="org.eclipse.remote" id="org.eclipse.remote"
label="%featureName" label="%featureName"
version="3.0.0.qualifier" version="3.0.1.qualifier"
provider-name="%providerName" provider-name="%providerName"
license-feature="org.eclipse.license" license-feature="org.eclipse.license"
license-feature-version="0.0.0"> license-feature-version="0.0.0">

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -2,7 +2,7 @@
<feature <feature
id="org.eclipse.remote.console" id="org.eclipse.remote.console"
label="%featureName" label="%featureName"
version="3.0.0.qualifier" version="3.0.1.qualifier"
provider-name="%providerName" provider-name="%providerName"
license-feature="org.eclipse.license" license-feature="org.eclipse.license"
license-feature-version="0.0.0"> license-feature-version="0.0.0">

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -2,7 +2,7 @@
<feature <feature
id="org.eclipse.remote.proxy" id="org.eclipse.remote.proxy"
label="%featureName" label="%featureName"
version="3.0.0.qualifier" version="3.0.1.qualifier"
provider-name="%providerName" provider-name="%providerName"
license-feature="org.eclipse.license" license-feature="org.eclipse.license"
license-feature-version="0.0.0"> license-feature-version="0.0.0">

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -2,7 +2,7 @@
<feature <feature
id="org.eclipse.remote.serial" id="org.eclipse.remote.serial"
label="%featureName" label="%featureName"
version="3.0.0.qualifier" version="3.0.1.qualifier"
provider-name="%providerName" provider-name="%providerName"
license-feature="org.eclipse.license" license-feature="org.eclipse.license"
license-feature-version="0.0.0"> license-feature-version="0.0.0">

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -2,7 +2,7 @@
<feature <feature
id="org.eclipse.remote.telnet" id="org.eclipse.remote.telnet"
label="%featureName" label="%featureName"
version="3.0.0.qualifier" version="3.0.1.qualifier"
provider-name="%providerName" provider-name="%providerName"
license-feature="org.eclipse.license" license-feature="org.eclipse.license"
license-feature-version="0.0.0"> license-feature-version="0.0.0">

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -10,12 +10,12 @@
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>Remote Parent</name> <name>Remote Parent</name>
<properties> <properties>
<remote-release>3.0.0</remote-release> <remote-release>3.0.1</remote-release>
<tycho-version>1.1.0</tycho-version> <tycho-version>1.1.0</tycho-version>
<tycho-extras-version>${tycho-version}</tycho-extras-version> <tycho-extras-version>${tycho-version}</tycho-extras-version>
<tycho.scmUrl>scm:git:git://git.eclipse.org/gitroot/ptp/org.eclipse.remote.git</tycho.scmUrl> <tycho.scmUrl>scm:git:git://git.eclipse.org/gitroot/ptp/org.eclipse.remote.git</tycho.scmUrl>
@ -161,7 +161,7 @@
<artifact> <artifact>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>org.eclipse.remote.target</artifactId> <artifactId>org.eclipse.remote.target</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<classifier>photon</classifier> <classifier>photon</classifier>
</artifact> </artifact>
</target> </target>

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -7,7 +7,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../../releng/org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>

View file

@ -7,7 +7,7 @@
<parent> <parent>
<groupId>org.eclipse.remote</groupId> <groupId>org.eclipse.remote</groupId>
<artifactId>remote-parent</artifactId> <artifactId>remote-parent</artifactId>
<version>3.0.0-SNAPSHOT</version> <version>3.0.1-SNAPSHOT</version>
<relativePath>../org.eclipse.remote.build/pom.xml</relativePath> <relativePath>../org.eclipse.remote.build/pom.xml</relativePath>
</parent> </parent>