Package org.duracloud.mill.util
Class PropertyFileHelper
java.lang.Object
org.duracloud.mill.util.PropertyFileHelper
- Author:
- Daniel Bernstein
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidloadFromSystemProperty(String propertyFileSystemProperty, String defaultPropertyFilePath) Ensures that a specified system property is set with a valid file path.
-
Method Details
-
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
-