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:
Nik Everett 2017-12-13 09:32:44 -05:00
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");