commit
64f2f84ffa
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
package org.keycloak;
|
package org.keycloak;
|
||||||
|
|
||||||
import org.codehaus.jackson.annotate.JsonProperty;
|
import org.codehaus.jackson.annotate.JsonProperty;
|
||||||
|
import org.keycloak.util.Time;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
@ -28,6 +29,9 @@ public class Version {
|
||||||
VERSION = props.getProperty("version");
|
VERSION = props.getProperty("version");
|
||||||
BUILD_TIME = props.getProperty("build-time");
|
BUILD_TIME = props.getProperty("build-time");
|
||||||
RESOURCES_VERSION = VERSION.toLowerCase();
|
RESOURCES_VERSION = VERSION.toLowerCase();
|
||||||
|
if (RESOURCES_VERSION.endsWith("-snapshot")) {
|
||||||
|
RESOURCES_VERSION = RESOURCES_VERSION.replace("-snapshot", "-" + Time.currentTime());
|
||||||
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
VERSION=UNKNOWN;
|
VERSION=UNKNOWN;
|
||||||
BUILD_TIME=UNKNOWN;
|
BUILD_TIME=UNKNOWN;
|
||||||
|
|
Loading…
Reference in a new issue