java.lang.Object
org.glassfish.main.jdke.props.EnvToPropsConverter
Given a file, tries to resolve given keys to absolute paths.
- Author:
- David Matejcek
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EnvToPropsConverter
- Parameters:
relativePathAnchor- absolute path; will be normalized.
-
-
Method Details
-
convert
Tries to resolve given keys.- First tries
System.getProperty(String)using map value. - Then tries
System.getenv(String)using map key.
- Parameters:
envToSysMappings- - key is env name, value is system property name.- Returns:
- map of system property names and absolute files.
- First tries
-
convert
Tries to resolve given keys.- First tries
System.getProperty(String)using the second parameter. - Then tries
System.getenv(String)using the first parameter.
- Parameters:
envPropertyName- - can be null, then it is ignored.systemPropertyName- - can be null, then it is ignored.- Returns:
- file - there is no guarantee the file does exist.
- First tries
-