commit
3ecdc9506e
1 changed files with 2 additions and 6 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue