2016-12-14 18:02:28 -05:00
|
|
|
File extrasDir = new File(settingsDir, '../..').getCanonicalFile()
|
|
|
|
if (extrasDir.name.endsWith('-extra') == false) {
|
2017-02-10 14:02:42 -05:00
|
|
|
throw new GradleException("x-pack-elasticsearch must be checked out under an elasticsearch-extra directory, found ${extrasDir.name}")
|
2016-12-14 18:02:28 -05:00
|
|
|
}
|
|
|
|
File elasticsearchDir = new File(extrasDir.parentFile, extrasDir.name[0..-7])
|
2015-11-23 17:18:07 -05:00
|
|
|
if (elasticsearchDir.exists() == false) {
|
2016-12-14 18:02:28 -05:00
|
|
|
throw new GradleException("${elasticsearchDir.name} is missing as a sibling to ${extrasDir.name}")
|
2015-11-23 17:18:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
project(':').projectDir = new File(elasticsearchDir, 'buildSrc')
|