Module: Buildr::JRebel
- Included in:
- Groovy::GroovySH, Run::JavaRunner, Scala::ScalaShell, Shell::BeanShell, Shell::Clojure, Shell::JIRB
- Defined in:
- lib/buildr/core/jrebel.rb
Instance Method Summary collapse
Instance Method Details
#jrebel_args ⇒ Object
33 34 35 |
# File 'lib/buildr/core/jrebel.rb', line 33 def jrebel_args rebel_jar ? [ '-noverify', "-javaagent:#{rebel_jar}" ] : [] end |
#jrebel_home ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/buildr/core/jrebel.rb', line 18 def jrebel_home unless @jrebel_home @jrebel_home = ENV['REBEL_HOME'] || ENV['JREBEL'] || ENV['JREBEL_HOME'] end (@jrebel_home && File.exists?(@jrebel_home)) ? @jrebel_home : nil end |
#jrebel_props(project) ⇒ Object
37 38 39 |
# File 'lib/buildr/core/jrebel.rb', line 37 def jrebel_props(project) {} end |
#rebel_jar ⇒ Object
26 27 28 29 30 31 |
# File 'lib/buildr/core/jrebel.rb', line 26 def rebel_jar if jrebel_home # jrebel_home may point to jrebel.jar directly File.directory?(jrebel_home) ? File.join(jrebel_home, 'jrebel.jar') : jrebel_home end end |