Merge pull request #1987 from jmakovicka/gradle-file-fix

Avoid dependency on current working dir
This commit is contained in:
vshcherb 2015-11-30 00:54:27 +01:00
commit b2b941fabe

View file

@ -189,7 +189,7 @@ task updateNoTranslate(type: Copy) {
task validateTranslate {
println "Validating translations"
new java.io.File("res").eachFileRecurse groovy.io.FileType.FILES, {
file("res").eachFileRecurse groovy.io.FileType.FILES, {
if (it.name == "strings.xml" || it.name == "phrases.xml") {
it.eachLine { line ->
if (line.contains("\$ s") || line.contains("\$ d") || line.contains("\$ f") ||