mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Dependencies: use Gradle file operations to remove outdated JDK
it throws an exception in case of any problems
This commit is contained in:
@@ -43,9 +43,7 @@ task setupJdk18(dependsOn: downloadJdk18) {
|
||||
def unpackJdk(jdkArchive, outputDir) {
|
||||
logger.info("Unpacking $jdkArchive to ${outputDir}")
|
||||
if (file(outputDir).exists()) {
|
||||
if (!file(outputDir).deleteDir()) {
|
||||
throw new Exception("unpackJdk: Unable to delete folder: $outputDir")
|
||||
}
|
||||
delete(outputDir)
|
||||
}
|
||||
def currentOs = org.gradle.internal.os.OperatingSystem.current()
|
||||
if (currentOs.isWindows()) {
|
||||
|
||||
Reference in New Issue
Block a user