mguymon-buildr 1.4.5

Sign up to get free protection for your applications and to get access to all the features.
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 +649 -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,649 @@
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: ruby
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: rjb
167
+ prerelease: false
168
+ requirement: &id010 !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - "="
172
+ - !ruby/object:Gem::Version
173
+ hash: 29
174
+ segments:
175
+ - 1
176
+ - 3
177
+ - 3
178
+ version: 1.3.3
179
+ type: :runtime
180
+ version_requirements: *id010
181
+ - !ruby/object:Gem::Dependency
182
+ name: atoulme-Antwrap
183
+ prerelease: false
184
+ requirement: &id011 !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - "="
188
+ - !ruby/object:Gem::Version
189
+ hash: 1
190
+ segments:
191
+ - 0
192
+ - 7
193
+ - 1
194
+ version: 0.7.1
195
+ type: :runtime
196
+ version_requirements: *id011
197
+ - !ruby/object:Gem::Dependency
198
+ name: diff-lcs
199
+ prerelease: false
200
+ requirement: &id012 !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - "="
204
+ - !ruby/object:Gem::Version
205
+ hash: 23
206
+ segments:
207
+ - 1
208
+ - 1
209
+ - 2
210
+ version: 1.1.2
211
+ type: :runtime
212
+ version_requirements: *id012
213
+ - !ruby/object:Gem::Dependency
214
+ name: rspec-expectations
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-mocks
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-core
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: rspec
263
+ prerelease: false
264
+ requirement: &id016 !ruby/object:Gem::Requirement
265
+ none: false
266
+ requirements:
267
+ - - "="
268
+ - !ruby/object:Gem::Version
269
+ hash: 11
270
+ segments:
271
+ - 2
272
+ - 1
273
+ - 0
274
+ version: 2.1.0
275
+ type: :runtime
276
+ version_requirements: *id016
277
+ - !ruby/object:Gem::Dependency
278
+ name: xml-simple
279
+ prerelease: false
280
+ requirement: &id017 !ruby/object:Gem::Requirement
281
+ none: false
282
+ requirements:
283
+ - - "="
284
+ - !ruby/object:Gem::Version
285
+ hash: 15
286
+ segments:
287
+ - 1
288
+ - 0
289
+ - 12
290
+ version: 1.0.12
291
+ type: :runtime
292
+ version_requirements: *id017
293
+ - !ruby/object:Gem::Dependency
294
+ name: minitar
295
+ prerelease: false
296
+ requirement: &id018 !ruby/object:Gem::Requirement
297
+ none: false
298
+ requirements:
299
+ - - "="
300
+ - !ruby/object:Gem::Version
301
+ hash: 13
302
+ segments:
303
+ - 0
304
+ - 5
305
+ - 3
306
+ version: 0.5.3
307
+ type: :runtime
308
+ version_requirements: *id018
309
+ - !ruby/object:Gem::Dependency
310
+ name: jekyll
311
+ prerelease: false
312
+ requirement: &id019 !ruby/object:Gem::Requirement
313
+ none: false
314
+ requirements:
315
+ - - ~>
316
+ - !ruby/object:Gem::Version
317
+ hash: 3
318
+ segments:
319
+ - 0
320
+ - 6
321
+ - 2
322
+ version: 0.6.2
323
+ type: :development
324
+ version_requirements: *id019
325
+ - !ruby/object:Gem::Dependency
326
+ name: sdoc
327
+ prerelease: false
328
+ requirement: &id020 !ruby/object:Gem::Requirement
329
+ none: false
330
+ requirements:
331
+ - - ">="
332
+ - !ruby/object:Gem::Version
333
+ hash: 3
334
+ segments:
335
+ - 0
336
+ version: "0"
337
+ type: :development
338
+ version_requirements: *id020
339
+ - !ruby/object:Gem::Dependency
340
+ name: rcov
341
+ prerelease: false
342
+ requirement: &id021 !ruby/object:Gem::Requirement
343
+ none: false
344
+ requirements:
345
+ - - "="
346
+ - !ruby/object:Gem::Version
347
+ hash: 41
348
+ segments:
349
+ - 0
350
+ - 9
351
+ - 9
352
+ version: 0.9.9
353
+ type: :development
354
+ version_requirements: *id021
355
+ - !ruby/object:Gem::Dependency
356
+ name: jekylltask
357
+ prerelease: false
358
+ requirement: &id022 !ruby/object:Gem::Requirement
359
+ none: false
360
+ requirements:
361
+ - - ">="
362
+ - !ruby/object:Gem::Version
363
+ hash: 19
364
+ segments:
365
+ - 1
366
+ - 0
367
+ - 2
368
+ version: 1.0.2
369
+ type: :development
370
+ version_requirements: *id022
371
+ description: |
372
+ Apache Buildr is a build system for Java-based applications, including support
373
+ for Scala, Groovy and a growing number of JVM languages and tools. We wanted
374
+ something that's simple and intuitive to use, so we only need to tell it what
375
+ to do, and it takes care of the rest. But also something we can easily extend
376
+ for those one-off tasks, with a language that's a joy to use.
377
+
378
+ email: users@buildr.apache.org
379
+ executables:
380
+ - buildr
381
+ extensions: []
382
+
383
+ extra_rdoc_files:
384
+ - README.rdoc
385
+ - CHANGELOG
386
+ - LICENSE
387
+ - NOTICE
388
+ files:
389
+ - addon/buildr/jdepend.rb
390
+ - addon/buildr/org/apache/buildr/JettyWrapper$1.class
391
+ - addon/buildr/org/apache/buildr/JettyWrapper.class
392
+ - addon/buildr/org/apache/buildr/JettyWrapper$BuildrHandler.class
393
+ - addon/buildr/org/apache/buildr/BuildrNail$Main.class
394
+ - addon/buildr/org/apache/buildr/BuildrNail.class
395
+ - addon/buildr/org/apache/buildr/BuildrNail.java
396
+ - addon/buildr/org/apache/buildr/JettyWrapper.java
397
+ - addon/buildr/bnd.rb
398
+ - addon/buildr/jaxb_xjc.rb
399
+ - addon/buildr/nailgun.rb
400
+ - addon/buildr/javacc.rb
401
+ - addon/buildr/emma.rb
402
+ - addon/buildr/xmlbeans.rb
403
+ - addon/buildr/cobertura.rb
404
+ - addon/buildr/protobuf.rb
405
+ - addon/buildr/hibernate.rb
406
+ - addon/buildr/antlr.rb
407
+ - addon/buildr/drb.rb
408
+ - addon/buildr/openjpa.rb
409
+ - addon/buildr/jetty.rb
410
+ - addon/buildr/jibx.rb
411
+ - bin/buildr
412
+ - doc/scripts/install-osx.sh
413
+ - doc/scripts/install-linux.sh
414
+ - doc/scripts/buildr-git.rb
415
+ - doc/scripts/install-jruby.sh
416
+ - doc/scripts/gitflow.rb
417
+ - doc/packaging.textile
418
+ - doc/testing.textile
419
+ - doc/_config.yml
420
+ - doc/installing.textile
421
+ - doc/settings_profiles.textile
422
+ - doc/artifacts.textile
423
+ - doc/preface.textile
424
+ - doc/contributing.textile
425
+ - doc/quick_start.textile
426
+ - doc/extending.textile
427
+ - doc/building.textile
428
+ - doc/css/syntax.css
429
+ - doc/css/print.css
430
+ - doc/css/default.css
431
+ - doc/_layouts/preface.html
432
+ - doc/_layouts/default.html
433
+ - doc/more_stuff.textile
434
+ - doc/images/1442160941-frontcover.jpg
435
+ - doc/images/tip.png
436
+ - doc/images/buildr.png
437
+ - doc/images/zbuildr.png
438
+ - doc/images/asf-logo.gif
439
+ - doc/images/project-structure.png
440
+ - doc/images/zbuildr.tif
441
+ - doc/images/growl-icon.tiff
442
+ - doc/images/asf-logo.png
443
+ - doc/images/buildr-hires.png
444
+ - doc/images/favicon.png
445
+ - doc/images/note.png
446
+ - doc/index.textile
447
+ - doc/download.textile
448
+ - doc/projects.textile
449
+ - doc/releasing.textile
450
+ - doc/mailing_lists.textile
451
+ - doc/languages.textile
452
+ - etc/KEYS
453
+ - lib/buildr/groovy.rb
454
+ - lib/buildr/packaging.rb
455
+ - lib/buildr/java/rjb.rb
456
+ - lib/buildr/java/jtestr_result.rb
457
+ - lib/buildr/java/version_requirement.rb
458
+ - lib/buildr/java/ant.rb
459
+ - lib/buildr/java/external.rb
460
+ - lib/buildr/java/doc.rb
461
+ - lib/buildr/java/pom.rb
462
+ - lib/buildr/java/org/apache/buildr/JavaTestFilter.class
463
+ - lib/buildr/java/org/apache/buildr/JavaTestFilter.java
464
+ - lib/buildr/java/compiler.rb
465
+ - lib/buildr/java/packaging.rb
466
+ - lib/buildr/java/bdd.rb
467
+ - lib/buildr/java/emma.rb
468
+ - lib/buildr/java/cobertura.rb
469
+ - lib/buildr/java/jtestr_runner.rb.erb
470
+ - lib/buildr/java/deprecated.rb
471
+ - lib/buildr/java/test_result.rb
472
+ - lib/buildr/java/ecj.rb
473
+ - lib/buildr/java/jruby.rb
474
+ - lib/buildr/java/tests.rb
475
+ - lib/buildr/java/commands.rb
476
+ - lib/buildr/scala/doc.rb
477
+ - lib/buildr/scala/org/apache/buildr/SpecsSingletonRunner.java
478
+ - lib/buildr/scala/org/apache/buildr/SpecsSingletonRunner.class
479
+ - lib/buildr/scala/compiler.rb
480
+ - lib/buildr/scala/bdd.rb
481
+ - lib/buildr/scala/shell.rb
482
+ - lib/buildr/scala/tests.rb
483
+ - lib/buildr/resources/buildr.icns
484
+ - lib/buildr/resources/failed.png
485
+ - lib/buildr/resources/completed.png
486
+ - lib/buildr/resources/icons-license.txt
487
+ - lib/buildr/ide.rb
488
+ - lib/buildr/scala.rb
489
+ - lib/buildr/shell.rb
490
+ - lib/buildr/java.rb
491
+ - lib/buildr/clojure/shell.rb
492
+ - lib/buildr/clojure.rb
493
+ - lib/buildr/core/osx.rb
494
+ - lib/buildr/core/checks.rb
495
+ - lib/buildr/core/environment.rb
496
+ - lib/buildr/core/linux.rb
497
+ - lib/buildr/core/doc.rb
498
+ - lib/buildr/core/transports.rb
499
+ - lib/buildr/core/cc.rb
500
+ - lib/buildr/core/help.rb
501
+ - lib/buildr/core/filter.rb
502
+ - lib/buildr/core/common.rb
503
+ - lib/buildr/core/shell.rb
504
+ - lib/buildr/core/jrebel.rb
505
+ - lib/buildr/core/compile.rb
506
+ - lib/buildr/core/test.rb
507
+ - lib/buildr/core/util.rb
508
+ - lib/buildr/core/generate.rb
509
+ - lib/buildr/core/progressbar.rb
510
+ - lib/buildr/core/build.rb
511
+ - lib/buildr/core/application.rb
512
+ - lib/buildr/core/run.rb
513
+ - lib/buildr/core/project.rb
514
+ - lib/buildr/packaging/version_requirement.rb
515
+ - lib/buildr/packaging/artifact_search.rb
516
+ - lib/buildr/packaging/repository_array.rb
517
+ - lib/buildr/packaging/artifact.rb
518
+ - lib/buildr/packaging/zip.rb
519
+ - lib/buildr/packaging/gems.rb
520
+ - lib/buildr/packaging/package.rb
521
+ - lib/buildr/packaging/archive.rb
522
+ - lib/buildr/packaging/ziptask.rb
523
+ - lib/buildr/packaging/tar.rb
524
+ - lib/buildr/packaging/artifact_namespace.rb
525
+ - lib/buildr/ide/idea.rb
526
+ - lib/buildr/ide/eclipse.rb
527
+ - lib/buildr/ide/eclipse/plugin.rb
528
+ - lib/buildr/ide/eclipse/scala.rb
529
+ - lib/buildr/ide/eclipse/java.rb
530
+ - lib/buildr/run.rb
531
+ - lib/buildr/groovy/doc.rb
532
+ - lib/buildr/groovy/compiler.rb
533
+ - lib/buildr/groovy/bdd.rb
534
+ - lib/buildr/groovy/shell.rb
535
+ - lib/buildr/version.rb
536
+ - lib/buildr/core.rb
537
+ - lib/buildr.rb
538
+ - rakelib/rspec.rake
539
+ - rakelib/release.rake
540
+ - rakelib/checks.rake
541
+ - rakelib/doc.rake
542
+ - rakelib/all-in-one.rake
543
+ - rakelib/setup.rake
544
+ - rakelib/package.rake
545
+ - rakelib/stage.rake
546
+ - rakelib/metrics.rake
547
+ - spec/sandbox.rb
548
+ - spec/xpath_matchers.rb
549
+ - spec/java/external_spec.rb
550
+ - spec/java/ant_spec.rb
551
+ - spec/java/java_spec.rb
552
+ - spec/java/run_spec.rb
553
+ - spec/java/doc_spec.rb
554
+ - spec/java/compiler_spec.rb
555
+ - spec/java/bdd_spec.rb
556
+ - spec/java/ecj_spec.rb
557
+ - spec/java/packaging_spec.rb
558
+ - spec/java/test_coverage_helper.rb
559
+ - spec/java/emma_spec.rb
560
+ - spec/java/tests_spec.rb
561
+ - spec/java/commands_spec.rb
562
+ - spec/java/cobertura_spec.rb
563
+ - spec/scala/scala.rb
564
+ - spec/scala/doc_spec.rb
565
+ - spec/scala/compiler_spec.rb
566
+ - spec/scala/bdd_spec.rb
567
+ - spec/scala/tests_spec.rb
568
+ - spec/addon/bnd_spec.rb
569
+ - spec/addon/jaxb_xjc_spec.rb
570
+ - spec/addon/drb_spec.rb
571
+ - spec/core/project_spec.rb
572
+ - spec/core/build_spec.rb
573
+ - spec/core/extension_spec.rb
574
+ - spec/core/test_spec.rb
575
+ - spec/core/cc_spec.rb
576
+ - spec/core/util_spec.rb
577
+ - spec/core/run_spec.rb
578
+ - spec/core/doc_spec.rb
579
+ - spec/core/application_spec.rb
580
+ - spec/core/compile_spec.rb
581
+ - spec/core/checks_spec.rb
582
+ - spec/core/common_spec.rb
583
+ - spec/core/transport_spec.rb
584
+ - spec/core/shell_spec.rb
585
+ - spec/core/generate_spec.rb
586
+ - spec/packaging/artifact_spec.rb
587
+ - spec/packaging/archive_spec.rb
588
+ - spec/packaging/artifact_namespace_spec.rb
589
+ - spec/packaging/repository_array_spec.rb
590
+ - spec/packaging/packaging_spec.rb
591
+ - spec/packaging/packaging_helper.rb
592
+ - spec/version_requirement_spec.rb
593
+ - spec/ide/idea_spec.rb
594
+ - spec/ide/eclipse_spec.rb
595
+ - spec/groovy/doc_spec.rb
596
+ - spec/groovy/compiler_spec.rb
597
+ - spec/groovy/bdd_spec.rb
598
+ - spec/spec_helpers.rb
599
+ - buildr.gemspec
600
+ - buildr.buildfile
601
+ - LICENSE
602
+ - NOTICE
603
+ - CHANGELOG
604
+ - README.rdoc
605
+ - Rakefile
606
+ - _buildr
607
+ - _jbuildr
608
+ has_rdoc: true
609
+ homepage: http://buildr.apache.org/
610
+ licenses: []
611
+
612
+ post_install_message: To get started run buildr --help
613
+ rdoc_options:
614
+ - --title
615
+ - Buildr
616
+ - --main
617
+ - README.rdoc
618
+ - --webcvs
619
+ - http://svn.apache.org/repos/asf/buildr/trunk/
620
+ require_paths:
621
+ - lib
622
+ - addon
623
+ required_ruby_version: !ruby/object:Gem::Requirement
624
+ none: false
625
+ requirements:
626
+ - - ">="
627
+ - !ruby/object:Gem::Version
628
+ hash: 3
629
+ segments:
630
+ - 0
631
+ version: "0"
632
+ required_rubygems_version: !ruby/object:Gem::Requirement
633
+ none: false
634
+ requirements:
635
+ - - ">="
636
+ - !ruby/object:Gem::Version
637
+ hash: 3
638
+ segments:
639
+ - 0
640
+ version: "0"
641
+ requirements: []
642
+
643
+ rubyforge_project: buildr
644
+ rubygems_version: 1.3.7
645
+ signing_key:
646
+ specification_version: 3
647
+ summary: Build like you code
648
+ test_files: []
649
+