Mercurial > hg > graal-jvmci-8
comparison mxtool/mx.py @ 8138:1446b04e4148
'mx fsckprojects' should only ask on a tty
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Wed, 06 Mar 2013 23:00:44 +0100 |
parents | 6e3ebc6fd5a4 |
children | 67d654d9ee9a 0934903d28f3 |
comparison
equal
deleted
inserted
replaced
8137:ae629e3671a0 | 8138:1446b04e4148 |
---|---|
2555 dirnames[:] = [] | 2555 dirnames[:] = [] |
2556 else: | 2556 else: |
2557 projectConfigFiles = frozenset(['.classpath', 'nbproject']) | 2557 projectConfigFiles = frozenset(['.classpath', 'nbproject']) |
2558 indicators = projectConfigFiles.intersection(files) | 2558 indicators = projectConfigFiles.intersection(files) |
2559 if len(indicators) != 0: | 2559 if len(indicators) != 0: |
2560 response = raw_input(currentDir + ' looks like a removed project -- delete it? [yn]: ') | 2560 if not sys.stdout.isatty() or raw_input(currentDir + ' looks like a removed project -- delete it? [yn]: ') == 'y': |
2561 if 'y' == response: | |
2562 shutil.rmtree(currentDir) | 2561 shutil.rmtree(currentDir) |
2563 log('Deleted ' + currentDir) | 2562 log('Deleted ' + currentDir) |
2564 | 2563 |
2565 def javadoc(args, parser=None, docDir='javadoc', includeDeps=True): | 2564 def javadoc(args, parser=None, docDir='javadoc', includeDeps=True): |
2566 """generate javadoc for some/all Java projects""" | 2565 """generate javadoc for some/all Java projects""" |