private List < CmsGitConfiguration > readConfigFiles ( ) { List < CmsGitConfiguration > configurations = new LinkedList < CmsGitConfiguration > ( ) ; // Default configuration file for backwards compatibility addConfigurationIfValid ( configurations , new File ( DEFAULT_CONFIG_FILE ) ) ; // All files in the config folder File configFolder = new File ( DEFAULT_CONFIG_FOLDER ) ; if ( configFolder . isDirectory ( ) ) { for ( File configFile : configFolder . listFiles ( ) ) { addConfigurationIfValid ( configurations , configFile ) ; } } return configurations ; }
Read all configuration files .