the languages are now sorted during build time
This commit is contained in:
parent
3ac0d8e0a6
commit
ef32d5adaa
2 changed files with 3 additions and 3 deletions
|
|
@ -3,7 +3,7 @@ ext.mergeDefinitions = { String definitionsInputDir, String definitionsOutputPat
|
|||
merged.delete()
|
||||
|
||||
boolean isFirst = true
|
||||
fileTree(dir: definitionsInputDir).getFiles().each { file ->
|
||||
fileTree(dir: definitionsInputDir).getFiles().sort().each { file ->
|
||||
if (!file.isFile() || !file.name.endsWith(".yml")) {
|
||||
return
|
||||
}
|
||||
|
|
@ -16,7 +16,7 @@ ext.mergeDefinitions = { String definitionsInputDir, String definitionsOutputPat
|
|||
|
||||
merged << file.text
|
||||
.replaceAll("\\s*#[^\n]+", "")
|
||||
.replaceAll("^[ ]+\n", "")
|
||||
.replaceAll("^ +\n", "")
|
||||
.trim()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue