liquibase-core/src/main/java/liquibase/integration/commandline/Main.java
private void parseDefaultPropertyFileFromResource(File potentialPropertyFile) throws IOException,
            CommandLineParsingException {
        try (InputStream resourceAsStream = getClass().getClassLoader().getResourceAsStream
                (potentialPropertyFile.getAbsolutePath())) {
            if (resourceAsStream != null) {
                parsePropertiesFile(resourceAsStream);
            }
        }
    }
private void parseDefaultPropertyFileFromResource(File potentialPropertyFile) throws IOException,
            CommandLineParsingException {
        try (InputStream resourceAsStream = getClass().getClassLoader().getResourceAsStream
                (potentialPropertyFile.getAbsolutePath())) {
            if (resourceAsStream != null) {
                parsePropertiesFile(resourceAsStream);
            }
        }
    }
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.

@param potentialPropertyFile location and file name of the property file
@throws IOException                 if the file cannot be opened
@throws CommandLineParsingException if an error occurs during parsing
Open a property file that is embedded as a Java resource and parse it .