# HG changeset patch # User Doug Simon # Date 1410195872 -7200 # Node ID 75a4acd331596d2699c973ceb2efa4260be5f557 # Parent a6277ae87f0e0ff6a6ce43d16173bd226fce83f2 mx: do not clean distributions if the --no-java option is given to the clean command diff -r a6277ae87f0e -r 75a4acd33159 mxtool/mx.py --- a/mxtool/mx.py Mon Sep 08 13:49:40 2014 +0200 +++ b/mxtool/mx.py Mon Sep 08 19:04:32 2014 +0200 @@ -3114,11 +3114,12 @@ if config.exists(): os.unlink(config.path) - if args.dist: - for d in _dists.keys(): - log('Removing distribution {0}...'.format(d)) - _rmIfExists(distribution(d).path) - _rmIfExists(distribution(d).sourcesPath) + if args.java: + if args.dist: + for d in _dists.keys(): + log('Removing distribution {0}...'.format(d)) + _rmIfExists(distribution(d).path) + _rmIfExists(distribution(d).sourcesPath) if suppliedParser: return args