From b433187006c1a336e169b0c8cc8c1de4f0de9209 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Mon, 15 Mar 2010 22:00:54 +0000 Subject: [PATCH] [MNG-4591] Enhance the download rate output to include downloaded file name git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@923457 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/cli/AbstractMavenTransferListener.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/AbstractMavenTransferListener.java b/maven-embedder/src/main/java/org/apache/maven/cli/AbstractMavenTransferListener.java index 455031b384..312ec53f6b 100644 --- a/maven-embedder/src/main/java/org/apache/maven/cli/AbstractMavenTransferListener.java +++ b/maven-embedder/src/main/java/org/apache/maven/cli/AbstractMavenTransferListener.java @@ -128,8 +128,8 @@ public abstract class AbstractMavenTransferListener 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 AbstractMavenTransferListener throughput = " at " + format.format( kbPerSec ) + " KB/sec"; } - out.println( l + " " + type + throughput ); + out.println( type + ": " + artifact.getUrl() + " (" + len + throughput + ")" ); } }