maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: maven-wagon/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh ScpWagon.java
Date Mon, 06 Dec 2004 10:55:58 GMT
brett       2004/12/06 02:55:58

  Modified:    wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh
                        ScpWagon.java
  Log:
  backporting from maven-artifact-plugin: only disconnect if not null
  
  Revision  Changes    Path
  1.3       +5 -2      maven-wagon/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java
  
  Index: ScpWagon.java
  ===================================================================
  RCS file: /home/cvs/maven-wagon/wagon-providers/wagon-ssh/src/main/java/org/apache/maven/wagon/providers/ssh/ScpWagon.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ScpWagon.java	23 Nov 2004 11:12:23 -0000	1.2
  +++ ScpWagon.java	6 Dec 2004 10:55:58 -0000	1.3
  @@ -193,7 +193,10 @@
   
       public void closeConnection()
       {
  -        session.disconnect();
  +        if ( session != null )
  +        {
  +            session.disconnect();
  +        }
       }
   
       public void executeCommand( String command )
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-cvs-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-cvs-help@maven.apache.org


Mime
View raw message