19 package org.sleuthkit.autopsy.coreutils;
21 import java.io.IOException;
22 import java.io.InputStream;
23 import java.util.Properties;
41 if (versionProperties != null) {
45 versionProperties =
new Properties();
47 InputStream inputStream =
Version.class.getResourceAsStream(
"Version.properties");
48 versionProperties.load(inputStream);
49 }
catch (IOException e) {
50 versionProperties = null;
57 if (versionProperties == null) {
60 return versionProperties.getProperty(property);
89 return Type.valueOf(valueProp);
93 return System.getProperty(
"java.runtime.version");
97 return System.getProperty(
"netbeans.buildnumber");
101 return System.getProperty(
"netbeans.productversion");
static Version.Type getBuildType()
static String getVersionProperty(String property)
static Properties versionProperties
static String getNetbeansBuild()
static String getJavaRuntimeVersion()
static String getNetbeansProductVersion()
static String getVersion()
static void loadVersionProperty()