# HG changeset patch # User Christian Humer # Date 1360676004 -3600 # Node ID 6b540bb823120e979b01d9bc80fd26cd6c28bf7b # Parent ca51efac4d5799d6fff270c21da1716285067bf4 Fixed clean should clean also generated source directories. diff -r ca51efac4d57 -r 6b540bb82312 mxtool/mx.py --- a/mxtool/mx.py Mon Feb 11 16:20:52 2013 +0100 +++ b/mxtool/mx.py Tue Feb 12 14:33:24 2013 +0100 @@ -1802,6 +1802,13 @@ run([gmake_cmd(), '-C', p.dir, 'clean']) else: if args.java: + genDir = p.source_gen_dir(); + if genDir != '' and exists(genDir): + log('Clearing {0}...'.format(genDir)) + for f in os.listdir(genDir): + shutil.rmtree(join(genDir, f)) + + outputDir = p.output_dir() if outputDir != '' and exists(outputDir): log('Removing {0}...'.format(outputDir))