avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/altrmi/lib jsch-0-0-11.jar jsch-0-0-9.jar
Date Tue, 28 Jan 2003 04:46:56 GMT
hammant     2003/01/27 20:46:56

  Modified:    altrmi   default.properties
               altrmi/src/java/org/apache/excalibur/altrmi/client/impl/socket
                        AbstractSocketStreamSSHInvocationHandler.java
                        DefaultUserInfo.java
               altrmi/src/test/org/apache/excalibur/altrmi/test/socket
                        CustomStreamSSHTestCase.java
  Added:       altrmi/lib jsch-0-0-11.jar
  Removed:     altrmi/lib jsch-0-0-9.jar
  Log:
  JSch now connecting.
  
  Revision  Changes    Path
  1.25      +1 -1      jakarta-avalon-excalibur/altrmi/default.properties
  
  Index: default.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/default.properties,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- default.properties	23 Jan 2003 22:57:06 -0000	1.24
  +++ default.properties	28 Jan 2003 04:46:55 -0000	1.25
  @@ -34,7 +34,7 @@
   jakarta-bcel.jar=./lib/bcel.jar
   cornerstone-api.jar=./lib/cornerstone-api.jar
   phoenix-client.jar=./lib/phoenix-client.jar
  -jsch.jar=./lib/jsch-0-0-9.jar
  +jsch.jar=./lib/jsch-0-0-11.jar
   jakarta-commons-attributes.jar=./lib/commons-attributes-0.1.jar
   jakarta-commons-httpclient.jar=./lib/commons-httpclient.jar
   jakarta-commons-logging.jar=./lib/commons-logging.jar
  
  
  
  1.5       +5 -1      jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/client/impl/socket/AbstractSocketStreamSSHInvocationHandler.java
  
  Index: AbstractSocketStreamSSHInvocationHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/client/impl/socket/AbstractSocketStreamSSHInvocationHandler.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AbstractSocketStreamSSHInvocationHandler.java	9 Jan 2003 22:55:10 -0000	1.4
  +++ AbstractSocketStreamSSHInvocationHandler.java	28 Jan 2003 04:46:55 -0000	1.5
  @@ -71,10 +71,12 @@
           }
           catch (IOException ioe)
           {
  +            ioe.printStackTrace();
               throw new ConnectionException("Some problem with sockets.", ioe);
           }
           catch (JSchException e)
           {
  +            e.printStackTrace();
               throw new ConnectionException("Cannot open SSH Connection.", e);
   
           }
  @@ -114,6 +116,8 @@
       private void connectToSSHAndPort() throws JSchException, IOException, ConnectionException
       {
           JSch jsch = new JSch();
  +        System.out.println("--> connecting to" + m_host);
  +        System.out.println("--> connecting as" + m_userID);
           Session session = jsch.getSession(m_host, 22);
           session.setUserInfo(new DefaultUserInfo(m_userID, m_password));
           session.connect();
  
  
  
  1.2       +10 -4     jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/client/impl/socket/DefaultUserInfo.java
  
  Index: DefaultUserInfo.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/client/impl/socket/DefaultUserInfo.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultUserInfo.java	9 Jan 2003 22:55:29 -0000	1.1
  +++ DefaultUserInfo.java	28 Jan 2003 04:46:55 -0000	1.2
  @@ -55,17 +55,23 @@
   
       public boolean promptNameAndPassword(String s)
       {
  -        return false;
  +        //TODO
  +        //System.out.println("--> [prompt]" + s);
  +        return true;
       }
   
       public boolean promptNameAndPassphrase(String s)
       {
  -        return false;
  +        //TODO
  +        //System.out.println("--> [prompt]" + s);
  +        return true;
       }
   
       public boolean prompt(String s)
       {
  -        return false;
  +        //TODO
  +        //System.out.println("--> [prompt]" + s);
  +        return true;
       }
   
       public boolean retry()
  
  
  
  1.3       +2 -1      jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/socket/CustomStreamSSHTestCase.java
  
  Index: CustomStreamSSHTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/src/test/org/apache/excalibur/altrmi/test/socket/CustomStreamSSHTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CustomStreamSSHTestCase.java	28 Jan 2003 00:10:08 -0000	1.2
  +++ CustomStreamSSHTestCase.java	28 Jan 2003 04:46:55 -0000	1.3
  @@ -51,7 +51,8 @@
           try
           {
   
  -            altrmiFactory.setHostContext(new SocketCustomStreamSSHHostContext("127.0.0.1",
10101, "@SSH-USERID@", "@SSH-PASSWD@"), false);
  +            altrmiFactory.setHostContext(
  +                    new SocketCustomStreamSSHHostContext("127.0.0.1", 10101, "@SSH-USERID@",
"@SSH-PASSWD@"), false);
           }
           catch (ConnectionException e)
           {
  
  
  
  1.1                  jakarta-avalon-excalibur/altrmi/lib/jsch-0-0-11.jar
  
  	<<Binary file>>
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message