maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: maven-wagon/wagon-api/src/main/java/org/apache/maven/wagon/events Debug.java
Date Sat, 06 Dec 2003 04:33:06 GMT
donaldp     2003/12/05 20:33:06

  Modified:    wagon-api/src/main/java/org/apache/maven/wagon/events
                        Debug.java
  Log:
  Remove fqn from javadocs
  
  Revision  Changes    Path
  1.5       +53 -43    maven-wagon/wagon-api/src/main/java/org/apache/maven/wagon/events/Debug.java
  
  Index: Debug.java
  ===================================================================
  RCS file: /home/cvs/maven-wagon/wagon-api/src/main/java/org/apache/maven/wagon/events/Debug.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Debug.java	2 Dec 2003 18:01:29 -0000	1.4
  +++ Debug.java	6 Dec 2003 04:33:06 -0000	1.5
  @@ -3,9 +3,9 @@
   /*
    * ====================================================================
    * The Apache Software License, Version 1.1
  - * 
  + *
    * Copyright (c) 2003 The Apache Software Foundation. All rights reserved.
  - * 
  + *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions are met: 1.
    * Redistributions of source code must retain the above copyright notice, this
  @@ -24,7 +24,7 @@
    * Products derived from this software may not be called "Apache", "Apache
    * Maven", nor may "Apache" appear in their name, without prior written
    * permission of the Apache Software Foundation.
  - * 
  + *
    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
    * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
    * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  @@ -36,22 +36,21 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    * ====================================================================
  - * 
  + *
    * This software consists of voluntary contributions made by many individuals
    * on behalf of the Apache Software Foundation. For more information on the
    * Apache Software Foundation, please see <http://www.apache.org/> .
  - * 
  + *
    * ====================================================================
    */
   
  -
   /**
    * @author <a href="michal.maczka@dimatics.com">Michal Maczka</a>
    * @version $Id$
    */
  -public class Debug implements SessionListener, TransferListener
  +public class Debug
  +    implements SessionListener, TransferListener
   {
  -
       long timestamp;
       long transfer;
   
  @@ -60,9 +59,7 @@
        */
       public void sessionOpening( final SessionEvent sessionEvent )
       {
  -
  -//System.out.println( .getUrl() + " - Session: Opening  ");
  -
  +        //System.out.println( .getUrl() + " - Session: Opening  ");
       }
   
       /**
  @@ -70,8 +67,9 @@
        */
       public void sessionOpened( final SessionEvent sessionEvent )
       {
  -        System.out.println( sessionEvent.getWagon().getRepository().getUrl() + " - Session:
Opened  " );
  -
  +        System.out.println(
  +            sessionEvent.getWagon().getRepository().getUrl() +
  +            " - Session: Opened  " );
       }
   
       /**
  @@ -79,17 +77,20 @@
        */
       public void sessionDisconnecting( final SessionEvent sessionEvent )
       {
  -        System.out.println(  sessionEvent.getWagon().getRepository().getUrl() + " - Session:
Disconnecting  " );
  +        System.out.println(
  +            sessionEvent.getWagon().getRepository().getUrl() +
  +            " - Session: Disconnecting  " );
   
       }
   
       /**
  -     * @see org.apache.maven.wagon.events.SessionListener#sessionDisconnected(org.apache.maven.wagon.events.SessionEvent)
  +     * @see SessionListener#sessionDisconnected(SessionEvent)
        */
       public void sessionDisconnected( final SessionEvent sessionEvent )
       {
  -        System.out.println( sessionEvent.getWagon().getRepository().getUrl() + " - Session:
Disconnected" );
  -
  +        System.out.println(
  +            sessionEvent.getWagon().getRepository().getUrl() +
  +            " - Session: Disconnected" );
       }
   
       /**
  @@ -97,7 +98,9 @@
        */
       public void sessionConnectionRefused( final SessionEvent sessionEvent )
       {
  -        System.out.println( sessionEvent.getWagon().getRepository().getUrl() + " - Session:
Connection refused" );
  +        System.out.println(
  +            sessionEvent.getWagon().getRepository().getUrl() +
  +            " - Session: Connection refused" );
   
       }
   
  @@ -106,7 +109,9 @@
        */
       public void sessionLoggedIn( final SessionEvent sessionEvent )
       {
  -        System.out.println(  sessionEvent.getWagon().getRepository().getUrl() + " - Session:
Logged in" );
  +        System.out.println(
  +            sessionEvent.getWagon().getRepository().getUrl() +
  +            " - Session: Logged in" );
   
       }
   
  @@ -115,12 +120,14 @@
        */
       public void sessionLoggedOff( final SessionEvent sessionEvent )
       {
  -        System.out.println(  sessionEvent.getWagon().getRepository().getUrl() + " - Session:
Logged off" );
  +        System.out.println(
  +            sessionEvent.getWagon().getRepository().getUrl() +
  +            " - Session: Logged off" );
   
       }
   
       /**
  -     * @see org.apache.maven.wagon.events.TransferListener#debug(java.lang.String)
  +     * @see TransferListener#debug(String)
        */
       public void debug( final String message )
       {
  @@ -129,35 +136,35 @@
       }
   
       /**
  -     * @see org.apache.maven.wagon.events.TransferListener#transferStarted(org.apache.maven.wagon.events.TransferEvent)
  +     * @see TransferListener#transferStarted(TransferEvent)
        */
       public void transferStarted( final TransferEvent transferEvent )
       {
           timestamp = transferEvent.getTimestamp();
           transfer = 0;
  -        if ( transferEvent.getRequestType() == TransferEvent.REQUEST_GET )
  +        if( transferEvent.getRequestType() == TransferEvent.REQUEST_GET )
           {
  -            System.out.println(
  -                    "Downloading: "
  -                    + transferEvent.getResource()
  -                    + " from "
  -                    + transferEvent.getWagon().getRepository().getUrl() );
  +            final String message = "Downloading: " +
  +                transferEvent.getResource() +
  +                " from " +
  +                transferEvent.getWagon().getRepository().getUrl();
  +            System.out.println( message );
               System.out.println( "" );
           }
           else
           {
  -            System.out.println(
  -                    "Uploading: "
  -                    + transferEvent.getResource()
  -                    + " to "
  -                    + transferEvent.getWagon().getRepository().getUrl() );
  +            final String message = "Uploading: " +
  +                transferEvent.getResource() +
  +                " to " +
  +                transferEvent.getWagon().getRepository().getUrl();
  +            System.out.println( message );
               System.out.println( "" );
   
           }
       }
   
       /**
  -     * @see org.apache.maven.wagon.events.TransferListener#transferProgress(org.apache.maven.wagon.events.TransferEvent)
  +     * @see TransferListener#transferProgress(TransferEvent)
        */
       public void transferProgress( final TransferEvent transferEvent )
       {
  @@ -169,20 +176,25 @@
       }
   
       /**
  -     * @see org.apache.maven.wagon.events.TransferListener#transferCompleted(org.apache.maven.wagon.events.TransferEvent)
  +     * @see TransferListener#transferCompleted(TransferEvent)
        */
       public void transferCompleted( final TransferEvent transferEvent )
       {
           final double duration =
  -                ( double ) ( transferEvent.getTimestamp() - timestamp ) / 1000;
  +            (double)( transferEvent.getTimestamp() - timestamp ) / 1000;
   
           System.out.println();
  -        System.out.println( "Transfer finished. " + transfer + " bytes copied in " + duration
+ " seconds" );
  +        final String message = "Transfer finished. " +
  +            transfer +
  +            " bytes copied in " +
  +            duration +
  +            " seconds";
  +        System.out.println( message );
   
       }
   
       /**
  -     * @see org.apache.maven.wagon.events.TransferListener#transferError(org.apache.maven.wagon.events.TransferEvent)
  +     * @see TransferListener#transferError(TransferEvent)
        */
       public void transferError( final TransferEvent transferEvent )
       {
  @@ -190,10 +202,8 @@
   
       }
   
  -    /*
  -     * (non-Javadoc)
  -     * 
  -     * @see org.apache.maven.wagon.events.SessionListener#connectionError(org.apache.maven.wagon.events.SessionEvent)
  +    /**
  +     * @see SessionListener#sessionError(SessionEvent)
        */
       public void sessionError( final SessionEvent sessionEvent )
       {
  
  
  

---------------------------------------------------------------------
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