From b416795166ddef851a365ed4ba0c1be4e025d0c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 10 Apr 2015 00:13:50 +0200 Subject: [PATCH] Start supporting gradle tasks that belong to subprojects --- fdroidserver/build.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fdroidserver/build.py b/fdroidserver/build.py index 314afcc5..8fffce35 100644 --- a/fdroidserver/build.py +++ b/fdroidserver/build.py @@ -516,7 +516,10 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d adapt_gradle(libpath) cmd = [config['gradle']] - cmd += ['clean' + capitalize_intact(task) for task in gradletasks] + for task in gradletasks: + parts = task.split(':') + parts[-1] = 'clean' + capitalize_intact(parts[-1]) + cmd += [':'.join(parts)] p = FDroidPopen(cmd, cwd=root_dir)