diff --git a/app/build-dictionaries.gradle b/app/build-dictionaries.gradle index 4e9bc509..f1c98b89 100644 --- a/app/build-dictionaries.gradle +++ b/app/build-dictionaries.gradle @@ -8,6 +8,10 @@ ext.convertDictionaries = { definitionsInputDir, dictionariesInputDir, dictionar int errorCount = 0 def errorStream = fileTree(dir: definitionsInputDir).getFiles().parallelStream().map { definition -> + if (!definition.name.endsWith("yml")) { + return "" + } + def (_, sounds, prependSoundsToWords, noSyllables, locale, dictionaryFile, langFileErrorCount, langFileErrorMsg) = parseLanguageDefintion(definition, dictionariesInputDir) errorCount += langFileErrorCount if (!langFileErrorMsg.isEmpty()) { diff --git a/app/validate-languages.gradle b/app/validate-languages.gradle index db56590f..2ccef770 100644 --- a/app/validate-languages.gradle +++ b/app/validate-languages.gradle @@ -5,6 +5,10 @@ ext.validateLanguageFiles = { definitionsDir, dictionariesDir, validationDir -> int errorCount = 0 def errorStream = fileTree(dir: definitionsDir).getFiles().parallelStream().map { definition -> + if (!definition.name.endsWith("yml")) { + return "" + } + if (errorCount >= MAX_ERRORS) { return "Too many errors! Skipping: ${definition}\n" }