Class Environment
java.lang.Object
org.frankframework.util.Environment
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractPath(URL url) Cleanup an URL, removes the protocol and decodes the URL.static Propertiesstatic @NonNull ManifestgetManifest(@NonNull URL jarFileLocation) static @Nullable StringgetModuleVersion(@NonNull String module) Get FF module version based on the pom.properties file.getSystemProperty(String property) Look up the property in the environment withSystem.getenv(String)and next in the System properties withSystem.getProperty(String, String).
-
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). TheSecurityExceptionif thrown, is hidden.- Parameters:
property- The property to search for.- Returns:
- the string value of the system property, or the default value if
there is no property with that property.
May return
nullif the default value wasnull. - Since:
- 1.1
-
getModuleVersion
-
getManifest
- Throws:
IOException
-
extractPath
Cleanup an URL, removes the protocol and decodes the URL.- Throws:
IOException
-