Mercurial > hg > truffle
comparison mx/commands.py @ 11512:38acec26d535
If _installed_jdk is set, ask confirmation before building
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Mon, 02 Sep 2013 11:44:19 +0200 |
parents | 3110bea9a6b0 |
children | dc3c8df55905 |
comparison
equal
deleted
inserted
replaced
11511:3110bea9a6b0 | 11512:38acec26d535 |
---|---|
518 elif vm.startswith('client'): | 518 elif vm.startswith('client'): |
519 buildSuffix = '1' | 519 buildSuffix = '1' |
520 else: | 520 else: |
521 assert vm == 'graal', vm | 521 assert vm == 'graal', vm |
522 buildSuffix = 'graal' | 522 buildSuffix = 'graal' |
523 | |
524 if _installed_jdks: | |
525 if not mx.ask_yes_no("You are going to build while --installed-jdks is set (" + _installed_jdks + ") are you sure you want to continue", 'n'): | |
526 mx.abort(1) | |
523 | 527 |
524 for build in builds: | 528 for build in builds: |
525 if build == 'ide-build-target': | 529 if build == 'ide-build-target': |
526 build = os.environ.get('IDE_BUILD_TARGET', None) | 530 build = os.environ.get('IDE_BUILD_TARGET', None) |
527 if build is None or len(build) == 0: | 531 if build is None or len(build) == 0: |