mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-28 10:58:30 +00:00
Revert "Fix version parsing in SQL"
This reverts commit elastic/x-pack-elasticsearch@47020ed3aa. We're backing out all of SQL. Original commit: elastic/x-pack-elasticsearch@a3ef6b43f9
This commit is contained in:
parent
6ceee0be8f
commit
d33c537711
@ -76,7 +76,7 @@ public abstract class Version {
|
||||
String ver = "Unknown";
|
||||
String hash = ver;
|
||||
|
||||
if (urlStr.startsWith("file:/") && urlStr.endsWith(".jar")) {
|
||||
if (urlStr.startsWith("file:/") && urlStr.endsWith("-SNAPSHOT.jar")) {
|
||||
try (JarInputStream jar = new JarInputStream(url.openStream())) {
|
||||
Manifest manifest = jar.getManifest();
|
||||
hash = manifest.getMainAttributes().getValue("Change");
|
||||
|
Loading…
x
Reference in New Issue
Block a user