Class: Buildr::Scala::ScalaShell
- Inherits:
-
Buildr::Shell::Base
- Object
- Buildr::Shell::Base
- Buildr::Scala::ScalaShell
- Includes:
- JRebel
- Defined in:
- lib/buildr/scala/shell.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Buildr::Shell::Base
Instance Method Summary collapse
Methods included from JRebel
#jrebel_args, #jrebel_home, #jrebel_props, #rebel_jar
Methods inherited from Buildr::Shell::Base
Constructor Details
This class inherits a constructor from Buildr::Shell::Base
Instance Method Details
#launch(task) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/buildr/scala/shell.rb', line 23 def launch(task) jline = [File.("lib/jline.jar", Scalac.scala_home)].find_all { |f| File.exist? f } jline = ['jline:jline:jar:0.9.94'] if jline.empty? cp = project.compile.dependencies + Scalac.dependencies + project.test.dependencies + task.classpath java_args = jrebel_args + task.java_args props = jrebel_props(project).merge(task.properties) Java::Commands.java 'scala.tools.nsc.MainGenericRunner', '-cp', cp.join(File::PATH_SEPARATOR), { :properties => props, :classpath => cp + jline, :java_args => java_args } end |