mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 13:31:28 +07:00
External dependencies: cleanup broken symlink while unpacking jdk 1.6
This commit is contained in:
@@ -120,8 +120,20 @@ task setupJdk16(dependsOn: configurations.jdk16) {
|
||||
doLast {
|
||||
logger.info("Setting up JDK 1.6 to compile")
|
||||
unpackJdk(jdkArchive.call(), outputDir)
|
||||
deleteBrokenSymlink(outputDir)
|
||||
}
|
||||
}
|
||||
|
||||
// Gradle dies on tring to process broken links: https://issues.gradle.org/browse/GRADLE-1843
|
||||
private void deleteBrokenSymlink(def outputDir) {
|
||||
if (org.gradle.internal.os.OperatingSystem.current().isMacOsX()) {
|
||||
def pluginJar = file("$outputDir/Home/lib/plugin.jar")
|
||||
if (!pluginJar.exists()) {
|
||||
pluginJar.delete()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
setupJdk16.onlyIf { inJetBrainsNetwork }
|
||||
|
||||
def intellijProjectDir() {
|
||||
|
||||
Reference in New Issue
Block a user