Skip to content


[Truffle] Add a jt irb comamnd.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjfish committed Apr 23, 2015
1 parent 89c00ff commit 20bd6ec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tool/jt.rb
Expand Up @@ -143,6 +143,7 @@ def help
puts 'jt build build'
puts 'jt build truffle build only the Truffle part, assumes the rest is up-to-date'
puts 'jt clean clean'
puts 'jt irb irb'
puts 'jt rebuild clean and build'
puts 'jt run [options] args... run JRuby with -X+T and args'
puts ' --graal use Graal (set GRAAL_BIN or it will try to automagically find it)'
Expand Down Expand Up @@ -193,6 +194,12 @@ def clean
mvn 'clean'

def irb(*args)
env_vars = {}
jruby_args = %w[-X+T -S irb]
raw_sh(env_vars, "#{JRUBY_DIR}/bin/jruby", *jruby_args, *args)

def rebuild
Expand Down

0 comments on commit 20bd6ec

Please sign in to comment.