mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
timeout for JDK/JBRE downloading
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
def setupJbre = task setupJbre {}
|
||||
|
||||
def jdkRepo = 'https://cache-redirector.jetbrains.com/intellij-jdk'
|
||||
@@ -34,6 +36,7 @@ jrePlatformsToDownload(targetOs).each { platform ->
|
||||
src "$jdkRepo/${jbsdkArtifactName}.tar.gz"
|
||||
dest outputFile
|
||||
tempAndMove true
|
||||
timeout TimeUnit.MINUTES.toMillis(30).toInteger()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
task setupJdks(dependsOn: ['setupJdk18', 'setupJdk16'])
|
||||
cleanSetupJdks.dependsOn('cleanSetupJdk18', 'cleanSetupJdk16', 'cleanDownloadJdk18')
|
||||
@@ -24,6 +26,7 @@ task downloadJdk18 {
|
||||
src "$jdkRepo/intellij-jdk/${artifactName}"
|
||||
dest outputFile
|
||||
tempAndMove true
|
||||
timeout TimeUnit.MINUTES.toMillis(30).toInteger()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user