mirror of https://github.com/apache/maven.git
o Fixed transfer progress output
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@881524 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b48f4f4e49
commit
669ab43ef2
|
@ -46,19 +46,19 @@ class ConsoleMavenTransferListener
|
||||||
// TODO [BP]: Sys.out may no longer be appropriate, but will \r work with getLogger()?
|
// TODO [BP]: Sys.out may no longer be appropriate, but will \r work with getLogger()?
|
||||||
if ( total >= 1024 )
|
if ( total >= 1024 )
|
||||||
{
|
{
|
||||||
out.print( toKB( complete ) + "/" + toKB( total ) + " KB" + "\r" );
|
out.print( toKB( complete ) + "/" + toKB( total ) + " KB " + "\r" );
|
||||||
}
|
}
|
||||||
else if ( total >= 0 )
|
else if ( total >= 0 )
|
||||||
{
|
{
|
||||||
out.print( complete + "/" + total + " B" + "\r" );
|
out.print( complete + "/" + total + " B " + "\r" );
|
||||||
}
|
}
|
||||||
else if ( complete >= 1024 )
|
else if ( complete >= 1024 )
|
||||||
{
|
{
|
||||||
out.print( toKB( complete ) + " KB" + "\r" );
|
out.print( toKB( complete ) + " KB " + "\r" );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
out.print( complete + " B" + "\r" );
|
out.print( complete + " B " + "\r" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue