Package org.duracloud.mill.util
Class PropertyFileHelper
- java.lang.Object
-
- org.duracloud.mill.util.PropertyFileHelper
-
public class PropertyFileHelper extends Object
- Author:
- Daniel Bernstein
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidloadFromSystemProperty(String propertyFileSystemProperty, String defaultPropertyFilePath)Ensures that a specified system property is set with a valid file path.
-
-
-
Method Detail
-
loadFromSystemProperty
public static void loadFromSystemProperty(String propertyFileSystemProperty, String defaultPropertyFilePath)
Ensures that a specified system property is set with a valid file path. If the system property is not set, the specified default value will set instead. If the resulting system property value does not resolve to an existing file, The system will exit after logging the error.- Parameters:
propertyFileSystemProperty- The system property to checkdefaultPropertyFilePath- The default property file path
-
-