mirror of https://github.com/apache/maven.git
[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
This commit is contained in:
parent
d7d94af169
commit
b433187006
|
@ -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 + ")" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue