You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wagon-commits@maven.apache.org by ev...@apache.org on 2004/07/05 14:35:03 UTC

cvs commit: maven-wagon/wagon-providers/ftp/src/main/java/org/apache/maven/wagon/providers/ftp FtpWagon.java

evenisse    2004/07/05 05:35:03

  Modified:    wagon-providers/ftp/src/main/java/org/apache/maven/wagon/providers/ftp
                        FtpWagon.java
  Log:
  fireSessionDebug is now accessible for PrintCommandListener
  
  Revision  Changes    Path
  1.7       +12 -4     maven-wagon/wagon-providers/ftp/src/main/java/org/apache/maven/wagon/providers/ftp/FtpWagon.java
  
  Index: FtpWagon.java
  ===================================================================
  RCS file: /home/cvs/maven-wagon/wagon-providers/ftp/src/main/java/org/apache/maven/wagon/providers/ftp/FtpWagon.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- FtpWagon.java	3 Jun 2004 18:31:25 -0000	1.6
  +++ FtpWagon.java	5 Jul 2004 12:35:03 -0000	1.7
  @@ -57,7 +57,7 @@
   
           ftp = new FTPClient();
   
  -        ftp.addProtocolCommandListener( new PrintCommandListener() );
  +        ftp.addProtocolCommandListener( new PrintCommandListener( this ) );
   
           try
           {
  @@ -263,22 +263,30 @@
           return is;
       }
   
  +    protected void fireSessionDebug( String message )
  +    {
  +        super.fireSessionDebug( message );
  +    }
  +    
       public class PrintCommandListener
           implements ProtocolCommandListener
       {
  -        public PrintCommandListener()
  +        FtpWagon wagon;
  +
  +        public PrintCommandListener( FtpWagon wagon )
           {
  +            this.wagon = wagon;
           }
   
           public void protocolCommandSent( ProtocolCommandEvent event )
           {
  -            fireSessionDebug( "Command sent: " + event.getMessage() );
  +            wagon.fireSessionDebug( "Command sent: " + event.getMessage() );
   
           }
   
           public void protocolReplyReceived( ProtocolCommandEvent event )
           {
  -            fireSessionDebug( "Reply received: " + event.getMessage() );
  +            wagon.fireSessionDebug( "Reply received: " + event.getMessage() );
           }
       }
   }
  
  
  

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