|
@@ -38,14 +38,14 @@ import java.util.logging.Logger;
|
|
|
|
|
|
/**
|
|
/**
|
|
* Pulls in version info from the version.properties file.
|
|
* Pulls in version info from the version.properties file.
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @author Kirill Vainer
|
|
* @author Kirill Vainer
|
|
*/
|
|
*/
|
|
public class JmeVersion {
|
|
public class JmeVersion {
|
|
-
|
|
|
|
|
|
+
|
|
private static final Logger logger = Logger.getLogger(JmeVersion.class.getName());
|
|
private static final Logger logger = Logger.getLogger(JmeVersion.class.getName());
|
|
private static final Properties props = new Properties();
|
|
private static final Properties props = new Properties();
|
|
-
|
|
|
|
|
|
+
|
|
static {
|
|
static {
|
|
try {
|
|
try {
|
|
props.load(JmeVersion.class.getResourceAsStream("version.properties"));
|
|
props.load(JmeVersion.class.getResourceAsStream("version.properties"));
|
|
@@ -53,12 +53,12 @@ public class JmeVersion {
|
|
logger.log(Level.WARNING, "Unable to read version info!", ex);
|
|
logger.log(Level.WARNING, "Unable to read version info!", ex);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
public static final String BUILD_DATE = props.getProperty("build.date", "1900-01-01");
|
|
public static final String BUILD_DATE = props.getProperty("build.date", "1900-01-01");
|
|
public static final String BRANCH_NAME = props.getProperty("git.branch", "unknown");
|
|
public static final String BRANCH_NAME = props.getProperty("git.branch", "unknown");
|
|
public static final String GIT_HASH = props.getProperty("git.hash", "");
|
|
public static final String GIT_HASH = props.getProperty("git.hash", "");
|
|
public static final String GIT_SHORT_HASH = props.getProperty("git.hash.short", "");
|
|
public static final String GIT_SHORT_HASH = props.getProperty("git.hash.short", "");
|
|
- public static final String GIT_TAG = props.getProperty("git.tag", "");
|
|
|
|
|
|
+ public static final String GIT_TAG = props.getProperty("git.tag", "3.1-unknown");
|
|
public static final String VERSION_NUMBER = props.getProperty("version.number", "");
|
|
public static final String VERSION_NUMBER = props.getProperty("version.number", "");
|
|
public static final String VERSION_TAG = props.getProperty("version.tag", "");
|
|
public static final String VERSION_TAG = props.getProperty("version.tag", "");
|
|
public static final String VERSION_FULL = props.getProperty("version.full", "");
|
|
public static final String VERSION_FULL = props.getProperty("version.full", "");
|