Package org.frankframework.util
Class Environment
java.lang.Object
org.frankframework.util.Environment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Properties
static Manifest
getManifest
(URL jarFileLocation) static String
getModuleVersion
(String module) Get FF module version based on the pom.properties file.getSystemProperty
(String property, String def) Look up the property in the environment withSystem.getenv(String)
and next in the System properties withSystem.getProperty(String, String)
.
-
Constructor Details
-
Environment
public Environment()
-
-
Method Details
-
getEnvironmentVariables
- Throws:
IOException
-
getSystemProperty
Look up the property in the environment withSystem.getenv(String)
and next in the System properties withSystem.getProperty(String, String)
. TheSecurityException
if thrown, is hidden.- Parameters:
property
- The property to search for.def
- The default value to return, may benull
.- Returns:
- the string value of the system property, or the default value if
there is no property with that property.
May return
null
if the default value wasnull
. - Since:
- 1.1
-
getModuleVersion
Get FF module version based on the pom.properties file.- Parameters:
module
- name of the module to fetch the version- Returns:
- module version or null if not found
-
getManifest
- Throws:
IOException
-