comparison mx/mx_graal.py @ 14048:d2c84a0bf37a

Remove Ruby implementation.
author Chris Seaton <chris.seaton@oracle.com>
date Tue, 04 Mar 2014 01:08:46 +0000
parents fad977c86a88
children be7ebdf41bea
comparison
equal deleted inserted replaced
14047:fde464340755 14048:d2c84a0bf37a
1464 1464
1465 1465
1466 def isGraalEnabled(vm): 1466 def isGraalEnabled(vm):
1467 return vm != 'original' and not vm.endswith('nograal') 1467 return vm != 'original' and not vm.endswith('nograal')
1468 1468
1469 def rubyShellCp():
1470 return mx.classpath("com.oracle.truffle.ruby.shell")
1471
1472 def rubyShellClass():
1473 return "com.oracle.truffle.ruby.shell.Shell"
1474
1475 def ruby(args):
1476 """run a Ruby program or shell"""
1477 vmArgs, rubyArgs = _extract_VM_args(args, useDoubleDash=True)
1478 vm(vmArgs + ['-cp', rubyShellCp(), rubyShellClass()] + rubyArgs)
1479
1480 def site(args): 1469 def site(args):
1481 """create a website containing javadoc and the project dependency graph""" 1470 """create a website containing javadoc and the project dependency graph"""
1482 1471
1483 return mx.site(['--name', 'Graal', 1472 return mx.site(['--name', 'Graal',
1484 '--jd', '@-tag', '--jd', '@test:X', 1473 '--jd', '@-tag', '--jd', '@test:X',
1634 'vmg': [vmg, '[-options] class [args...]'], 1623 'vmg': [vmg, '[-options] class [args...]'],
1635 'vmfg': [vmfg, '[-options] class [args...]'], 1624 'vmfg': [vmfg, '[-options] class [args...]'],
1636 'deoptalot' : [deoptalot, '[n]'], 1625 'deoptalot' : [deoptalot, '[n]'],
1637 'longtests' : [longtests, ''], 1626 'longtests' : [longtests, ''],
1638 'sl' : [sl, '[SL args|@VM options]'], 1627 'sl' : [sl, '[SL args|@VM options]'],
1639 'trufflejar' : [trufflejar, ''], 1628 'trufflejar' : [trufflejar, '']
1640 'ruby' : [ruby, '[Ruby args|@VM options]']
1641 } 1629 }
1642 1630
1643 mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append']) 1631 mx.add_argument('--jacoco', help='instruments com.oracle.* classes using JaCoCo', default='off', choices=['off', 'on', 'append'])
1644 mx.add_argument('--vmcwd', dest='vm_cwd', help='current directory will be changed to <path> before the VM is executed', default=None, metavar='<path>') 1632 mx.add_argument('--vmcwd', dest='vm_cwd', help='current directory will be changed to <path> before the VM is executed', default=None, metavar='<path>')
1645 mx.add_argument('--installed-jdks', help='the base directory in which the JDKs cloned from $JAVA_HOME exist. ' + 1633 mx.add_argument('--installed-jdks', help='the base directory in which the JDKs cloned from $JAVA_HOME exist. ' +