chiark / gitweb /
Always run 'clean' on ant and gradle projects too
authorDaniel Martí <mvdan@mvdan.cc>
Fri, 27 Sep 2013 08:50:56 +0000 (10:50 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 27 Sep 2013 08:50:56 +0000 (10:50 +0200)
fdroidserver/build.py

index 4011f0a836c315b5e5b7d80442b88ea5478a142d..8549b5d08d2fdcdac58649236257723b0aebf760 100644 (file)
@@ -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: