Module: Buildr::Shell::JavaRebel
- Included in:
- Buildr::Scala::ScalaShell, BeanShell, Clojure, JIRB
- Defined in:
- lib/buildr/shell.rb
Instance Method Summary collapse
Instance Method Details
#rebel_args ⇒ Object
94 95 96 97 98 99 100 101 102 103 |
# File 'lib/buildr/shell.rb', line 94 def rebel_args if rebel_home [ '-noverify', "-javaagent:#{rebel_home}" ] else [] end end |
#rebel_home ⇒ Object
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/buildr/shell.rb', line 78 def rebel_home unless @rebel_home @rebel_home = ENV['REBEL_HOME'] or ENV['JREBEL'] or ENV['JREBEL_HOME'] if @rebel_home and File.directory? @rebel_home @rebel_home += File::SEPARATOR + 'jrebel.jar' end end if @rebel_home and File.exists? @rebel_home @rebel_home else nil end end |