liquibase-core/src/main/java/liquibase/integration/commandline/Main.java
protected void parseDefaultPropertyFiles() throws CommandLineParsingException {
        File[] potentialPropertyFiles = new File[2];

        potentialPropertyFiles[0] = new File(defaultsFile);
        String localDefaultsPathName = defaultsFile.replaceFirst("(\\.[^\\.]+)$", ".local$1");
        potentialPropertyFiles[1] = new File(localDefaultsPathName);

        for (File potentialPropertyFile : potentialPropertyFiles) {

            try {
                if (potentialPropertyFile.exists()) {
                    parseDefaultPropertyFileFromFile(potentialPropertyFile);
                } else {
                    parseDefaultPropertyFileFromResource(potentialPropertyFile);
                }
            } catch (IOException e) {
                throw new CommandLineParsingException(e);
            }
        }
    }
protected void parseDefaultPropertyFiles() throws CommandLineParsingException {
        File[] potentialPropertyFiles = new File[2];

        potentialPropertyFiles[0] = new File(defaultsFile);
        String localDefaultsPathName = defaultsFile.replaceFirst("(\\.[^\\.]+)$", ".local$1");
        potentialPropertyFiles[1] = new File(localDefaultsPathName);

        for (File potentialPropertyFile : potentialPropertyFiles) {

            try {
                if (potentialPropertyFile.exists()) {
                    parseDefaultPropertyFileFromFile(potentialPropertyFile);
                } else {
                    parseDefaultPropertyFileFromResource(potentialPropertyFile);
                }
            } catch (IOException e) {
                throw new CommandLineParsingException(e);
            }
        }
    }
protected void parseDefaultPropertyFiles ( ) throws CommandLineParsingException { File [ ] potentialPropertyFiles = new File [ 2 ] ; potentialPropertyFiles [ 0 ] = new File ( defaultsFile ) ; String localDefaultsPathName = defaultsFile . replaceFirst ( "(\\.[^\\.]+)$" , ".local$1" ) ; potentialPropertyFiles [ 1 ] = new File ( localDefaultsPathName ) ; for ( File potentialPropertyFile : potentialPropertyFiles ) { try { if ( potentialPropertyFile . exists ( ) ) { parseDefaultPropertyFileFromFile ( potentialPropertyFile ) ; } else { parseDefaultPropertyFileFromResource ( potentialPropertyFile ) ; } } catch ( IOException e ) { throw new CommandLineParsingException ( e ) ; } } }
Search for both liquibase.properties (or whatever the name of the current
defaultsFile is) and the "local" variant liquibase.local.properties. The contents of the local
variant overwrite parameters with the same name in the regular properties file.

@throws CommandLineParsingException if an error occurs during parsing
Search for both liquibase . properties ( or whatever the name of the current defaultsFile is ) and the local variant liquibase . local . properties . The contents of the local variant overwrite parameters with the same name in the regular properties file .