create string file if this not exist
This commit is contained in:
parent
60b1e4a3e9
commit
d4d0d1b75d
|
|
@ -32,6 +32,11 @@ private def generate(Map<String, String> sources, Project project) {
|
|||
}
|
||||
|
||||
def stringsFile = getFile(key, key == defaultLang, project)
|
||||
if (!stringsFile.exists()) {
|
||||
stringsFile.parentFile.mkdirs()
|
||||
stringsFile.createNewFile()
|
||||
}
|
||||
|
||||
stringsFile.write(sw.toString(), "UTF-8")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue