private void parseDefaultPropertyFileFromResource ( File potentialPropertyFile ) throws IOException , CommandLineParsingException { try ( InputStream resourceAsStream = getClass ( ) . getClassLoader ( ) . getResourceAsStream ( potentialPropertyFile . getAbsolutePath ( ) ) ) { if ( resourceAsStream != null ) { parsePropertiesFile ( resourceAsStream ) ; } } }
Open a property file that is embedded as a Java resource and parse it .