mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 04:58:50 +00:00
2571921605
Original commit: elastic/x-pack-elasticsearch@5a908f5dcc
11 lines
544 B
Groovy
11 lines
544 B
Groovy
File extrasDir = new File(settingsDir, '../..').getCanonicalFile()
|
|
if (extrasDir.name.endsWith('-extra') == false) {
|
|
throw new GradleException("x-pack-elasticsearch must be checked out under an elasticsearch-extra directory, found ${extrasDir.name}")
|
|
}
|
|
File elasticsearchDir = new File(extrasDir.parentFile, extrasDir.name[0..-7])
|
|
if (elasticsearchDir.exists() == false) {
|
|
throw new GradleException("${elasticsearchDir.name} is missing as a sibling to ${extrasDir.name}")
|
|
}
|
|
|
|
project(':').projectDir = new File(elasticsearchDir, 'buildSrc')
|