private Properties readPropertyFile ( String file ) throws IOException { String fileName = file . startsWith ( "/" ) ? file : "/" + file ; LOGGER . info ( "Reading properties from: " + fileName + ". Will try classpath, then file system." ) ; return Util . readProperties ( fileName ) ; }
read from classpath if not found read from file system . If not found there throw exception