KEYCLOAK-2425

Replacing SNAPSHOT with timestamp in /auth/resources/<VERSION> path doesn't work well with load balancing
This commit is contained in:
Stian Thorgersen 2016-02-09 09:02:51 +01:00
parent 5ff266b148
commit cc7f755fe9

View file

@ -45,14 +45,10 @@ public class Version {
Version.VERSION = props.getProperty("version");
Version.BUILD_TIME = props.getProperty("build-time");
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) {
Version.VERSION= Version.UNKNOWN;
Version.BUILD_TIME= Version.UNKNOWN;
Version.VERSION = Version.UNKNOWN;
Version.BUILD_TIME = Version.UNKNOWN;
}
}
}