p = FDroidPopen(commands, cwd=gradle_dir)
- else:
+ elif thisbuild['type'] == 'ant':
print "Building Ant project..."
cmd = ['ant']
if 'antcommand' in thisbuild:
else:
name = '-'.join([os.path.basename(dd), '-'.join(flavours), 'release', 'unsigned'])
src = os.path.join(dd, 'build', 'apk', name+'.apk')
- else:
+ elif thisbuild['type'] == 'ant':
stdout_apk = '\n'.join([
line for line in p.stdout.splitlines() if '.apk' in line])
src = re.match(r".*^.*Creating (.+) for release.*$.*", stdout_apk,