changeset 16947:7dbe1207fccf

mx: do not clean up temp files from the build command if -v is specified
author Doug Simon <doug.simon@oracle.com>
date Tue, 26 Aug 2014 15:56:46 +0200
parents 424478f1d8a6
children d569f2fafb6a
files mxtool/mx.py
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mxtool/mx.py	Tue Aug 26 15:55:59 2014 +0200
+++ b/mxtool/mx.py	Tue Aug 26 15:56:46 2014 +0200
@@ -2231,8 +2231,13 @@
                 self.proj.definedAnnotationProcessorsDist.make_archive()
 
         finally:
-            for n in toBeDeleted:
-                os.remove(n)
+            # Do not clean up temp files if verbose as there's
+            # a good chance the user wants to copy and paste the
+            # Java compiler command directly
+            if not _opts.verbose:
+                for n in toBeDeleted:
+                    os.remove(n)
+
             self.done = True
 
 def build(args, parser=None):