Class PropertyFileHelper


  • public class PropertyFileHelper
    extends Object
    Author:
    Daniel Bernstein
    • 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 check
        defaultPropertyFilePath - The default property file path