1
0
Fork 0

when a language is updated only that language will be validated upon build time, instead of all of them

This commit is contained in:
sspanak 2024-04-14 12:13:40 +03:00 committed by Dimo Karaivanov
parent 2418c9c4c3
commit 39183369cf
3 changed files with 18 additions and 9 deletions

View file

@ -9,11 +9,11 @@ apply from: 'version-tools.gradle'
tasks.register('validateLanguages') {
inputs.dir fileTree(dir: LANGUAGES_INPUT_DIR)
outputs.file layout.buildDirectory.file("lang.validation.txt")
inputs.dir LANGUAGES_INPUT_DIR
outputs.dir LANGUAGE_VALIDATION_DIR
doLast {
validateLanguageFiles(DEFINITIONS_INPUT_DIR, DICTIONARIES_INPUT_DIR, outputs.files.singleFile)
validateLanguageFiles(DEFINITIONS_INPUT_DIR, DICTIONARIES_INPUT_DIR, LANGUAGE_VALIDATION_DIR.get().asFile)
}
}