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_argsObject



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_homeObject



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

#rebel_props(project) ⇒ Object



105
106
107
# File 'lib/buildr/shell.rb', line 105

def rebel_props(project)
  {}
end