changeset 16670:4ae1d1ed5cc1

fixed regression in use of -f option to 'mx build'
author Doug Simon <doug.simon@oracle.com>
date Fri, 01 Aug 2014 11:36:08 +0200
parents ac6cbf6570dd
children 7cdd7ede912d
files mxtool/mx.py
diffstat 1 files changed, 6 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mxtool/mx.py	Thu Jul 31 18:47:10 2014 +0200
+++ b/mxtool/mx.py	Fri Aug 01 11:36:08 2014 +0200
@@ -2240,13 +2240,12 @@
         sourceDirs = p.source_dirs()
         buildReason = 'forced build' if args.force else None
         taskDeps = []
-        if not buildReason:
-            for dep in p.all_deps([], includeLibs=False, includeAnnotationProcessors=True):
-                taskDep = tasks.get(dep.name)
-                if taskDep:
-                    if not buildReason:
-                        buildReason = dep.name + ' rebuilt'
-                    taskDeps.append(taskDep)
+        for dep in p.all_deps([], includeLibs=False, includeAnnotationProcessors=True):
+            taskDep = tasks.get(dep.name)
+            if taskDep:
+                if not buildReason:
+                    buildReason = dep.name + ' rebuilt'
+                taskDeps.append(taskDep)
 
         jasminAvailable = None
         javafilelist = []