From: Daniel Martí Date: Fri, 27 Sep 2013 08:50:56 +0000 (+0200) Subject: Always run 'clean' on ant and gradle projects too X-Git-Tag: 0.1~392 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5adcd129f624e592aec3278702b98c700d20b8e0;p=fdroidserver.git Always run 'clean' on ant and gradle projects too --- diff --git a/fdroidserver/build.py b/fdroidserver/build.py index 4011f0a8..8549b5d0 100644 --- a/fdroidserver/build.py +++ b/fdroidserver/build.py @@ -490,7 +490,7 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d if flavour in ['main', 'yes', '']: flavour = '' - commands = [gradle] + commands = [gradle, 'clean'] if 'preassemble' in thisbuild: for task in thisbuild['preassemble'].split(): commands.append(task) @@ -518,7 +518,7 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d else: print "Building Ant project..." - antcommands = ['ant'] + antcommands = ['ant', 'clean'] if install: antcommands += ['debug','install'] elif 'antcommand' in thisbuild: