我使用 Apache Ivy 进行依赖管理,只是想知道在下载某些东西时控制台中的这些点是什么意思。
这就是我的意思:
[ivy:retrieve] downloading http://www.smartclient.com/maven2/com/smartgwt/smartgwt/3.0/smartgwt-3.0.jar ...
[ivy:retrieve] ..............
[ivy:retrieve] ...................
[ivy:retrieve] .......................
[ivy:retrieve] ......
[ivy:retrieve] ..............
[ivy:retrieve] ..............
[ivy:retrieve] .....................
[ivy:retrieve] ........
stripped
[ivy:retrieve] ..... (10070kB)
[ivy:retrieve] [SUCCESSFUL ] com.smartgwt#smartgwt;3.0!smartgwt.jar (136197ms)
我在谷歌上搜索过,但没有找到定义。带宽?但有时它会写很长的行,甚至会结束。
最佳答案
圆点代表次数InputStream.read(byte[])
在下载工件时被调用(使用 64Kb 的字节数组大小)。
Ivy FileUtil
copy(InputStream, OutputStream, CopyProgressListener, boolean)
最终将工件字节传输到本地文件,然后通知 AntMessageLogger
下载进度。它的 doProgress()
方法发出 .
并有一条评论:
log with ant causes a new line -> we do it only once in a while
因此它试图将输出限制为大约每 1500 毫秒发出一条日志消息。
关于java - Apache Ivy 在下载东西时,点是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9162135/