mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 14:26:27 +00:00
Remove hacky node version check in NodeInfo
This commit removes a hacky way of checking that a node is running Elasticsearch 5.x when starting standalone nodes in tests. Relates #25406
This commit is contained in:
parent
5de406debb
commit
22beb8d03c
@ -19,6 +19,7 @@
|
||||
package org.elasticsearch.gradle.test
|
||||
|
||||
import org.apache.tools.ant.taskdefs.condition.Os
|
||||
import org.elasticsearch.gradle.Version
|
||||
import org.gradle.api.InvalidUserDataException
|
||||
import org.gradle.api.Project
|
||||
|
||||
@ -158,7 +159,7 @@ class NodeInfo {
|
||||
}
|
||||
}
|
||||
env.put('ES_JVM_OPTIONS', new File(confDir, 'jvm.options'))
|
||||
if (nodeVersion.startsWith("5.")) {
|
||||
if (Version.fromString(nodeVersion).major == 5) {
|
||||
args.addAll("-E", "path.conf=${confDir}")
|
||||
} else {
|
||||
args.addAll("--path.conf", "${confDir}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user