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
17 require 'buildr/core/project'
18 require 'buildr/core/common'
19
20 module Buildr
21 module Eclipse
22 module Java
23 include Extension
24
25 NATURE = 'org.eclipse.jdt.core.javanature'
26 CONTAINER = 'org.eclipse.jdt.launching.JRE_CONTAINER'
27 BUILDER = 'org.eclipse.jdt.core.javabuilder'
28
29 after_define do |project|
30 eclipse = project.eclipse
31
32 # smart defaults
33 if project.compile.language == :java || project.test.compile.language == :java
34 eclipse.natures = NATURE if eclipse.natures.empty?
35 eclipse.classpath_containers = CONTAINER if eclipse.classpath_containers.empty?
36 eclipse.builders = BUILDER if eclipse.builders.empty?
37 end
38
39 # :java nature explicitly set
40 if eclipse.natures.include? :java
41 eclipse.natures += NATURE unless eclipse.natures.include? NATURE
42 eclipse.classpath_containers += CONTAINER unless eclipse.classpath_containers.include? CONTAINER
43 eclipse.builders += BUILDER unless eclipse.builders.include? BUILDER
44 end
45 end
46
47 end
48 end
49 end
50
51 class Buildr::Project
52 include Buildr::Eclipse::Java
53 end
Generated using the rcov code coverage analysis tool for Ruby
version 0.8.2.1.