mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
Delete jdk extract dir before extracting (#40471)
This commit first deletes the directory we extract the bundled jdk into in order to make gradle's copy task happy.
This commit is contained in:
parent
e49ba6a9d9
commit
562ebaefa6
@ -248,8 +248,12 @@ for (String platform : ['linux', 'darwin', 'windows']) {
|
||||
}
|
||||
it.includeEmptyDirs false
|
||||
}
|
||||
String extractDir = "${buildDir}/jdks/openjdk-${jdkVersion}_${platform}"
|
||||
project.task("extract${platform.capitalize()}Jdk", type: Copy) {
|
||||
into "${buildDir}/jdks/openjdk-${jdkVersion}_${platform}"
|
||||
doFirst {
|
||||
project.delete(extractDir)
|
||||
}
|
||||
into extractDir
|
||||
if (extension.equals('zip')) {
|
||||
from({ zipTree(jdkConfig.singleFile) }, removeRootDir)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user