diff mxtool/mx.py @ 16875:73d994651fcd

fixed regression when building original VM without a Java build beforehand
author Doug Simon <doug.simon@oracle.com>
date Thu, 21 Aug 2014 12:01:35 +0200
parents 0d987db807df
children a04d9cbc149f
line wrap: on
line diff
--- a/mxtool/mx.py	Tue Aug 19 10:48:05 2014 +0200
+++ b/mxtool/mx.py	Thu Aug 21 12:01:35 2014 +0200
@@ -2516,9 +2516,10 @@
                 log('Compiling {} failed'.format(t.proj.name))
             abort('{} Java compilation tasks failed'.format(len(failed)))
 
-    for dist in sorted_dists():
-        if dist not in updatedAnnotationProcessorDists:
-            archive(['@' + dist.name])
+    if args.java:
+        for dist in sorted_dists():
+            if dist not in updatedAnnotationProcessorDists:
+                archive(['@' + dist.name])
 
     if suppliedParser:
         return args