[build] monkey-patching JDK 6 installation

This commit is contained in:
Roman Shevchenko
2018-03-16 18:16:51 +01:00
parent 8f97a2cced
commit 1338b4e538
+7
View File
@@ -113,6 +113,13 @@ task setupJdk16(dependsOn: configurations.jdk16) {
logger.info("Setting up JDK 1.6 to compile")
unpackJdk(jdkArchive.call(), outputDir)
deleteBrokenSymlink(outputDir)
if (!new File(outputDir, "bin").exists() && new File(outputDir, "jre/bin").exists()) {
copy {
from file(new File(outputDir, "jre/bin"))
into file(new File(outputDir, "bin"))
include 'java*'
}
}
}
}