Mercurial > hg > graal-jvmci-8
changeset 17063:75a4acd33159
mx: do not clean distributions if the --no-java option is given to the clean command
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 08 Sep 2014 19:04:32 +0200 |
parents | a6277ae87f0e |
children | 3c54a098455f |
files | mxtool/mx.py |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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