diff mxtool/mx.py @ 8966:d3c6755fdb11

Merge
author Christos Kotselidis <christos.kotselidis@oracle.com>
date Tue, 09 Apr 2013 22:34:06 +0200
parents 64d3d352f943
children 096725f4da58
line wrap: on
line diff
--- a/mxtool/mx.py	Tue Apr 09 14:53:19 2013 +0200
+++ b/mxtool/mx.py	Tue Apr 09 22:34:06 2013 +0200
@@ -1813,11 +1813,6 @@
                 log('[all Java sources in {0} already checked - skipping]'.format(sourceDir))
                 continue
 
-            if exists(timestampFile):
-                os.utime(timestampFile, None)
-            else:
-                file(timestampFile, 'a')
-
             dotCheckstyleXML = xml.dom.minidom.parse(dotCheckstyle)
             localCheckConfig = dotCheckstyleXML.getElementsByTagName('local-check-config')[0]
             configLocation = localCheckConfig.getAttribute('location')
@@ -1883,6 +1878,11 @@
                                 if len(warnings) != 0:
                                     map(log, warnings)
                                     return 1
+                                else:
+                                    if exists(timestampFile):
+                                        os.utime(timestampFile, None)
+                                    else:
+                                        file(timestampFile, 'a')
             finally:
                 if exists(auditfileName):
                     os.unlink(auditfileName)