Method: Buildr::Shell::BeanShell#launch

Defined in:
lib/buildr/core/shell.rb

#launch(task) ⇒ Object



42
43
44
45
46
47
48
49
50
51
# File 'lib/buildr/core/shell.rb', line 42

def launch(task)
  cp = ( project.compile.dependencies +
         [project.path_to(:target, :classes), Buildr.artifact(BeanShell.artifact)] +
         task.classpath )
  Java::Commands.java 'bsh.Console', {
    :properties => jrebel_props(project).merge(task.properties),
    :classpath => cp,
    :java_args => jrebel_args + task.java_args
  }
end