@ Nullable public static String searchPropertiesFile ( String propertiesFile , String [ ] confPathList ) { if ( propertiesFile == null || confPathList == null ) { return null ; } for ( String path : confPathList ) { String file = PathUtils . concatPath ( path , propertiesFile ) ; Properties properties = loadPropertiesFromFile ( file ) ; if ( properties != null ) { // If a site conf is successfully loaded, stop trying different paths. return file ; } } return null ; }
Searches the given properties file from a list of paths .