ittayd-buildr 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. data/CHANGELOG +915 -0
  2. data/DISCLAIMER +7 -0
  3. data/LICENSE +176 -0
  4. data/NOTICE +26 -0
  5. data/README.rdoc +146 -0
  6. data/Rakefile +64 -0
  7. data/_buildr +28 -0
  8. data/addon/buildr/antlr.rb +65 -0
  9. data/addon/buildr/cobertura.rb +22 -0
  10. data/addon/buildr/drb.rb +281 -0
  11. data/addon/buildr/emma.rb +22 -0
  12. data/addon/buildr/hibernate.rb +142 -0
  13. data/addon/buildr/javacc.rb +85 -0
  14. data/addon/buildr/jdepend.rb +60 -0
  15. data/addon/buildr/jetty.rb +248 -0
  16. data/addon/buildr/jibx.rb +86 -0
  17. data/addon/buildr/nailgun.rb +221 -0
  18. data/addon/buildr/openjpa.rb +90 -0
  19. data/addon/buildr/org/apache/buildr/BuildrNail$Main.class +0 -0
  20. data/addon/buildr/org/apache/buildr/BuildrNail.class +0 -0
  21. data/addon/buildr/org/apache/buildr/BuildrNail.java +41 -0
  22. data/addon/buildr/org/apache/buildr/JettyWrapper$1.class +0 -0
  23. data/addon/buildr/org/apache/buildr/JettyWrapper$BuildrHandler.class +0 -0
  24. data/addon/buildr/org/apache/buildr/JettyWrapper.class +0 -0
  25. data/addon/buildr/org/apache/buildr/JettyWrapper.java +144 -0
  26. data/addon/buildr/path.rb +136 -0
  27. data/addon/buildr/xmlbeans.rb +93 -0
  28. data/bin/buildr +19 -0
  29. data/buildr.buildfile +53 -0
  30. data/buildr.gemspec +58 -0
  31. data/doc/css/default.css +228 -0
  32. data/doc/css/print.css +100 -0
  33. data/doc/css/syntax.css +52 -0
  34. data/doc/images/apache-incubator-logo.png +0 -0
  35. data/doc/images/buildr-hires.png +0 -0
  36. data/doc/images/buildr.png +0 -0
  37. data/doc/images/favicon.png +0 -0
  38. data/doc/images/growl-icon.tiff +0 -0
  39. data/doc/images/note.png +0 -0
  40. data/doc/images/project-structure.png +0 -0
  41. data/doc/images/tip.png +0 -0
  42. data/doc/images/zbuildr.tif +0 -0
  43. data/doc/pages/artifacts.textile +207 -0
  44. data/doc/pages/building.textile +240 -0
  45. data/doc/pages/contributing.textile +208 -0
  46. data/doc/pages/download.textile +62 -0
  47. data/doc/pages/extending.textile +175 -0
  48. data/doc/pages/getting_started.textile +273 -0
  49. data/doc/pages/index.textile +42 -0
  50. data/doc/pages/languages.textile +407 -0
  51. data/doc/pages/mailing_lists.textile +17 -0
  52. data/doc/pages/more_stuff.textile +314 -0
  53. data/doc/pages/packaging.textile +427 -0
  54. data/doc/pages/projects.textile +274 -0
  55. data/doc/pages/recipes.textile +103 -0
  56. data/doc/pages/settings_profiles.textile +274 -0
  57. data/doc/pages/testing.textile +212 -0
  58. data/doc/pages/troubleshooting.textile +103 -0
  59. data/doc/pages/whats_new.textile +323 -0
  60. data/doc/print.haml +51 -0
  61. data/doc/print.toc.yaml +29 -0
  62. data/doc/scripts/buildr-git.rb +412 -0
  63. data/doc/scripts/install-jruby.sh +44 -0
  64. data/doc/scripts/install-linux.sh +64 -0
  65. data/doc/scripts/install-osx.sh +52 -0
  66. data/doc/site.haml +56 -0
  67. data/doc/site.toc.yaml +47 -0
  68. data/etc/KEYS +151 -0
  69. data/etc/git-svn-authors +16 -0
  70. data/lib/buildr/core/application.rb +665 -0
  71. data/lib/buildr/core/build.rb +311 -0
  72. data/lib/buildr/core/checks.rb +254 -0
  73. data/lib/buildr/core/common.rb +150 -0
  74. data/lib/buildr/core/compile.rb +590 -0
  75. data/lib/buildr/core/environment.rb +117 -0
  76. data/lib/buildr/core/filter.rb +366 -0
  77. data/lib/buildr/core/generate.rb +195 -0
  78. data/lib/buildr/core/help.rb +119 -0
  79. data/lib/buildr/core/osx.rb +49 -0
  80. data/lib/buildr/core/progressbar.rb +156 -0
  81. data/lib/buildr/core/project.rb +923 -0
  82. data/lib/buildr/core/test.rb +715 -0
  83. data/lib/buildr/core/transports.rb +560 -0
  84. data/lib/buildr/core/util.rb +294 -0
  85. data/lib/buildr/core.rb +29 -0
  86. data/lib/buildr/groovy/bdd.rb +106 -0
  87. data/lib/buildr/groovy/compiler.rb +138 -0
  88. data/lib/buildr/groovy.rb +18 -0
  89. data/lib/buildr/ide/eclipse.rb +222 -0
  90. data/lib/buildr/ide/idea.ipr.template +300 -0
  91. data/lib/buildr/ide/idea.rb +190 -0
  92. data/lib/buildr/ide/idea7x.ipr.template +290 -0
  93. data/lib/buildr/ide/idea7x.rb +212 -0
  94. data/lib/buildr/ide.rb +19 -0
  95. data/lib/buildr/java/ant.rb +92 -0
  96. data/lib/buildr/java/bdd.rb +451 -0
  97. data/lib/buildr/java/cobertura.rb +236 -0
  98. data/lib/buildr/java/commands.rb +211 -0
  99. data/lib/buildr/java/compiler.rb +348 -0
  100. data/lib/buildr/java/deprecated.rb +141 -0
  101. data/lib/buildr/java/emma.rb +238 -0
  102. data/lib/buildr/java/jruby.rb +117 -0
  103. data/lib/buildr/java/jtestr_runner.rb.erb +116 -0
  104. data/lib/buildr/java/org/apache/buildr/JavaTestFilter.class +0 -0
  105. data/lib/buildr/java/org/apache/buildr/JavaTestFilter.java +119 -0
  106. data/lib/buildr/java/packaging.rb +717 -0
  107. data/lib/buildr/java/pom.rb +174 -0
  108. data/lib/buildr/java/rjb.rb +155 -0
  109. data/lib/buildr/java/test_result.rb +307 -0
  110. data/lib/buildr/java/tests.rb +329 -0
  111. data/lib/buildr/java/version_requirement.rb +172 -0
  112. data/lib/buildr/java.rb +23 -0
  113. data/lib/buildr/packaging/archive.rb +488 -0
  114. data/lib/buildr/packaging/artifact.rb +759 -0
  115. data/lib/buildr/packaging/artifact_namespace.rb +972 -0
  116. data/lib/buildr/packaging/artifact_search.rb +140 -0
  117. data/lib/buildr/packaging/gems.rb +102 -0
  118. data/lib/buildr/packaging/package.rb +233 -0
  119. data/lib/buildr/packaging/tar.rb +186 -0
  120. data/lib/buildr/packaging/version_requirement.rb +172 -0
  121. data/lib/buildr/packaging/zip.rb +64 -0
  122. data/lib/buildr/packaging/ziptask.rb +313 -0
  123. data/lib/buildr/packaging.rb +24 -0
  124. data/lib/buildr/resources/buildr.icns +0 -0
  125. data/lib/buildr/scala/compiler.rb +109 -0
  126. data/lib/buildr/scala/tests.rb +203 -0
  127. data/lib/buildr/scala.rb +19 -0
  128. data/lib/buildr.rb +33 -0
  129. data/rakelib/apache.rake +191 -0
  130. data/rakelib/changelog.rake +57 -0
  131. data/rakelib/doc.rake +103 -0
  132. data/rakelib/package.rake +76 -0
  133. data/rakelib/release.rake +65 -0
  134. data/rakelib/rspec.rake +83 -0
  135. data/rakelib/rubyforge.rake +56 -0
  136. data/rakelib/scm.rake +49 -0
  137. data/rakelib/setup.rake +81 -0
  138. data/rakelib/stage.rake +48 -0
  139. data/spec/addon/drb_spec.rb +328 -0
  140. data/spec/core/application_spec.rb +419 -0
  141. data/spec/core/build_spec.rb +423 -0
  142. data/spec/core/checks_spec.rb +519 -0
  143. data/spec/core/common_spec.rb +670 -0
  144. data/spec/core/compile_spec.rb +582 -0
  145. data/spec/core/generate_spec.rb +33 -0
  146. data/spec/core/project_spec.rb +776 -0
  147. data/spec/core/test_spec.rb +1098 -0
  148. data/spec/core/transport_spec.rb +500 -0
  149. data/spec/groovy/bdd_spec.rb +80 -0
  150. data/spec/groovy/compiler_spec.rb +239 -0
  151. data/spec/ide/eclipse_spec.rb +311 -0
  152. data/spec/java/ant.rb +33 -0
  153. data/spec/java/bdd_spec.rb +358 -0
  154. data/spec/java/cobertura_spec.rb +77 -0
  155. data/spec/java/compiler_spec.rb +446 -0
  156. data/spec/java/emma_spec.rb +120 -0
  157. data/spec/java/java_spec.rb +96 -0
  158. data/spec/java/packaging_spec.rb +1120 -0
  159. data/spec/java/test_coverage_spec.rb +255 -0
  160. data/spec/java/tests_spec.rb +471 -0
  161. data/spec/packaging/archive_spec.rb +503 -0
  162. data/spec/packaging/artifact_namespace_spec.rb +646 -0
  163. data/spec/packaging/artifact_spec.rb +795 -0
  164. data/spec/packaging/packaging_helper.rb +63 -0
  165. data/spec/packaging/packaging_spec.rb +589 -0
  166. data/spec/sandbox.rb +139 -0
  167. data/spec/scala/compiler_spec.rb +228 -0
  168. data/spec/scala/tests_spec.rb +215 -0
  169. data/spec/spec_helpers.rb +327 -0
  170. data/spec/version_requirement_spec.rb +123 -0
  171. metadata +377 -0
