maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r923457 - /maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/AbstractMavenTransferListener.java
Date Mon, 15 Mar 2010 22:00:55 GMT
Author: bentmann
Date: Mon Mar 15 22:00:54 2010
New Revision: 923457

URL: http://svn.apache.org/viewvc?rev=923457&view=rev
Log:
[MNG-4591] Enhance the download rate output to include downloaded file name

Modified:
    maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/AbstractMavenTransferListener.java

Modified: maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/AbstractMavenTransferListener.java
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/AbstractMavenTransferListener.java?rev=923457&r1=923456&r2=923457&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/AbstractMavenTransferListener.java
(original)
+++ maven/maven-3/trunk/maven-embedder/src/main/java/org/apache/maven/cli/AbstractMavenTransferListener.java
Mon Mar 15 22:00:54 2010
@@ -128,8 +128,8 @@ public abstract class AbstractMavenTrans
         if ( contentLength >= 0 )
         {
             String type =
-                ( transferEvent.getRequestType() == ArtifactTransferEvent.REQUEST_PUT ? "uploaded"
: "downloaded" );
-            String l = contentLength >= 1024 ? toKB( contentLength ) + " KB" : contentLength
+ " B";
+                ( transferEvent.getRequestType() == ArtifactTransferEvent.REQUEST_PUT ? "Uploaded"
: "Downloaded" );
+            String len = contentLength >= 1024 ? toKB( contentLength ) + " KB" : contentLength
+ " B";
 
             String throughput = "";
             long duration = System.currentTimeMillis() - artifact.getTransferStartTime();
@@ -140,7 +140,7 @@ public abstract class AbstractMavenTrans
                 throughput = " at " + format.format( kbPerSec ) + " KB/sec";
             }
 
-            out.println( l + " " + type + throughput );
+            out.println( type + ": " + artifact.getUrl() + " (" + len + throughput + ")"
);
         }
     }
 



Mime
View raw message