Support auto names on gradle projects

This commit is contained in:
Daniel Martí 2014-03-18 15:44:39 +01:00
parent d570422f6d
commit 167d9df3a0

View file

@ -591,13 +591,17 @@ class vcs_bzr(vcs):
def retrieve_string(app_dir, string, xmlfiles=None): def retrieve_string(app_dir, string, xmlfiles=None):
res_dir = os.path.join(app_dir, 'res') res_dirs = [
os.path.join(app_dir, 'res'),
os.path.join(app_dir, 'src/main/res'),
]
if xmlfiles is None: if xmlfiles is None:
xmlfiles = [] xmlfiles = []
for r,d,f in os.walk(res_dir): for res_dir in res_dirs:
if r.endswith('/values'): for r,d,f in os.walk(res_dir):
xmlfiles += [os.path.join(r,x) for x in f if x.endswith('.xml')] if r.endswith('/values'):
xmlfiles += [os.path.join(r,x) for x in f if x.endswith('.xml')]
string_search = None string_search = None
if string.startswith('@string/'): if string.startswith('@string/'):