@@ -0,0 +1,212 @@
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/packaging'
19
+ require 'stringio'
20
+
21
+
22
+ module Buildr
23
+ module Idea7x #:nodoc:
24
+
25
+ include Extension
26
+
27
+ CLASSIFIER = "-7x"
28
+ IML_SUFFIX = CLASSIFIER + ".iml"
29
+ IPR_TEMPLATE = "idea7x.ipr.template"
30
+ MODULE_DIR = "$MODULE_DIR$"
31
+ FILE_PATH_PREFIX = "file://"
32
+ MODULE_DIR_URL = FILE_PATH_PREFIX + MODULE_DIR
33
+ PROJECT_DIR = "$PROJECT_DIR$"
34
+ PROJECT_DIR_URL = FILE_PATH_PREFIX + PROJECT_DIR
35
+
36
+ first_time do
37
+ # Global task "idea" generates artifacts for all projects.
38
+ desc "Generate Idea 7.x artifacts for all projects"
39
+ Project.local_task "idea7x"=>"artifacts"
40
+ end
41
+
42
+ before_define do |project|
43
+ project.recursive_task("idea7x")
44
+ end
45
+
46
+ after_define do |project|
47
+ idea7x = project.task("idea7x")
48
+
49
+ # We need paths relative to the top project's base directory.
50
+ root_path = lambda { |p| f = lambda { |p| p.parent ? f[p.parent] : p.base_dir }; f[p] }[project]
51
+
52
+ # Find a path relative to the project's root directory.
53
+ relative = lambda { |path| Util.relative_path(File.expand_path(path.to_s), project.path_to) }
54
+
55
+ m2repo = Buildr::Repositories.instance.local
56
+ excludes = [ '**/.svn/', '**/CVS/' ].join('|')
57
+
58
+ # Only for projects that are packageable.
59
+ task_name = project.path_to("#{project.name.gsub(':', '-')}#{IML_SUFFIX}")
60
+ idea7x.enhance [ file(task_name) ]
61
+
62
+ # The only thing we need to look for is a change in the Buildfile.
63
+ file(task_name=>Buildr.application.buildfile) do |task|
64
+ # Note: Use the test classpath since Eclipse compiles both "main" and "test" classes using the same classpath
65
+ deps = project.test.compile.dependencies.map(&:to_s) - [ project.compile.target.to_s ]
66
+
67
+ # Convert classpath elements into applicable Project objects
68
+ deps.collect! { |path| Buildr.projects.detect { |prj| prj.packages.detect { |pkg| pkg.to_s == path } } || path }
69
+
70
+ # project_libs: artifacts created by other projects
71
+ project_libs, others = deps.partition { |path| path.is_a?(Project) }
72
+
73
+ # Separate artifacts from Maven2 repository
74
+ m2_libs, others = others.partition { |path| path.to_s.index(m2repo) == 0 }
75
+
76
+ # Project type is going to be the first package type
77
+ if package = project.packages.first
78
+ info "Writing #{task.name}"
79
+ File.open(task.name, "w") do |file|
80
+ xml = Builder::XmlMarkup.new(:target=>file, :indent=>2)
81
+ xml.module(:version=>"4", :relativePaths=>"true", :type=>"JAVA_MODULE") do
82
+ xml.component(:name=>"NewModuleRootManager", "inherit-compiler-output"=>"false") do
83
+
84
+ Buildr::Idea7x.generate_compile_output(project, xml, relative)
85
+
86
+ Buildr::Idea7x.generate_content(project, xml, relative)
87
+
88
+ Buildr::Idea7x.generate_order_entries(project_libs, xml)
89
+
90
+ ext_libs = m2_libs.map { |path| "jar://#{path.to_s.sub(m2repo, "$M2_REPO$")}!/" }
91
+ ext_libs << "#{MODULE_DIR_URL}/#{relative[project.test.resources.target.to_s]}" if project.test.resources.target
92
+ ext_libs << "#{MODULE_DIR_URL}/#{relative[project.resources.target.to_s]}" if project.resources.target
93
+
94
+ Buildr::Idea7x.generate_module_libs(xml, ext_libs)
95
+ xml.orderEntryProperties
96
+ end
97
+ end
98
+ end
99
+ end
100
+ end
101
+
102
+ # Root project aggregates all the subprojects.
103
+ if project.parent == nil
104
+ Buildr::Idea7x.generate_ipr(project, idea7x, Buildr.application.buildfile)
105
+ end
106
+
107
+ end # after_define
108
+
109
+ class << self
110
+
111
+ def generate_order_entries(project_libs, xml)
112
+ xml.orderEntry :type=>"sourceFolder", :forTests=>"false"
113
+ xml.orderEntry :type=>"inheritedJdk"
114
+
115
+ # Classpath elements from other projects
116
+ project_libs.map(&:id).sort.uniq.each do |project_id|
117
+ xml.orderEntry :type=>'module', "module-name"=>"#{project_id}#{CLASSIFIER}"
118
+ end
119
+ end
120
+
121
+ def generate_compile_output(project, xml, relative)
122
+ xml.output(:url=>"#{MODULE_DIR_URL}/#{relative[project.compile.target.to_s]}") if project.compile.target
123
+ xml.tag!("output-test", :url=>"#{MODULE_DIR_URL}/#{relative[project.test.compile.target.to_s]}") if project.test.compile.target
124
+ xml.tag!("exclude-output")
125
+ end
126
+
127
+ def generate_content(project, xml, relative)
128
+ xml.content(:url=>"#{MODULE_DIR_URL}") do
129
+ unless project.compile.sources.empty?
130
+ srcs = project.compile.sources.map { |src| relative[src.to_s] }
131
+ srcs.sort.uniq.each do |path|
132
+ xml.sourceFolder :url=>"#{MODULE_DIR_URL}/#{path}", :isTestSource=>"false"
133
+ end
134
+ end
135
+ unless project.test.compile.sources.empty?
136
+ test_sources = project.test.compile.sources.map { |src| relative[src.to_s] }
137
+ test_sources.each do |paths|
138
+ paths.sort.uniq.each do |path|
139
+ xml.sourceFolder :url=>"#{MODULE_DIR_URL}/#{path}", :isTestSource=>"true"
140
+ end
141
+ end
142
+ end
143
+ [project.resources=>false, project.test.resources=>true].each do |resources, test|
144
+ resources.each do |path|
145
+ path[0].sources.each do |srcpath|
146
+ xml.sourceFolder :url=>"#{FILE_PATH_PREFIX}#{srcpath}", :isTestSource=>path[1].to_s
147
+ end
148
+ end
149
+ end
150
+ xml.excludeFolder :url=>"#{MODULE_DIR_URL}/#{relative[project.resources.target.to_s]}" if project.resources.target
151
+ xml.excludeFolder :url=>"#{MODULE_DIR_URL}/#{relative[project.test.resources.target.to_s]}" if project.test.resources.target
152
+ end
153
+ end
154
+
155
+ def generate_module_libs(xml, ext_libs)
156
+ ext_libs.each do |path|
157
+ xml.orderEntry :type=>"module-library" do
158
+ xml.library do
159
+ xml.CLASSES do
160
+ xml.root :url=> path
161
+ end
162
+ xml.JAVADOC
163
+ xml.SOURCES do
164
+ xml.root :url=>"jar://#{path.sub(/\.jar$/, "-sources.jar")}!/"
165
+ end
166
+ end
167
+ end
168
+ end
169
+ end
170
+
171
+ def generate_ipr(project, idea7x, sources)
172
+ task_name = project.path_to("#{project.name.gsub(':', '-')}-7x.ipr")
173
+ idea7x.enhance [ file(task_name) ]
174
+ file(task_name=>sources) do |task|
175
+ info "Writing #{task.name}"
176
+
177
+ # Generating just the little stanza that chanages from one project to another
178
+ partial = StringIO.new
179
+ xml = Builder::XmlMarkup.new(:target=>partial, :indent=>2)
180
+ xml.component(:name=>"ProjectModuleManager") do
181
+ xml.modules do
182
+ project.projects.each do |subp|
183
+ module_name = subp.name.gsub(":", "-")
184
+ module_path = subp.name.split(":"); module_path.shift
185
+ module_path = module_path.join(File::SEPARATOR)
186
+ path = "#{module_path}/#{module_name}#{IML_SUFFIX}"
187
+ xml.module :fileurl=>"#{PROJECT_DIR_URL}/#{path}", :filepath=>"#{PROJECT_DIR}/#{path}"
188
+ end
189
+ if package = project.packages.first
190
+ xml.module :fileurl=>"#{PROJECT_DIR_URL}/#{project.name}#{IML_SUFFIX}", :filepath=>"#{PROJECT_DIR}/#{project.name}#{IML_SUFFIX}"
191
+ end
192
+ end
193
+ end
194
+
195
+ # Loading the whole fairly constant crap
196
+ template_xml = REXML::Document.new(File.open(File.join(File.dirname(__FILE__), IPR_TEMPLATE)))
197
+ include_xml = REXML::Document.new(partial.string)
198
+ template_xml.root.add_element(include_xml.root)
199
+ File.open task.name, 'w' do |file|
200
+ template_xml.write file
201
+ end
202
+ end
203
+ end
204
+
205
+ end
206
+
207
+ end # module Idea7x
208
+ end # module Buildr
209
+
210
+ class Buildr::Project
211
+ include Buildr::Idea7x
212
+ end
data/lib/buildr/ide.rb ADDED
@@ -0,0 +1,19 @@
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/ide/eclipse'
18
+ require 'buildr/ide/idea'
19
+ require 'buildr/ide/idea7x'
@@ -0,0 +1,92 @@
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
+ gem 'Antwrap' ; autoload :Antwrap, 'antwrap'
18
+ require 'buildr/core/project'
19
+ require 'buildr/core/help'
20
+ require 'logger'
21
+
22
+ module Buildr
23
+ module Ant
24
+
25
+ # Which version of Ant we're using by default.
26
+ VERSION = '1.7.1'
27
+
28
+ class << self
29
+ # Current version of Ant being used.
30
+ def version
31
+ Buildr.settings.build['ant'] || VERSION
32
+ end
33
+
34
+ # Ant classpath dependencies.
35
+ def dependencies
36
+ # Ant-Trax required for running the JUnitReport task, and there's no other place
37
+ # to put it but the root classpath.
38
+ @dependencies ||= ["org.apache.ant:ant:jar:#{version}", "org.apache.ant:ant-launcher:jar:#{version}",
39
+ "org.apache.ant:ant-trax:jar:#{version}"]
40
+ end
41
+
42
+ private
43
+ def const_missing(const)
44
+ return super unless const == :REQUIRES # TODO: remove in 1.5
45
+ Buildr.application.deprecated "Please use Ant.dependencies/.version instead of Ant::REQUIRES/VERSION"
46
+ dependencies
47
+ end
48
+ end
49
+
50
+
51
+ Java.classpath << lambda { Ant.dependencies }
52
+
53
+ # :call-seq:
54
+ # ant(name) { |AntProject| ... } => AntProject
55
+ #
56
+ # Creates a new AntProject with the specified name, yield to the block for defining various
57
+ # Ant tasks, and executes each task as it's defined.
58
+ #
59
+ # For example:
60
+ # ant("hibernatedoclet') do |doclet|
61
+ # doclet.taskdef :name=>'hibernatedoclet',
62
+ # :classname=>'xdoclet.modules.hibernate.HibernateDocletTask', :classpath=>DOCLET
63
+ # doclet.hibernatedoclet :destdir=>dest_dir, :force=>'true' do
64
+ # hibernate :version=>'3.0'
65
+ # fileset :dir=>source, :includes=>'**/*.java'
66
+ # end
67
+ # end
68
+ def ant(name, &block)
69
+ options = { :name=>name, :basedir=>Dir.pwd, :declarative=>true }
70
+ options.merge!(:logger=> ::Logger.new(STDOUT), :loglevel=> ::Logger::DEBUG) if Buildr.application.options.trace
71
+ Java.load
72
+ Antwrap::AntProject.new(options).tap do |project|
73
+ # Set Ant logging level to debug (--trace), info (default) or error only (--quiet).
74
+ project.project.getBuildListeners().get(0).
75
+ setMessageOutputLevel((Buildr.application.options.trace && 4) || (verbose && 2) || 0)
76
+ yield project if block_given?
77
+ end
78
+ end
79
+
80
+ end
81
+
82
+ include Ant
83
+ class Project
84
+ include Ant
85
+ end
86
+
87
+ Buildr.help do
88
+ Java.load
89
+ "\nUsing Java #{ENV_JAVA['java.version']}, Ant #{Ant.version}."
90
+ end
91
+
92
+ end