C0 code coverage information
Generated on Wed Oct 07 08:34:00 -0700 2009 with rcov 0.8.2.1
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.
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 require 'buildr/shell'
17
18 module Buildr
19 module Groovy
20 class GroovySH < Buildr::Shell::Base
21 SUFFIX = if Util.win_os? then '.bat' else '' end
22
23 class << self
24 def lang
25 :groovy
26 end
27 end
28
29 def launch
30 fail 'Are we forgetting something? GROOVY_HOME not set.' unless groovy_home
31
32 cp = project.compile.dependencies.join(File::PATH_SEPARATOR) +
33 File::PATH_SEPARATOR + project.path_to(:target, :classes)
34
35 cmd_args = " -classpath '#{cp}'"
36 trace "groovysh #{cmd_args}"
37 system(File.expand_path("bin#{File::SEPARATOR}groovysh#{SUFFIX}", groovy_home) + cmd_args)
38 end
39
40 private
41 def groovy_home
42 @home ||= ENV['GROOVY_HOME']
43 end
44 end
45 end
46 end
47
48 Buildr::ShellProviders << Buildr::Groovy::GroovySH
Generated using the rcov code coverage analysis tool for Ruby
version 0.8.2.1.