changeset 21781:d013bb1cbf9f

mx: Filter package-info.class out when checking timestamps for java compilations
author Doug Simon <doug.simon@oracle.com>
date Mon, 08 Jun 2015 15:01:17 +0200
parents 3d15183f3c93
children 9c454c650b29
files mxtool/mx.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mxtool/mx.py	Wed Jun 03 15:47:54 2015 +0200
+++ b/mxtool/mx.py	Mon Jun 08 15:01:17 2015 +0200
@@ -2833,8 +2833,9 @@
                     for javafile in javafiles:
                         classfile = TimeStampFile(outputDir + javafile[len(sourceDir):-len('java')] + 'class')
                         if not classfile.exists() or classfile.isOlderThan(javafile):
-                            buildReason = 'class file(s) out of date'
-                            break
+                            if basename(classfile.path) != 'package-info.class':
+                                buildReason = 'class file(s) out of date'
+                                break
 
         apsOutOfDate = p.update_current_annotation_processors_file()
         if apsOutOfDate: