暂时不能用的 @Config

This commit is contained in:
Izzel_Aliz
2018-04-05 13:56:24 +08:00
parent 96269db54d
commit 4bb5df7cbb
9 changed files with 218 additions and 28 deletions

View File

@@ -55,7 +55,7 @@ public class TDependency {
.url(dl == null ? url + "/" + groupId.replace('.', '/') + "/" +
artifactId + "/" + version + "/" + artifactId + "-" + version + ".jar" : dl)
.file(target)
.setThreads(8)
.setThreads(TLib.getTLib().getConfig().getDownloadPoolSize())
.setOnStart(event -> lock.lock())
.setOnConnected(event -> TLib.getTLib().getLogger().info(" 正在下载 " + String.join(":",
new String[]{groupId, artifactId, version}) +