Class: Buildr::Scala::ScalaShell
- Inherits:
-
Buildr::Shell::Base
- Object
- Buildr::Shell::Base
- Buildr::Scala::ScalaShell
- Includes:
- JRebel
- Defined in:
- lib/buildr/scala/shell.rb
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
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/buildr/scala/shell.rb', line 27 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 |