Class: Buildr::Shell::BeanShell
Constant Summary
collapse
- VERSION =
'2.0b4'
Instance Attribute Summary
Attributes inherited from Base
#project
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from JRebel
#jrebel_args, #jrebel_home, #jrebel_props, #rebel_jar
Methods inherited from Base
#initialize, specify, to_sym
Class Method Details
37
38
39
|
# File 'lib/buildr/core/shell.rb', line 37
def artifact
"org.beanshell:bsh:jar:#{version}"
end
|
33
34
35
|
# File 'lib/buildr/core/shell.rb', line 33
def version
Buildr.settings.build['bsh'] || VERSION
end
|
Instance Method Details
#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
|