Fix gradle command

This commit is contained in:
Daniel Martí 2013-08-03 17:32:39 +02:00
parent 946e42fe71
commit dbe0d1ec26

View file

@ -417,8 +417,7 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
p = subprocess.Popen(mvncmd, cwd=root_dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE) p = subprocess.Popen(mvncmd, cwd=root_dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
elif 'gradle' in thisbuild: elif 'gradle' in thisbuild:
flavour = thisbuild['gradle'] flavour = thisbuild['gradle']
arg = 'assemble'+flavour+'Release' p = subprocess.Popen([gradle, 'assemble'+flavour+'Release'], cwd=root_dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
p = subprocess.Popen(gradle, arg, cwd=root_dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
else: else:
if install: if install:
antcommands = ['debug','install'] antcommands = ['debug','install']