Buildr C0 Coverage Information - RCov

lib/buildr/scala/shell.rb

Name Total Lines Lines of Code Total Coverage Code Coverage
lib/buildr/scala/shell.rb 52 28
21.15%
25.00%

Key

Code reported as executed by Ruby looks like this...and this: this line is also marked as covered.Lines considered as run by rcov, but not reported by Ruby, look like this,and this: these lines were inferred by rcov (using simple heuristics).Finally, here's a line marked as not executed.

Coverage Details

1 # Licensed to the Apache Software Foundation (ASF) under one or more
2 # contributor license agreements.  See the NOTICE file distributed with this
3 # work for additional information regarding copyright ownership.  The ASF
4 # licenses this file to you under the Apache License, Version 2.0 (the
5 # "License"); you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #    http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
13 # License for the specific language governing permissions and limitations under
14 # the License.
15 
16 
17 require 'buildr/shell'
18 require 'buildr/java/commands'
19 
20 module Buildr
21   module Scala
22     class ScalaShell < Buildr::Shell::Base
23       include Buildr::JRebel
24 
25       specify :name => :scala, :languages => [:scala]
26 
27       def launch(task)
28         jline = [File.expand_path("lib/jline.jar", Scalac.scala_home)].find_all { |f| File.exist? f }
29         jline = ['jline:jline:jar:0.9.94'] if jline.empty?
30 
31         cp = project.compile.dependencies +
32              Scalac.dependencies +
33              project.test.dependencies +
34              task.classpath
35 
36         java_args = jrebel_args + task.java_args
37 
38         props = jrebel_props(project).merge(task.properties)
39 
40         Java::Commands.java 'scala.tools.nsc.MainGenericRunner',
41                             '-cp', cp.join(File::PATH_SEPARATOR),
42         {
43           :properties => props,
44           :classpath => cp + jline,
45           :java_args => java_args
46         }
47       end
48     end
49   end
50 end
51 
52 Buildr::Shell.providers << Buildr::Scala::ScalaShell

Generated on 2011-07-06 23:35:38 -0700 with rcov 0.9.8