Externalized Strings
diff --git a/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh/Client.java b/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh/Client.java index 79e565c..4985e74 100644 --- a/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh/Client.java +++ b/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh/Client.java
@@ -431,7 +431,7 @@ */ public void disconnect() throws IOException { if (Policy.DEBUG_SSH_PROTOCOL) { - System.out.println("Disconnecting."); + System.out.println("Disconnecting."); //$NON-NLS-1$ } if (connected) { connected = false; @@ -663,7 +663,7 @@ BigInteger host_e = new BigInteger(1, host_key_public_exponent); BigInteger host_n = new BigInteger(1, host_key_public_modulus); if (!new KnownHosts().verifyKey(host, host_key_bits, host_e, host_n)) { - throw new CVSAuthenticationException(Policy.bind("Client.hostIdChanged")); + throw new CVSAuthenticationException(Policy.bind("Client.hostIdChanged")); //$NON-NLS-1$ }; byte[] result; if (new BigInteger(1,server_key_public_modulus).compareTo(host_n) == -1) {
diff --git a/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh/KnownHosts.java b/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh/KnownHosts.java index 1fa26e5..2931b3b 100644 --- a/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh/KnownHosts.java +++ b/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh/KnownHosts.java Binary files differ
diff --git a/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh/messages.properties b/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh/messages.properties index 2ee8ca4..37babdf 100644 --- a/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh/messages.properties +++ b/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh/messages.properties
@@ -28,3 +28,4 @@ Misc.missingMD5=The MD5 encryption algorithm is required but not available: {0} +SSHSessionPool.AuthenticationFailed=Authentication failed
diff --git a/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh2/SSH2ServerConnection.java b/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh2/SSH2ServerConnection.java index c7c1b6f..dfaca22 100644 --- a/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh2/SSH2ServerConnection.java +++ b/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh2/SSH2ServerConnection.java
@@ -36,7 +36,7 @@ public void open(IProgressMonitor monitor) throws IOException, CVSAuthenticationException { ConnectionProgressMonitor innerMonitor = new ConnectionProgressMonitor(monitor); Session session = SSHPlugin.getPlugin().getPool().getSession(location, password, innerMonitor); - channel=(ChannelExec) session.openChannel("exec"); + channel=(ChannelExec) session.openChannel("exec"); //$NON-NLS-1$ ((ChannelExec)channel).setCommand(INVOKE_SVR_CMD); channel.connect(); inputStream = channel.getInputStream();
diff --git a/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh2/SSHSessionPool.java b/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh2/SSHSessionPool.java index 293435a..796570c 100644 --- a/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh2/SSHSessionPool.java +++ b/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh2/SSHSessionPool.java
@@ -19,6 +19,7 @@ .CVSAuthenticationException; import com.jcraft.jsch.*; +import org.eclipse.team.internal.ccvs.ssh.Policy; /** * A pool of active SSH connections. @@ -52,7 +53,7 @@ } catch (UnknownHostException ex) { throw ex; } catch (AuthenticationException ex) { - throw new CVSAuthenticationException("Authentication failed"); + throw new CVSAuthenticationException(Policy.bind("SSHSessionPool.AuthenticationFailed")); //$NON-NLS-1$ } catch (Exception ex) { throw new IOException(ex.getMessage()); }