Revert "Revert "Fix version parsing in SQL""

This reverts commit elastic/x-pack-elasticsearch@a3ef6b43f9.

We'll merge this when we're good and ready.

Original commit: elastic/x-pack-elasticsearch@06d1e3311d
This commit is contained in:
Nik Everett 2017-12-13 10:19:54 -05:00
parent cdfe0f1f5a
commit e170021037
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ public abstract class Version {
String ver = "Unknown";
String hash = ver;
if (urlStr.startsWith("file:/") && urlStr.endsWith("-SNAPSHOT.jar")) {
if (urlStr.startsWith("file:/") && urlStr.endsWith(".jar")) {
try (JarInputStream jar = new JarInputStream(url.openStream())) {
Manifest manifest = jar.getManifest();
hash = manifest.getMainAttributes().getValue("Change");