# HG changeset patch # User Doug Simon # Date 1409061406 -7200 # Node ID 7dbe1207fccfe30e382841eea6053b366dddc30b # Parent 424478f1d8a69ff3d22cc9ce9148b6a306169b91 mx: do not clean up temp files from the build command if -v is specified diff -r 424478f1d8a6 -r 7dbe1207fccf mxtool/mx.py --- 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):