Class: Buildr::Shell::BeanShell

Inherits:
Base show all
Includes:
JRebel
Defined in:
lib/buildr/core/shell.rb

Overview

:nodoc:

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

Constructor Details

This class inherits a constructor from Buildr::Shell::Base

Class Method Details

.artifactObject



31
32
33
# File 'lib/buildr/core/shell.rb', line 31

def artifact
  "org.beanshell:bsh:jar:#{version}"
end

.versionObject



27
28
29
# File 'lib/buildr/core/shell.rb', line 27

def version
  Buildr.settings.build['bsh'] || VERSION
end

Instance Method Details

#launch(task) ⇒ Object



36
37
38
39
40
41
42
43
44
45
# File 'lib/buildr/core/shell.rb', line 36

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