Notice to GitKraken users: A vulnerability has been found in the SSH key generation of GitKraken versions 7.6.0 to 8.0.0 ( If you use GitKraken and have generated a SSH key using one of these versions, please remove it both from your local workstation and from your LRZ GitLab profile.

21.10.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 15bcf188 authored by Jakob Schöttl's avatar Jakob Schöttl
Browse files

Use Version class in HashGenerator

parent 3a7950ba
......@@ -2,6 +2,8 @@ package;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.vadere.simulator.entrypoints.Version;
import java.util.Scanner;
......@@ -9,7 +11,6 @@ public class HashGenerator {
private static Logger logger = LogManager.getLogger(HashGenerator.class);
private static final String CURRENT_RELEASE_NUMBER_RESOURCE = "/current_release_number.txt";
private static final String CURRENT_COMMIT_HASH_RESOURCE = "/current_commit_hash.txt";
public static boolean isCommitHashAvailable() {
......@@ -28,14 +29,7 @@ public class HashGenerator {
public static String releaseNumber() {
String releaseNumber = getFirstStringTokenFromResource(CURRENT_RELEASE_NUMBER_RESOURCE);
if (releaseNumber == null) {
releaseNumber = "warning: no release number";
logger.warn("No release number found. The project will not contain software release version.");
return releaseNumber;
return Version.latest().label();
private static String getFirstStringTokenFromResource(String resource) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment