mguymon-buildr 1.4.5-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. data/CHANGELOG +1291 -0
  2. data/LICENSE +176 -0
  3. data/NOTICE +26 -0
  4. data/README.rdoc +134 -0
  5. data/Rakefile +44 -0
  6. data/_buildr +35 -0
  7. data/_jbuildr +35 -0
  8. data/addon/buildr/antlr.rb +65 -0
  9. data/addon/buildr/bnd.rb +147 -0
  10. data/addon/buildr/cobertura.rb +22 -0
  11. data/addon/buildr/drb.rb +281 -0
  12. data/addon/buildr/emma.rb +22 -0
  13. data/addon/buildr/hibernate.rb +149 -0
  14. data/addon/buildr/javacc.rb +85 -0
  15. data/addon/buildr/jaxb_xjc.rb +72 -0
  16. data/addon/buildr/jdepend.rb +60 -0
  17. data/addon/buildr/jetty.rb +248 -0
  18. data/addon/buildr/jibx.rb +86 -0
  19. data/addon/buildr/nailgun.rb +221 -0
  20. data/addon/buildr/openjpa.rb +88 -0
  21. data/addon/buildr/org/apache/buildr/BuildrNail$Main.class +0 -0
  22. data/addon/buildr/org/apache/buildr/BuildrNail.class +0 -0
  23. data/addon/buildr/org/apache/buildr/BuildrNail.java +41 -0
  24. data/addon/buildr/org/apache/buildr/JettyWrapper$1.class +0 -0
  25. data/addon/buildr/org/apache/buildr/JettyWrapper$BuildrHandler.class +0 -0
  26. data/addon/buildr/org/apache/buildr/JettyWrapper.class +0 -0
  27. data/addon/buildr/org/apache/buildr/JettyWrapper.java +144 -0
  28. data/addon/buildr/protobuf.rb +88 -0
  29. data/addon/buildr/xmlbeans.rb +93 -0
  30. data/bin/buildr +19 -0
  31. data/buildr.buildfile +58 -0
  32. data/buildr.gemspec +78 -0
  33. data/doc/_config.yml +1 -0
  34. data/doc/_layouts/default.html +90 -0
  35. data/doc/_layouts/preface.html +22 -0
  36. data/doc/artifacts.textile +217 -0
  37. data/doc/building.textile +276 -0
  38. data/doc/contributing.textile +268 -0
  39. data/doc/css/default.css +236 -0
  40. data/doc/css/print.css +101 -0
  41. data/doc/css/syntax.css +23 -0
  42. data/doc/download.textile +151 -0
  43. data/doc/extending.textile +212 -0
  44. data/doc/images/1442160941-frontcover.jpg +0 -0
  45. data/doc/images/asf-logo.gif +0 -0
  46. data/doc/images/asf-logo.png +0 -0
  47. data/doc/images/buildr-hires.png +0 -0
  48. data/doc/images/buildr.png +0 -0
  49. data/doc/images/favicon.png +0 -0
  50. data/doc/images/growl-icon.tiff +0 -0
  51. data/doc/images/note.png +0 -0
  52. data/doc/images/project-structure.png +0 -0
  53. data/doc/images/tip.png +0 -0
  54. data/doc/images/zbuildr.png +0 -0
  55. data/doc/images/zbuildr.tif +0 -0
  56. data/doc/index.textile +109 -0
  57. data/doc/installing.textile +284 -0
  58. data/doc/languages.textile +599 -0
  59. data/doc/mailing_lists.textile +29 -0
  60. data/doc/more_stuff.textile +845 -0
  61. data/doc/packaging.textile +618 -0
  62. data/doc/preface.textile +54 -0
  63. data/doc/projects.textile +276 -0
  64. data/doc/quick_start.textile +210 -0
  65. data/doc/releasing.textile +117 -0
  66. data/doc/scripts/buildr-git.rb +512 -0
  67. data/doc/scripts/gitflow.rb +296 -0
  68. data/doc/scripts/install-jruby.sh +44 -0
  69. data/doc/scripts/install-linux.sh +73 -0
  70. data/doc/scripts/install-osx.sh +52 -0
  71. data/doc/settings_profiles.textile +287 -0
  72. data/doc/testing.textile +247 -0
  73. data/etc/KEYS +189 -0
  74. data/lib/buildr.rb +44 -0
  75. data/lib/buildr/clojure.rb +34 -0
  76. data/lib/buildr/clojure/shell.rb +52 -0
  77. data/lib/buildr/core.rb +34 -0
  78. data/lib/buildr/core/application.rb +700 -0
  79. data/lib/buildr/core/build.rb +516 -0
  80. data/lib/buildr/core/cc.rb +166 -0
  81. data/lib/buildr/core/checks.rb +253 -0
  82. data/lib/buildr/core/common.rb +151 -0
  83. data/lib/buildr/core/compile.rb +622 -0
  84. data/lib/buildr/core/doc.rb +276 -0
  85. data/lib/buildr/core/environment.rb +129 -0
  86. data/lib/buildr/core/filter.rb +404 -0
  87. data/lib/buildr/core/generate.rb +197 -0
  88. data/lib/buildr/core/help.rb +119 -0
  89. data/lib/buildr/core/jrebel.rb +42 -0
  90. data/lib/buildr/core/linux.rb +30 -0
  91. data/lib/buildr/core/osx.rb +46 -0
  92. data/lib/buildr/core/progressbar.rb +161 -0
  93. data/lib/buildr/core/project.rb +975 -0
  94. data/lib/buildr/core/run.rb +43 -0
  95. data/lib/buildr/core/shell.rb +137 -0
  96. data/lib/buildr/core/test.rb +843 -0
  97. data/lib/buildr/core/transports.rb +575 -0
  98. data/lib/buildr/core/util.rb +537 -0
  99. data/lib/buildr/groovy.rb +20 -0
  100. data/lib/buildr/groovy/bdd.rb +106 -0
  101. data/lib/buildr/groovy/compiler.rb +153 -0
  102. data/lib/buildr/groovy/doc.rb +76 -0
  103. data/lib/buildr/groovy/shell.rb +57 -0
  104. data/lib/buildr/ide.rb +19 -0
  105. data/lib/buildr/ide/eclipse.rb +427 -0
  106. data/lib/buildr/ide/eclipse/java.rb +53 -0
  107. data/lib/buildr/ide/eclipse/plugin.rb +71 -0
  108. data/lib/buildr/ide/eclipse/scala.rb +68 -0
  109. data/lib/buildr/ide/idea.rb +576 -0
  110. data/lib/buildr/java.rb +25 -0
  111. data/lib/buildr/java/ant.rb +94 -0
  112. data/lib/buildr/java/bdd.rb +460 -0
  113. data/lib/buildr/java/cobertura.rb +297 -0
  114. data/lib/buildr/java/commands.rb +223 -0
  115. data/lib/buildr/java/compiler.rb +135 -0
  116. data/lib/buildr/java/deprecated.rb +141 -0
  117. data/lib/buildr/java/doc.rb +86 -0
  118. data/lib/buildr/java/ecj.rb +69 -0
  119. data/lib/buildr/java/emma.rb +244 -0
  120. data/lib/buildr/java/external.rb +73 -0
  121. data/lib/buildr/java/jruby.rb +122 -0
  122. data/lib/buildr/java/jtestr_result.rb +295 -0
  123. data/lib/buildr/java/jtestr_runner.rb.erb +116 -0
  124. data/lib/buildr/java/org/apache/buildr/JavaTestFilter.class +0 -0
  125. data/lib/buildr/java/org/apache/buildr/JavaTestFilter.java +142 -0
  126. data/lib/buildr/java/packaging.rb +734 -0
  127. data/lib/buildr/java/pom.rb +178 -0
  128. data/lib/buildr/java/rjb.rb +154 -0
  129. data/lib/buildr/java/test_result.rb +101 -0
  130. data/lib/buildr/java/tests.rb +362 -0
  131. data/lib/buildr/java/version_requirement.rb +172 -0
  132. data/lib/buildr/packaging.rb +25 -0
  133. data/lib/buildr/packaging/archive.rb +535 -0
  134. data/lib/buildr/packaging/artifact.rb +904 -0
  135. data/lib/buildr/packaging/artifact_namespace.rb +984 -0
  136. data/lib/buildr/packaging/artifact_search.rb +140 -0
  137. data/lib/buildr/packaging/gems.rb +105 -0
  138. data/lib/buildr/packaging/package.rb +249 -0
  139. data/lib/buildr/packaging/repository_array.rb +108 -0
  140. data/lib/buildr/packaging/tar.rb +189 -0
  141. data/lib/buildr/packaging/version_requirement.rb +192 -0
  142. data/lib/buildr/packaging/zip.rb +178 -0
  143. data/lib/buildr/packaging/ziptask.rb +356 -0
  144. data/lib/buildr/resources/buildr.icns +0 -0
  145. data/lib/buildr/resources/completed.png +0 -0
  146. data/lib/buildr/resources/failed.png +0 -0
  147. data/lib/buildr/resources/icons-license.txt +17 -0
  148. data/lib/buildr/run.rb +195 -0
  149. data/lib/buildr/scala.rb +26 -0
  150. data/lib/buildr/scala/bdd.rb +118 -0
  151. data/lib/buildr/scala/compiler.rb +242 -0
  152. data/lib/buildr/scala/doc.rb +142 -0
  153. data/lib/buildr/scala/org/apache/buildr/SpecsSingletonRunner.class +0 -0
  154. data/lib/buildr/scala/org/apache/buildr/SpecsSingletonRunner.java +57 -0
  155. data/lib/buildr/scala/shell.rb +52 -0
  156. data/lib/buildr/scala/tests.rb +171 -0
  157. data/lib/buildr/shell.rb +185 -0
  158. data/lib/buildr/version.rb +18 -0
  159. data/rakelib/all-in-one.rake +113 -0
  160. data/rakelib/checks.rake +57 -0
  161. data/rakelib/doc.rake +137 -0
  162. data/rakelib/metrics.rake +39 -0
  163. data/rakelib/package.rake +73 -0
  164. data/rakelib/release.rake +160 -0
  165. data/rakelib/rspec.rake +91 -0
  166. data/rakelib/setup.rake +66 -0
  167. data/rakelib/stage.rake +220 -0
  168. data/spec/addon/bnd_spec.rb +330 -0
  169. data/spec/addon/drb_spec.rb +328 -0
  170. data/spec/addon/jaxb_xjc_spec.rb +125 -0
  171. data/spec/core/application_spec.rb +631 -0
  172. data/spec/core/build_spec.rb +837 -0
  173. data/spec/core/cc_spec.rb +224 -0
  174. data/spec/core/checks_spec.rb +519 -0
  175. data/spec/core/common_spec.rb +725 -0
  176. data/spec/core/compile_spec.rb +658 -0
  177. data/spec/core/doc_spec.rb +195 -0
  178. data/spec/core/extension_spec.rb +201 -0
  179. data/spec/core/generate_spec.rb +33 -0
  180. data/spec/core/project_spec.rb +772 -0
  181. data/spec/core/run_spec.rb +93 -0
  182. data/spec/core/shell_spec.rb +146 -0
  183. data/spec/core/test_spec.rb +1320 -0
  184. data/spec/core/transport_spec.rb +544 -0
  185. data/spec/core/util_spec.rb +141 -0
  186. data/spec/groovy/bdd_spec.rb +80 -0
  187. data/spec/groovy/compiler_spec.rb +251 -0
  188. data/spec/groovy/doc_spec.rb +65 -0
  189. data/spec/ide/eclipse_spec.rb +739 -0
  190. data/spec/ide/idea_spec.rb +1145 -0
  191. data/spec/java/ant_spec.rb +37 -0
  192. data/spec/java/bdd_spec.rb +374 -0
  193. data/spec/java/cobertura_spec.rb +112 -0
  194. data/spec/java/commands_spec.rb +93 -0
  195. data/spec/java/compiler_spec.rb +252 -0
  196. data/spec/java/doc_spec.rb +56 -0
  197. data/spec/java/ecj_spec.rb +115 -0
  198. data/spec/java/emma_spec.rb +121 -0
  199. data/spec/java/external_spec.rb +56 -0
  200. data/spec/java/java_spec.rb +132 -0
  201. data/spec/java/packaging_spec.rb +1266 -0
  202. data/spec/java/run_spec.rb +78 -0
  203. data/spec/java/test_coverage_helper.rb +257 -0
  204. data/spec/java/tests_spec.rb +497 -0
  205. data/spec/packaging/archive_spec.rb +775 -0
  206. data/spec/packaging/artifact_namespace_spec.rb +743 -0
  207. data/spec/packaging/artifact_spec.rb +1074 -0
  208. data/spec/packaging/packaging_helper.rb +63 -0
  209. data/spec/packaging/packaging_spec.rb +719 -0
  210. data/spec/packaging/repository_array_spec.rb +109 -0
  211. data/spec/sandbox.rb +165 -0
  212. data/spec/scala/bdd_spec.rb +124 -0
  213. data/spec/scala/compiler_spec.rb +289 -0
  214. data/spec/scala/doc_spec.rb +88 -0
  215. data/spec/scala/scala.rb +38 -0
  216. data/spec/scala/tests_spec.rb +283 -0
  217. data/spec/spec_helpers.rb +369 -0
  218. data/spec/version_requirement_spec.rb +143 -0
  219. data/spec/xpath_matchers.rb +121 -0
  220. metadata +600 -0
@@ -0,0 +1,143 @@
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 File.expand_path(File.join(File.dirname(__FILE__), 'spec_helpers'))
18
+
19
+ describe Buildr::VersionRequirement, '.create' do
20
+ def create(str)
21
+ Buildr::VersionRequirement.create(str)
22
+ end
23
+
24
+ it 'should complain on invalid input' do
25
+ lambda { create }.should raise_error(Exception)
26
+ lambda { create('%') }.should raise_error(Exception, /invalid character/)
27
+ lambda { create('1#{0}') }.should raise_error(Exception, /invalid character/)
28
+ lambda { create('1.0rc`exit`') }.should raise_error(Exception, /invalid character/)
29
+ lambda { create(1.0) }.should raise_error(Exception)
30
+ lambda { create('1.0') }.should_not raise_error(Exception)
31
+ lambda { create('1.0rc3') }.should_not raise_error(Exception)
32
+ end
33
+
34
+ it 'should allow versions using hyphen' do
35
+ lambda { create('1.0-rc3') }.should_not raise_error(Exception)
36
+ end
37
+
38
+ it 'should create a single version requirement' do
39
+ create('1.0').should_not be_composed
40
+ end
41
+
42
+ it 'should create a composed version requirement' do
43
+ create('1.0 | 2.1').should be_composed
44
+ end
45
+ end
46
+
47
+ =begin
48
+ # TODO: Fix this.
49
+ # 1. Can't use should_satisfy, this breaks under RSpec 1.2
50
+ # 2. These should_satisfy calls are not proper specs since the subject is
51
+ # the satistifed_by? method. satisfied_by should satisfy???
52
+ describe Buildr::VersionRequirement, '#satisfied_by?' do
53
+ def should_satisfy(str, valids = [], invalids = [])
54
+ req = Buildr::VersionRequirement.create(str)
55
+ valids.each { |v| req.should be_satisfied_by(v) }
56
+ invalids.each { |v| req.should_not be_satisfied_by(v) }
57
+ end
58
+
59
+ it 'should accept Gem version operators' do
60
+ should_satisfy '1.0', %w(1 1.0), %w(1.1 0.1)
61
+ should_satisfy '=1.0', %w(1 1.0), %w(1.1 0.1)
62
+ should_satisfy '= 1.0', %w(1 1.0), %w(1.1 0.1)
63
+ should_satisfy '!= 1.0', %w(0.9 1.1 2), %w(1 1.0 1.0.0)
64
+
65
+ should_satisfy '>1.0', %w(1.0.1), %w(1 1.0 0.1)
66
+ should_satisfy '>=1.0', %w(1.0.1 1 1.0), %w(0.9)
67
+
68
+ should_satisfy '<1.0', %w(0.9 0.9.9), %w(1 1.0 1.1 2)
69
+ should_satisfy '<=1.0', %w(0.9 0.9.9 1 1.0), %w(1.1 2)
70
+
71
+ should_satisfy '~> 1.2.3', %w(1.2.3 1.2.3.4 1.2.4), %w(1.2.1 0.9 1.4 2)
72
+ end
73
+
74
+ it 'should accept logic not operator' do
75
+ should_satisfy 'not 0.5', %w(0 1), %w(0.5)
76
+ should_satisfy '! 0.5', %w(0 1), %w(0.5)
77
+ should_satisfy '!= 0.5', %w(0 1), %w(0.5)
78
+ should_satisfy '!<= 0.5', %w(0.5.1 2), %w(0.5)
79
+ end
80
+
81
+ it 'should accept logic or operator' do
82
+ should_satisfy '0.5 or 2.0', %w(0.5 2.0), %w(1.0 0.5.1 2.0.9)
83
+ should_satisfy '0.5 | 2.0', %w(0.5 2.0), %w(1.0 0.5.1 2.0.9)
84
+ end
85
+
86
+ it 'should accept logic and operator' do
87
+ should_satisfy '>1.5 and <2.0', %w(1.6 1.9), %w(1.5 2 2.0)
88
+ should_satisfy '>1.5 & <2.0', %w(1.6 1.9), %w(1.5 2 2.0)
89
+ end
90
+
91
+ it 'should assume logic and if missing operator between expressions' do
92
+ should_satisfy '>1.5 <2.0', %w(1.6 1.9), %w(1.5 2 2.0)
93
+ end
94
+
95
+ it 'should allow combining logic operators' do
96
+ should_satisfy '>1.0 | <2.0 | =3.0', %w(1.5 3.0 1 2 4)
97
+ should_satisfy '>1.0 & <2.0 | =3.0', %w(1.3 3.0), %w(1 2)
98
+ should_satisfy '=1.0 | <2.0 & =0.5', %w(0.5 1.0), %w(1.1 0.1 2)
99
+ should_satisfy '~>1.1 | ~>1.3 | ~>1.5 | 2.0', %w(2 1.5.6 1.1.2 1.1.3), %w(1.0.9 0.5 2.2.1)
100
+ should_satisfy 'not(2) | 1', %w(1 3), %w(2)
101
+ end
102
+
103
+ it 'should allow using parens to group logic expressions' do
104
+ should_satisfy '(1.0)', %w(1 1.0), %w(0.9 1.1)
105
+ should_satisfy '!( !(1.0) )', %w(1 1.0), %w(0.9 1.1)
106
+ should_satisfy '1 | !(2 | 3)', %w(1), %w(2 3)
107
+ should_satisfy '!(2 | 3) | 1', %w(1), %w(2 3)
108
+ end
109
+ end
110
+ =end
111
+
112
+ describe Buildr::VersionRequirement, '#default' do
113
+ it 'should return nil if missing default requirement' do
114
+ Buildr::VersionRequirement.create('>1').default.should be_nil
115
+ Buildr::VersionRequirement.create('<1').default.should be_nil
116
+ Buildr::VersionRequirement.create('!1').default.should be_nil
117
+ Buildr::VersionRequirement.create('!<=1').default.should be_nil
118
+ end
119
+
120
+ it 'should return the last version with a = requirement' do
121
+ Buildr::VersionRequirement.create('1').default.should == '1'
122
+ Buildr::VersionRequirement.create('=1').default.should == '1'
123
+ Buildr::VersionRequirement.create('<=1').default.should == '1'
124
+ Buildr::VersionRequirement.create('>=1').default.should == '1'
125
+ Buildr::VersionRequirement.create('1 | 2 | 3').default.should == '3'
126
+ Buildr::VersionRequirement.create('1 2 | 3').default.should == '3'
127
+ Buildr::VersionRequirement.create('1 & 2 | 3').default.should == '3'
128
+ end
129
+ end
130
+
131
+ describe Buildr::VersionRequirement, '#version?' do
132
+ it 'should identify valid versions' do
133
+ Buildr::VersionRequirement.version?('1').should be_true
134
+ Buildr::VersionRequirement.version?('1a').should be_true
135
+ Buildr::VersionRequirement.version?('1.0').should be_true
136
+ Buildr::VersionRequirement.version?('11.0').should be_true
137
+ Buildr::VersionRequirement.version?(' 11.0 ').should be_true
138
+ Buildr::VersionRequirement.version?('11.0-alpha').should be_true
139
+
140
+ Buildr::VersionRequirement.version?('a').should be_false
141
+ Buildr::VersionRequirement.version?('a1').should be_false
142
+ end
143
+ end
@@ -0,0 +1,121 @@
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 'rexml/document'
17
+ require 'rexml/element'
18
+
19
+ module RSpec
20
+ module Matchers
21
+
22
+ # check if the xpath exists one or more times
23
+ class HaveXpath
24
+ def initialize(xpath)
25
+ @xpath = xpath
26
+ end
27
+
28
+ def matches?(response)
29
+ @response = response
30
+ doc = response.is_a?(REXML::Document) ? response : REXML::Document.new(@response)
31
+ match = REXML::XPath.match(doc, @xpath)
32
+ not match.empty?
33
+ end
34
+
35
+ def failure_message
36
+ "Did not find expected xpath #{@xpath}"
37
+ end
38
+
39
+ def negative_failure_message
40
+ "Did find unexpected xpath #{@xpath}"
41
+ end
42
+
43
+ def description
44
+ "match the xpath expression #{@xpath}"
45
+ end
46
+ end
47
+
48
+ def have_xpath(xpath)
49
+ HaveXpath.new(xpath)
50
+ end
51
+
52
+ # check if the xpath has the specified value
53
+ # value is a string and there must be a single result to match its
54
+ # equality against
55
+ class MatchXpath
56
+ def initialize(xpath, val)
57
+ @xpath = xpath
58
+ @val= val
59
+ end
60
+
61
+ def matches?(response)
62
+ @response = response
63
+ doc = response.is_a?(REXML::Document) ? response : REXML::Document.new(@response)
64
+ ok = true
65
+ REXML::XPath.each(doc, @xpath) do |e|
66
+ @actual_val = case e
67
+ when REXML::Attribute
68
+ e.to_s
69
+ when REXML::Element
70
+ e.text
71
+ else
72
+ e.to_s
73
+ end
74
+ return false unless @val == @actual_val
75
+ end
76
+ return ok
77
+ end
78
+
79
+ def failure_message
80
+ "The xpath #{@xpath} did not have the value '#{@val}' It was '#{@actual_val}'"
81
+ end
82
+
83
+ def description
84
+ "match the xpath expression #{@xpath} with #{@val}"
85
+ end
86
+ end
87
+
88
+ def match_xpath(xpath, val)
89
+ MatchXpath.new(xpath, val)
90
+ end
91
+
92
+ # checks if the given xpath occurs num times
93
+ class HaveNodes #:nodoc:
94
+ def initialize(xpath, num)
95
+ @xpath= xpath
96
+ @num = num
97
+ end
98
+
99
+ def matches?(response)
100
+ @response = response
101
+ doc = response.is_a?(REXML::Document) ? response : REXML::Document.new(@response)
102
+ match = REXML::XPath.match(doc, @xpath)
103
+ @num_found= match.size
104
+ @num_found == @num
105
+ end
106
+
107
+ def failure_message
108
+ "Did not find expected number of nodes #{@num} in xpath #{@xpath} Found #{@num_found}"
109
+ end
110
+
111
+ def description
112
+ "match the number of nodes #{@num}"
113
+ end
114
+ end
115
+
116
+ def have_nodes(xpath, num)
117
+ HaveNodes.new(xpath, num)
118
+ end
119
+
120
+ end
121
+ end
metadata ADDED
@@ -0,0 +1,600 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mguymon-buildr
3
+ version: !ruby/object:Gem::Version
4
+ hash: 13
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 4
9
+ - 5
10
+ version: 1.4.5
11
+ platform: java
12
+ authors:
13
+ - Apache Buildr
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-03-30 00:00:00 -04:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: rake
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - "="
28
+ - !ruby/object:Gem::Version
29
+ hash: 49
30
+ segments:
31
+ - 0
32
+ - 8
33
+ - 7
34
+ version: 0.8.7
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: builder
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - "="
44
+ - !ruby/object:Gem::Version
45
+ hash: 15
46
+ segments:
47
+ - 2
48
+ - 1
49
+ - 2
50
+ version: 2.1.2
51
+ type: :runtime
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: net-ssh
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - "="
60
+ - !ruby/object:Gem::Version
61
+ hash: 33
62
+ segments:
63
+ - 2
64
+ - 0
65
+ - 23
66
+ version: 2.0.23
67
+ type: :runtime
68
+ version_requirements: *id003
69
+ - !ruby/object:Gem::Dependency
70
+ name: net-sftp
71
+ prerelease: false
72
+ requirement: &id004 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - "="
76
+ - !ruby/object:Gem::Version
77
+ hash: 7
78
+ segments:
79
+ - 2
80
+ - 0
81
+ - 4
82
+ version: 2.0.4
83
+ type: :runtime
84
+ version_requirements: *id004
85
+ - !ruby/object:Gem::Dependency
86
+ name: rubyzip
87
+ prerelease: false
88
+ requirement: &id005 !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - "="
92
+ - !ruby/object:Gem::Version
93
+ hash: 51
94
+ segments:
95
+ - 0
96
+ - 9
97
+ - 4
98
+ version: 0.9.4
99
+ type: :runtime
100
+ version_requirements: *id005
101
+ - !ruby/object:Gem::Dependency
102
+ name: highline
103
+ prerelease: false
104
+ requirement: &id006 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - "="
108
+ - !ruby/object:Gem::Version
109
+ hash: 1
110
+ segments:
111
+ - 1
112
+ - 5
113
+ - 1
114
+ version: 1.5.1
115
+ type: :runtime
116
+ version_requirements: *id006
117
+ - !ruby/object:Gem::Dependency
118
+ name: json_pure
119
+ prerelease: false
120
+ requirement: &id007 !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - "="
124
+ - !ruby/object:Gem::Version
125
+ hash: 1
126
+ segments:
127
+ - 1
128
+ - 4
129
+ - 3
130
+ version: 1.4.3
131
+ type: :runtime
132
+ version_requirements: *id007
133
+ - !ruby/object:Gem::Dependency
134
+ name: rubyforge
135
+ prerelease: false
136
+ requirement: &id008 !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - "="
140
+ - !ruby/object:Gem::Version
141
+ hash: 9
142
+ segments:
143
+ - 2
144
+ - 0
145
+ - 3
146
+ version: 2.0.3
147
+ type: :runtime
148
+ version_requirements: *id008
149
+ - !ruby/object:Gem::Dependency
150
+ name: hoe
151
+ prerelease: false
152
+ requirement: &id009 !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - "="
156
+ - !ruby/object:Gem::Version
157
+ hash: 5
158
+ segments:
159
+ - 2
160
+ - 3
161
+ - 3
162
+ version: 2.3.3
163
+ type: :runtime
164
+ version_requirements: *id009
165
+ - !ruby/object:Gem::Dependency
166
+ name: atoulme-Antwrap
167
+ prerelease: false
168
+ requirement: &id010 !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - "="
172
+ - !ruby/object:Gem::Version
173
+ hash: 1
174
+ segments:
175
+ - 0
176
+ - 7
177
+ - 1
178
+ version: 0.7.1
179
+ type: :runtime
180
+ version_requirements: *id010
181
+ - !ruby/object:Gem::Dependency
182
+ name: diff-lcs
183
+ prerelease: false
184
+ requirement: &id011 !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - "="
188
+ - !ruby/object:Gem::Version
189
+ hash: 23
190
+ segments:
191
+ - 1
192
+ - 1
193
+ - 2
194
+ version: 1.1.2
195
+ type: :runtime
196
+ version_requirements: *id011
197
+ - !ruby/object:Gem::Dependency
198
+ name: rspec-expectations
199
+ prerelease: false
200
+ requirement: &id012 !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - "="
204
+ - !ruby/object:Gem::Version
205
+ hash: 11
206
+ segments:
207
+ - 2
208
+ - 1
209
+ - 0
210
+ version: 2.1.0
211
+ type: :runtime
212
+ version_requirements: *id012
213
+ - !ruby/object:Gem::Dependency
214
+ name: rspec-mocks
215
+ prerelease: false
216
+ requirement: &id013 !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - "="
220
+ - !ruby/object:Gem::Version
221
+ hash: 11
222
+ segments:
223
+ - 2
224
+ - 1
225
+ - 0
226
+ version: 2.1.0
227
+ type: :runtime
228
+ version_requirements: *id013
229
+ - !ruby/object:Gem::Dependency
230
+ name: rspec-core
231
+ prerelease: false
232
+ requirement: &id014 !ruby/object:Gem::Requirement
233
+ none: false
234
+ requirements:
235
+ - - "="
236
+ - !ruby/object:Gem::Version
237
+ hash: 11
238
+ segments:
239
+ - 2
240
+ - 1
241
+ - 0
242
+ version: 2.1.0
243
+ type: :runtime
244
+ version_requirements: *id014
245
+ - !ruby/object:Gem::Dependency
246
+ name: rspec
247
+ prerelease: false
248
+ requirement: &id015 !ruby/object:Gem::Requirement
249
+ none: false
250
+ requirements:
251
+ - - "="
252
+ - !ruby/object:Gem::Version
253
+ hash: 11
254
+ segments:
255
+ - 2
256
+ - 1
257
+ - 0
258
+ version: 2.1.0
259
+ type: :runtime
260
+ version_requirements: *id015
261
+ - !ruby/object:Gem::Dependency
262
+ name: xml-simple
263
+ prerelease: false
264
+ requirement: &id016 !ruby/object:Gem::Requirement
265
+ none: false
266
+ requirements:
267
+ - - "="
268
+ - !ruby/object:Gem::Version
269
+ hash: 15
270
+ segments:
271
+ - 1
272
+ - 0
273
+ - 12
274
+ version: 1.0.12
275
+ type: :runtime
276
+ version_requirements: *id016
277
+ - !ruby/object:Gem::Dependency
278
+ name: minitar
279
+ prerelease: false
280
+ requirement: &id017 !ruby/object:Gem::Requirement
281
+ none: false
282
+ requirements:
283
+ - - "="
284
+ - !ruby/object:Gem::Version
285
+ hash: 13
286
+ segments:
287
+ - 0
288
+ - 5
289
+ - 3
290
+ version: 0.5.3
291
+ type: :runtime
292
+ version_requirements: *id017
293
+ - !ruby/object:Gem::Dependency
294
+ name: jruby-openssl
295
+ prerelease: false
296
+ requirement: &id018 !ruby/object:Gem::Requirement
297
+ none: false
298
+ requirements:
299
+ - - ">="
300
+ - !ruby/object:Gem::Version
301
+ hash: 5
302
+ segments:
303
+ - 0
304
+ - 7
305
+ version: "0.7"
306
+ type: :runtime
307
+ version_requirements: *id018
308
+ - !ruby/object:Gem::Dependency
309
+ name: sdoc
310
+ prerelease: false
311
+ requirement: &id019 !ruby/object:Gem::Requirement
312
+ none: false
313
+ requirements:
314
+ - - ">="
315
+ - !ruby/object:Gem::Version
316
+ hash: 3
317
+ segments:
318
+ - 0
319
+ version: "0"
320
+ type: :development
321
+ version_requirements: *id019
322
+ description: |
323
+ Apache Buildr is a build system for Java-based applications, including support
324
+ for Scala, Groovy and a growing number of JVM languages and tools. We wanted
325
+ something that's simple and intuitive to use, so we only need to tell it what
326
+ to do, and it takes care of the rest. But also something we can easily extend
327
+ for those one-off tasks, with a language that's a joy to use.
328
+
329
+ email: users@buildr.apache.org
330
+ executables:
331
+ - buildr
332
+ extensions: []
333
+
334
+ extra_rdoc_files:
335
+ - README.rdoc
336
+ - CHANGELOG
337
+ - LICENSE
338
+ - NOTICE
339
+ files:
340
+ - addon/buildr/jdepend.rb
341
+ - addon/buildr/org/apache/buildr/JettyWrapper$1.class
342
+ - addon/buildr/org/apache/buildr/JettyWrapper.class
343
+ - addon/buildr/org/apache/buildr/JettyWrapper$BuildrHandler.class
344
+ - addon/buildr/org/apache/buildr/BuildrNail$Main.class
345
+ - addon/buildr/org/apache/buildr/BuildrNail.class
346
+ - addon/buildr/org/apache/buildr/BuildrNail.java
347
+ - addon/buildr/org/apache/buildr/JettyWrapper.java
348
+ - addon/buildr/bnd.rb
349
+ - addon/buildr/jaxb_xjc.rb
350
+ - addon/buildr/nailgun.rb
351
+ - addon/buildr/javacc.rb
352
+ - addon/buildr/emma.rb
353
+ - addon/buildr/xmlbeans.rb
354
+ - addon/buildr/cobertura.rb
355
+ - addon/buildr/protobuf.rb
356
+ - addon/buildr/hibernate.rb
357
+ - addon/buildr/antlr.rb
358
+ - addon/buildr/drb.rb
359
+ - addon/buildr/openjpa.rb
360
+ - addon/buildr/jetty.rb
361
+ - addon/buildr/jibx.rb
362
+ - bin/buildr
363
+ - doc/scripts/install-osx.sh
364
+ - doc/scripts/install-linux.sh
365
+ - doc/scripts/buildr-git.rb
366
+ - doc/scripts/install-jruby.sh
367
+ - doc/scripts/gitflow.rb
368
+ - doc/packaging.textile
369
+ - doc/testing.textile
370
+ - doc/_config.yml
371
+ - doc/installing.textile
372
+ - doc/settings_profiles.textile
373
+ - doc/artifacts.textile
374
+ - doc/preface.textile
375
+ - doc/contributing.textile
376
+ - doc/quick_start.textile
377
+ - doc/extending.textile
378
+ - doc/building.textile
379
+ - doc/css/syntax.css
380
+ - doc/css/print.css
381
+ - doc/css/default.css
382
+ - doc/_layouts/preface.html
383
+ - doc/_layouts/default.html
384
+ - doc/more_stuff.textile
385
+ - doc/images/1442160941-frontcover.jpg
386
+ - doc/images/tip.png
387
+ - doc/images/buildr.png
388
+ - doc/images/zbuildr.png
389
+ - doc/images/asf-logo.gif
390
+ - doc/images/project-structure.png
391
+ - doc/images/zbuildr.tif
392
+ - doc/images/growl-icon.tiff
393
+ - doc/images/asf-logo.png
394
+ - doc/images/buildr-hires.png
395
+ - doc/images/favicon.png
396
+ - doc/images/note.png
397
+ - doc/index.textile
398
+ - doc/download.textile
399
+ - doc/projects.textile
400
+ - doc/releasing.textile
401
+ - doc/mailing_lists.textile
402
+ - doc/languages.textile
403
+ - etc/KEYS
404
+ - lib/buildr/groovy.rb
405
+ - lib/buildr/packaging.rb
406
+ - lib/buildr/java/rjb.rb
407
+ - lib/buildr/java/jtestr_result.rb
408
+ - lib/buildr/java/version_requirement.rb
409
+ - lib/buildr/java/ant.rb
410
+ - lib/buildr/java/external.rb
411
+ - lib/buildr/java/doc.rb
412
+ - lib/buildr/java/pom.rb
413
+ - lib/buildr/java/org/apache/buildr/JavaTestFilter.class
414
+ - lib/buildr/java/org/apache/buildr/JavaTestFilter.java
415
+ - lib/buildr/java/compiler.rb
416
+ - lib/buildr/java/packaging.rb
417
+ - lib/buildr/java/bdd.rb
418
+ - lib/buildr/java/emma.rb
419
+ - lib/buildr/java/cobertura.rb
420
+ - lib/buildr/java/jtestr_runner.rb.erb
421
+ - lib/buildr/java/deprecated.rb
422
+ - lib/buildr/java/test_result.rb
423
+ - lib/buildr/java/ecj.rb
424
+ - lib/buildr/java/jruby.rb
425
+ - lib/buildr/java/tests.rb
426
+ - lib/buildr/java/commands.rb
427
+ - lib/buildr/scala/doc.rb
428
+ - lib/buildr/scala/org/apache/buildr/SpecsSingletonRunner.java
429
+ - lib/buildr/scala/org/apache/buildr/SpecsSingletonRunner.class
430
+ - lib/buildr/scala/compiler.rb
431
+ - lib/buildr/scala/bdd.rb
432
+ - lib/buildr/scala/shell.rb
433
+ - lib/buildr/scala/tests.rb
434
+ - lib/buildr/resources/buildr.icns
435
+ - lib/buildr/resources/failed.png
436
+ - lib/buildr/resources/completed.png
437
+ - lib/buildr/resources/icons-license.txt
438
+ - lib/buildr/ide.rb
439
+ - lib/buildr/scala.rb
440
+ - lib/buildr/shell.rb
441
+ - lib/buildr/java.rb
442
+ - lib/buildr/clojure/shell.rb
443
+ - lib/buildr/clojure.rb
444
+ - lib/buildr/core/osx.rb
445
+ - lib/buildr/core/checks.rb
446
+ - lib/buildr/core/environment.rb
447
+ - lib/buildr/core/linux.rb
448
+ - lib/buildr/core/doc.rb
449
+ - lib/buildr/core/transports.rb
450
+ - lib/buildr/core/cc.rb
451
+ - lib/buildr/core/help.rb
452
+ - lib/buildr/core/filter.rb
453
+ - lib/buildr/core/common.rb
454
+ - lib/buildr/core/shell.rb
455
+ - lib/buildr/core/jrebel.rb
456
+ - lib/buildr/core/compile.rb
457
+ - lib/buildr/core/test.rb
458
+ - lib/buildr/core/util.rb
459
+ - lib/buildr/core/generate.rb
460
+ - lib/buildr/core/progressbar.rb
461
+ - lib/buildr/core/build.rb
462
+ - lib/buildr/core/application.rb
463
+ - lib/buildr/core/run.rb
464
+ - lib/buildr/core/project.rb
465
+ - lib/buildr/packaging/version_requirement.rb
466
+ - lib/buildr/packaging/artifact_search.rb
467
+ - lib/buildr/packaging/repository_array.rb
468
+ - lib/buildr/packaging/artifact.rb
469
+ - lib/buildr/packaging/zip.rb
470
+ - lib/buildr/packaging/gems.rb
471
+ - lib/buildr/packaging/package.rb
472
+ - lib/buildr/packaging/archive.rb
473
+ - lib/buildr/packaging/ziptask.rb
474
+ - lib/buildr/packaging/tar.rb
475
+ - lib/buildr/packaging/artifact_namespace.rb
476
+ - lib/buildr/ide/idea.rb
477
+ - lib/buildr/ide/eclipse.rb
478
+ - lib/buildr/ide/eclipse/plugin.rb
479
+ - lib/buildr/ide/eclipse/scala.rb
480
+ - lib/buildr/ide/eclipse/java.rb
481
+ - lib/buildr/run.rb
482
+ - lib/buildr/groovy/doc.rb
483
+ - lib/buildr/groovy/compiler.rb
484
+ - lib/buildr/groovy/bdd.rb
485
+ - lib/buildr/groovy/shell.rb
486
+ - lib/buildr/version.rb
487
+ - lib/buildr/core.rb
488
+ - lib/buildr.rb
489
+ - rakelib/rspec.rake
490
+ - rakelib/release.rake
491
+ - rakelib/checks.rake
492
+ - rakelib/doc.rake
493
+ - rakelib/all-in-one.rake
494
+ - rakelib/setup.rake
495
+ - rakelib/package.rake
496
+ - rakelib/stage.rake
497
+ - rakelib/metrics.rake
498
+ - spec/sandbox.rb
499
+ - spec/xpath_matchers.rb
500
+ - spec/java/external_spec.rb
501
+ - spec/java/ant_spec.rb
502
+ - spec/java/java_spec.rb
503
+ - spec/java/run_spec.rb
504
+ - spec/java/doc_spec.rb
505
+ - spec/java/compiler_spec.rb
506
+ - spec/java/bdd_spec.rb
507
+ - spec/java/ecj_spec.rb
508
+ - spec/java/packaging_spec.rb
509
+ - spec/java/test_coverage_helper.rb
510
+ - spec/java/emma_spec.rb
511
+ - spec/java/tests_spec.rb
512
+ - spec/java/commands_spec.rb
513
+ - spec/java/cobertura_spec.rb
514
+ - spec/scala/scala.rb
515
+ - spec/scala/doc_spec.rb
516
+ - spec/scala/compiler_spec.rb
517
+ - spec/scala/bdd_spec.rb
518
+ - spec/scala/tests_spec.rb
519
+ - spec/addon/bnd_spec.rb
520
+ - spec/addon/jaxb_xjc_spec.rb
521
+ - spec/addon/drb_spec.rb
522
+ - spec/core/project_spec.rb
523
+ - spec/core/build_spec.rb
524
+ - spec/core/extension_spec.rb
525
+ - spec/core/test_spec.rb
526
+ - spec/core/cc_spec.rb
527
+ - spec/core/util_spec.rb
528
+ - spec/core/run_spec.rb
529
+ - spec/core/doc_spec.rb
530
+ - spec/core/application_spec.rb
531
+ - spec/core/compile_spec.rb
532
+ - spec/core/checks_spec.rb
533
+ - spec/core/common_spec.rb
534
+ - spec/core/transport_spec.rb
535
+ - spec/core/shell_spec.rb
536
+ - spec/core/generate_spec.rb
537
+ - spec/packaging/artifact_spec.rb
538
+ - spec/packaging/archive_spec.rb
539
+ - spec/packaging/artifact_namespace_spec.rb
540
+ - spec/packaging/repository_array_spec.rb
541
+ - spec/packaging/packaging_spec.rb
542
+ - spec/packaging/packaging_helper.rb
543
+ - spec/version_requirement_spec.rb
544
+ - spec/ide/idea_spec.rb
545
+ - spec/ide/eclipse_spec.rb
546
+ - spec/groovy/doc_spec.rb
547
+ - spec/groovy/compiler_spec.rb
548
+ - spec/groovy/bdd_spec.rb
549
+ - spec/spec_helpers.rb
550
+ - buildr.gemspec
551
+ - buildr.buildfile
552
+ - LICENSE
553
+ - NOTICE
554
+ - CHANGELOG
555
+ - README.rdoc
556
+ - Rakefile
557
+ - _buildr
558
+ - _jbuildr
559
+ has_rdoc: true
560
+ homepage: http://buildr.apache.org/
561
+ licenses: []
562
+
563
+ post_install_message: To get started run buildr --help
564
+ rdoc_options:
565
+ - --title
566
+ - Buildr
567
+ - --main
568
+ - README.rdoc
569
+ - --webcvs
570
+ - http://svn.apache.org/repos/asf/buildr/trunk/
571
+ require_paths:
572
+ - lib
573
+ - addon
574
+ required_ruby_version: !ruby/object:Gem::Requirement
575
+ none: false
576
+ requirements:
577
+ - - ">="
578
+ - !ruby/object:Gem::Version
579
+ hash: 3
580
+ segments:
581
+ - 0
582
+ version: "0"
583
+ required_rubygems_version: !ruby/object:Gem::Requirement
584
+ none: false
585
+ requirements:
586
+ - - ">="
587
+ - !ruby/object:Gem::Version
588
+ hash: 3
589
+ segments:
590
+ - 0
591
+ version: "0"
592
+ requirements: []
593
+
594
+ rubyforge_project: buildr
595
+ rubygems_version: 1.3.7
596
+ signing_key:
597
+ specification_version: 3
598
+ summary: Build like you code
599
+ test_files: []
600
+