Merge pull request #2199 from stianst/KEYCLOAK-2425

KEYCLOAK-2425
This commit is contained in:
Stian Thorgersen 2016-02-09 09:57:53 +01:00
commit 3ecdc9506e

View file

@ -45,14 +45,10 @@ public class Version {
Version.VERSION = props.getProperty("version"); Version.VERSION = props.getProperty("version");
Version.BUILD_TIME = props.getProperty("build-time"); Version.BUILD_TIME = props.getProperty("build-time");
Version.RESOURCES_VERSION = Version.VERSION.toLowerCase(); Version.RESOURCES_VERSION = Version.VERSION.toLowerCase();
if (Version.RESOURCES_VERSION.endsWith("-snapshot")) {
Version.RESOURCES_VERSION = Version.RESOURCES_VERSION.replace("-snapshot", "-" + Time.currentTime());
}
} catch (IOException e) { } catch (IOException e) {
Version.VERSION= Version.UNKNOWN; Version.VERSION = Version.UNKNOWN;
Version.BUILD_TIME= Version.UNKNOWN; Version.BUILD_TIME = Version.UNKNOWN;
} }
} }
} }