buildr 1.4.1-x86-mswin32 → 1.4.2-x86-mswin32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. data/CHANGELOG +68 -11
  2. data/_buildr +2 -0
  3. data/addon/buildr/hibernate.rb +8 -5
  4. data/addon/buildr/jetty.rb +1 -1
  5. data/addon/buildr/openjpa.rb +0 -2
  6. data/addon/buildr/xmlbeans.rb +1 -1
  7. data/buildr.gemspec +13 -9
  8. data/doc/_layouts/default.html +3 -1
  9. data/doc/contributing.textile +10 -2
  10. data/doc/css/default.css +6 -6
  11. data/doc/download.textile +7 -7
  12. data/doc/languages.textile +2 -2
  13. data/doc/more_stuff.textile +41 -33
  14. data/doc/packaging.textile +6 -3
  15. data/doc/releasing.textile +116 -0
  16. data/doc/scripts/install-linux.sh +7 -6
  17. data/doc/testing.textile +14 -0
  18. data/lib/buildr.rb +2 -2
  19. data/lib/buildr/core.rb +0 -6
  20. data/lib/buildr/core/application.rb +25 -2
  21. data/lib/buildr/core/build.rb +66 -15
  22. data/lib/buildr/core/compile.rb +10 -1
  23. data/lib/buildr/core/filter.rb +1 -1
  24. data/lib/buildr/core/progressbar.rb +8 -3
  25. data/lib/buildr/core/test.rb +57 -6
  26. data/lib/buildr/core/transports.rb +18 -13
  27. data/lib/buildr/core/util.rb +19 -3
  28. data/lib/buildr/groovy/compiler.rb +2 -2
  29. data/lib/buildr/ide/eclipse.rb +32 -12
  30. data/lib/buildr/java/ant.rb +3 -3
  31. data/lib/buildr/java/bdd.rb +1 -2
  32. data/lib/buildr/java/cobertura.rb +10 -9
  33. data/lib/buildr/java/commands.rb +22 -21
  34. data/lib/buildr/java/compiler.rb +2 -2
  35. data/lib/buildr/java/doc.rb +1 -1
  36. data/lib/buildr/java/ecj.rb +71 -0
  37. data/lib/buildr/java/emma.rb +1 -1
  38. data/lib/buildr/java/external.rb +9 -9
  39. data/lib/buildr/java/jruby.rb +5 -0
  40. data/lib/buildr/java/packaging.rb +4 -3
  41. data/lib/buildr/java/rjb.rb +4 -6
  42. data/lib/buildr/java/tests.rb +9 -4
  43. data/lib/buildr/packaging/archive.rb +7 -3
  44. data/lib/buildr/packaging/artifact.rb +153 -38
  45. data/lib/buildr/packaging/gems.rb +2 -3
  46. data/lib/buildr/packaging/package.rb +19 -12
  47. data/lib/buildr/packaging/tar.rb +1 -1
  48. data/lib/buildr/packaging/ziptask.rb +1 -1
  49. data/lib/buildr/scala/bdd.rb +7 -3
  50. data/lib/buildr/scala/compiler.rb +2 -2
  51. data/lib/buildr/scala/doc.rb +3 -3
  52. data/lib/buildr/scala/tests.rb +7 -3
  53. data/lib/buildr/version.rb +18 -0
  54. data/rakelib/all-in-one.rake +1 -1
  55. data/rakelib/doc.rake +13 -3
  56. data/rakelib/metrics.rake +39 -0
  57. data/spec/core/application_spec.rb +13 -12
  58. data/spec/core/build_spec.rb +166 -7
  59. data/spec/core/cc_spec.rb +1 -1
  60. data/spec/core/checks_spec.rb +1 -1
  61. data/spec/core/common_spec.rb +10 -1
  62. data/spec/core/compile_spec.rb +1 -1
  63. data/spec/core/extension_spec.rb +1 -1
  64. data/spec/core/generate_spec.rb +1 -1
  65. data/spec/core/project_spec.rb +1 -1
  66. data/spec/core/test_spec.rb +124 -11
  67. data/spec/core/transport_spec.rb +10 -3
  68. data/spec/core/util_spec.rb +18 -2
  69. data/spec/groovy/bdd_spec.rb +1 -1
  70. data/spec/groovy/compiler_spec.rb +3 -3
  71. data/spec/ide/eclipse_spec.rb +63 -1
  72. data/spec/ide/idea7x_spec.rb +1 -1
  73. data/spec/java/ant_spec.rb +1 -1
  74. data/spec/java/bdd_spec.rb +1 -1
  75. data/spec/java/cobertura_spec.rb +29 -2
  76. data/spec/java/commands_spec.rb +61 -2
  77. data/spec/java/compiler_spec.rb +3 -3
  78. data/spec/java/ecj_spec.rb +115 -0
  79. data/spec/java/emma_spec.rb +1 -1
  80. data/spec/java/external_spec.rb +10 -8
  81. data/spec/java/java_spec.rb +14 -6
  82. data/spec/java/packaging_spec.rb +41 -15
  83. data/spec/java/test_coverage_helper.rb +1 -1
  84. data/spec/java/tests_spec.rb +1 -1
  85. data/spec/packaging/archive_spec.rb +12 -1
  86. data/spec/packaging/artifact_namespace_spec.rb +1 -1
  87. data/spec/packaging/artifact_spec.rb +197 -7
  88. data/spec/packaging/packaging_spec.rb +12 -12
  89. data/spec/sandbox.rb +8 -3
  90. data/spec/scala/bdd_spec.rb +3 -3
  91. data/spec/scala/compiler_spec.rb +7 -7
  92. data/spec/scala/scala.rb +3 -3
  93. data/spec/scala/tests_spec.rb +3 -3
  94. data/spec/spec_helpers.rb +11 -1
  95. data/spec/version_requirement_spec.rb +1 -1
  96. metadata +220 -85
  97. data/rakelib/jekylltask.rb +0 -120
data/CHANGELOG CHANGED
@@ -1,3 +1,60 @@
1
+ 1.4.2 (2010-09-18)
2
+ * Added: BUILDR-415 Ability to exclude tests from command line
3
+ * Added: BUILDR-495 Document twitter on Buildr's homepage
4
+ * Added: BUILDR-212 Update support for SNAPSHOT artifacts (Timo Rantalaiho and Izzet Mustafa)
5
+ * Added: BUILDR-465 Eclipse project names should be customizable
6
+ * Added: BUILDR-493 Eclipse task should generate javadocpath
7
+ * Added: BUILDR-509 Option to generate non-prefixed Eclipse project names
8
+ * Added: BUILDR-510 Add support for trace categories: --trace=foo,bar
9
+ * Added: Integration test to show how to change the war packaging spec.
10
+ * Added: Integration test to show how to use junit 3.
11
+ * Added: Integration test to show how to get ahold of parent project
12
+ * Change: BUILDR-473 Update jruby-openssl dependency version or support a range of versions
13
+ * Change: BUILDR-478 Upgrade to net-ssh 2.0.23 and net-sftp 2.0.4 (Shane Witbeck)
14
+ * Change: BUILDR-475 Support for long names on tar.gz (updated to minitar 0.5.3)
15
+ * Change: BUILDR-484 Upgrade to Scala 2.8.0 (final) and associated dependencies
16
+ (ScalaCheck 1.7, ScalaTest 1.2, Specs 1.6.5)
17
+ * Change: BUILDR-487 package :sources should default to using .jar extension (instead of .zip)
18
+ * Change: Upgrade to Jruby 1.5.2
19
+ * Fixed: BUILDR-143 Upload to a file:// path needs ability to specify permissions (Joel Muzzerall)
20
+ * Fixed: BUILDR-144 Filter does not preserve file permissions
21
+ * Fixed: BUILDR-163 cobertura-check
22
+ * Fixed: BUILDR-203 Compiler guessing very inefficient
23
+ * Fixed: BUILDR-225 ArchiveTask#merge, not according to doc
24
+ * Fixed: BUILDR-256 Automatically installing gems aborts rspec test runner (Rhett Sutphin)
25
+ * Fixed: BUILDR-285 Cobertura failing when running build
26
+ * Fixed: BUILDR-302 Move out-of-date Nailgun documentation to wiki (Shane Witbeck)
27
+ * Fixed: BUILDR-317 ecj compiler
28
+ * Fixed: BUILDR-326 follow up: binary safe untarring on Windows (Sam Hendley)
29
+ * Fixed: BUILDR-335 follow up: excluding libraries from war is confusing
30
+ * Fixed: BUILDR-342 The jruby gem installer invokes the removed Gem.manage_gems function (Rhett Sutphin)
31
+ * Fixed: BUILDR-403 Buildr::Util::Gems.install does not find gems on remote sources
32
+ * Fixed: BUILDR-436 release task should only replace "-SNAPSHOT" (spec from Jean-Philippe Caruana)
33
+ * Fixed: BUILDR-438 Release Task: customizable version numbers (Alexis Midon)
34
+ * Fixed: BUILDR-464 Improve the versioning of Buildr (Rhett Sutphin)
35
+ * Fixed: BUILDR-466 Rendering issue with IE on the website (Shane Witbeck)
36
+ * Fixed: BUILDR-468 test:failed does not respect test.exclude
37
+ * Fixed: BUILDR-469 test:failed causes all transitive tests to run
38
+ * Fixed: BUILDR-472 ECJ dependency now required to build any java project
39
+ * Fixed: BUILDR-477 Error while parsing maven-metadata.xml
40
+ * Fixed: BUILDR-479 Enforce using a minimal version of jruby
41
+ * Fixed: BUILDR-481 Antwrap monkey-patching in core.rb
42
+ * Fixed: BUILDR-482 Javadoc : cannot load class java.com.sun.tools.javadoc.Main
43
+ * Fixed: BUILDR-488 artifact poms not reinstalled
44
+ * Fixed: BUILDR-491 sftp download goes into infinite loop
45
+ * Fixed: BUILDR-498 Artifact download fails with "negative argument" if
46
+ terminal capabilities are undefined
47
+ * Fixed: BUILDR-499 Java package caching through constants
48
+ e.g. (Java.java.lang.String cached as Java::Lang::String)
49
+ can shadow Ruby modules
50
+ * Fixed: BUILDR-501 Fix buildr label when listing tasks (Peter Donald)
51
+ * Fixed: BUILDR-503 Include with as includes directories as files when the directory has the same name as the path
52
+ * Fixed: BUILDR-506 Gem packaging does not work under windows (Peter Donald)
53
+ * Fixed: BUILDR-508 Remove unnecessary use of Java.classpath in OpenJPA
54
+ extension (Peter Donald)
55
+ * Fixed: BUILDR-507 Gem packaging should replace dashes with dots in
56
+ version number (Peter Donald)
57
+
1
58
  1.4.1 (2010-07-07)
2
59
  * Added: BUILDR-420 Support external compiler
3
60
  * Added: BUILDR-425 Specify dev dependencies in .gemspec
@@ -14,16 +71,16 @@
14
71
  * Added: Support for Scala 2.8 compiler-level change detection and dependency
15
72
  tracking
16
73
  * Added: Continuous compilation
17
- * Added: Generic documentation framework (using the `doc` task). Replaces
74
+ * Added: Generic documentation framework (using the `doc` task). Replaces
18
75
  `javadoc` task
19
76
  * Added: New "test:failed" task to execute only tests that failed during last
20
77
  run (Antoine Toulme)
21
78
  * Added: Project extensions (before/after_define) now support dependency ordering
22
79
  similar to Rake (e.g. before_define(:my_setup => :compile)
23
- * Added: BUILDR-328 Detect Eclipse plugin project with META-INF/MANIFEST.MF
80
+ * Added: BUILDR-328 Detect Eclipse plugin project with META-INF/MANIFEST.MF
24
81
  and Bundle-SymbolicName: entry
25
82
  * Added: Support for Eclipse classpath variables to avoid absolute pathnames in
26
- generated .classpath using:
83
+ generated .classpath using:
27
84
  eclipse.classpath_variables { :VAR => '/path/to/libraries' }
28
85
  * Added: Support for excluding libraries from Eclipse classpath using:
29
86
  eclipse.exclude_libs += ['/path/to/some/library.jar']
@@ -33,7 +90,7 @@
33
90
  command line (and ignore transitive test dependencies)
34
91
  * Added: ArtifactNamespace.{keys,clear} methods
35
92
  * Added: BUILDR-326 Support unzipping tar.gz files (Antoine Toulme)
36
- * Added: BUILDR-368 Support protocol buffer code generation
93
+ * Added: BUILDR-368 Support protocol buffer code generation
37
94
  (Pepijn Van Eeckhoudt)
38
95
  * Added: BUILDR-375 Buildr now recognizes buildfile.rb and Buildfile.rb
39
96
  (Kerry Wilson)
@@ -80,15 +137,15 @@
80
137
  (Antoine Toulme)
81
138
  * Fixed: BUILDR-281 Application#initialize fails if home dir isn't writable
82
139
  * Fixed: BUILDR-327 Specifying :plugin eclipse nature explicitly fails
83
- * Fixed: BUILDR-330 Install task should re-install artifact even if they
140
+ * Fixed: BUILDR-330 Install task should re-install artifact even if they
84
141
  already exist (Alexis Midon)
85
- * Fixed: BUILDR-334 Eclipse .classpath files use absolute paths for library
142
+ * Fixed: BUILDR-334 Eclipse .classpath files use absolute paths for library
86
143
  entries (Stefan Wasilewski)
87
144
  * Fixed: BUILDR-336 Java::Commands.java Prints Command Without --trace
88
145
  (Antoine Toulme)
89
146
  * Fixed: BUILDR-341 jruby -S extract is no longer supported by jruby
90
147
  (Antoine Toulme)
91
- * Fixed: BUILDR-344 Buildr::TestFramework::TestResult::YamlFormatter uses
148
+ * Fixed: BUILDR-344 Buildr::TestFramework::TestResult::YamlFormatter uses
92
149
  deprecated form of example_pending (Rhett Sutphin)
93
150
  * Fixed: BUILDR-345 Improve project documentation (Peter Schröder)
94
151
  * Fixed: BUILDR-346 Test classpath can not be set (Peter Schröder)
@@ -106,7 +163,7 @@
106
163
  * Fixed: BUILDR-365 test task should use test compile dependencies
107
164
  * Fixed: BUILDR-366 Scala dependencies should be lazily loaded into
108
165
  Java.classpath
109
- * Fixed: BUILDR-373 Package type specific implementations of install,
166
+ * Fixed: BUILDR-373 Package type specific implementations of install,
110
167
  uninstall and upload are not invoked (Antoine Toulme)
111
168
  * Fixed: BUILDR-374 upload tasks can attempt to upload artifacts multiple times (Pepijn Van Eeckhoudt)
112
169
  * Fixed: BUILDR-379 Ant sql task abruptly terminates buildr
@@ -115,7 +172,7 @@
115
172
  * Fixed: BUILDR-381 JUnit tests on Groovy project fail with
116
173
  NoClassDefFoundError: junit/framework/TestCase
117
174
  * Fixed: BUILDR-382 Packages with default spec are not always created correctly
118
- * Fixed: BUILDR-383 artifact().from(task_dependency) should not trigger
175
+ * Fixed: BUILDR-383 artifact().from(task_dependency) should not trigger
119
176
  task_dependency if artifact exists
120
177
  * Fixed: BUILDR-384 Buildr fails with rubygems 1.3.6
121
178
  * Fixed: BUILDR-386 Display JRuby version in buildr -V (Antoine Toulme)
@@ -125,7 +182,7 @@
125
182
  task properties (Antoine Toulme, Peter Dettman)
126
183
  * Fixed: BUILDR-306 Cobertura extension does not handle dependencies
127
184
  correctly (Pepijn Van Eeckhoudt)
128
- * Fixed: BUILDR-398 FileUtils#sh does not work correctly on Windows
185
+ * Fixed: BUILDR-398 FileUtils#sh does not work correctly on Windows
129
186
  (Pepijn Van Eeckhoudt)
130
187
  * Fixed: BUILDR-399 invoke_with_call_chain does not restore call chain
131
188
  correctly (Pepijn Van Eeckhoudt)
@@ -142,7 +199,7 @@
142
199
  "false" value
143
200
  * Fixed: BUILDR-404 buildr -V causes exception on JRuby
144
201
  * Fixed: BUILDR-411 fix for RDoc generation
145
- * Fixed: BUILDR-417 package_as_javadoc calls deprecated method
202
+ * Fixed: BUILDR-417 package_as_javadoc calls deprecated method
146
203
  (Pepijn Van Eeckhoudt)
147
204
  * Fixed: BUILDR-412 Gemspec dependencies don't add up - to the point it's not possible to release
148
205
  * Fixed: BUILDR-414 Provide tag_name method on GitRelease as part of API
data/_buildr CHANGED
@@ -19,6 +19,8 @@
19
19
 
20
20
  require 'rubygems'
21
21
  $LOAD_PATH << File.join(File.dirname(__FILE__), 'lib') << File.join(File.dirname(__FILE__), 'addon')
22
+
23
+ require 'buildr/version'
22
24
  spec = Gem::Specification.load(File.join(File.dirname(__FILE__), 'buildr.gemspec'))
23
25
  # To avoid a warning about the version_requirements deprecation, we use this method inline.
24
26
  def version_required(gem_def)
@@ -117,12 +117,15 @@ module Buildr
117
117
  # fileset(:dir=>compile.sources.first) { include :name=>"**/*.hbm.xml" } }
118
118
  # end
119
119
  # end
120
- def hibernate_schemaexport(args)
120
+ def hibernate_schemaexport(args, &block)
121
121
  path, arg_names, deps = Rake.application.resolve_args([args])
122
- unless Rake::Task.task_defined?(path)
123
- class << file(path) ; attr_accessor :ant ; end
124
- file(path).enhance { |task| task.ant = Hibernate.schemaexport(hib_resolve_classpath) }
125
- end
122
+ file(path).enhance { |task|
123
+ unless task.respond_to? :ant #this is a hack. A better way to do the job is to create a real task for all this.
124
+ class << task ; attr_accessor :ant ; end
125
+ task.ant = Hibernate.schemaexport(hib_resolve_classpath)
126
+ end
127
+ }
128
+
126
129
  if block
127
130
  file(path).enhance(deps) { |task| block.call task, task.ant }
128
131
  else
@@ -151,7 +151,7 @@ module Buildr
151
151
  response = http.request_post("/buildr/deploy", "webapp=#{webapp}&path=#{uri.path}")
152
152
  if Net::HTTPOK === response && response.body =~ /Deployed/
153
153
  path = response.body.split[1]
154
- puts "Deployed #{webapp}, context path #{uri.path}" if Rake.application.options.trace
154
+ puts "Deployed #{webapp}, context path #{uri.path}" if trace?
155
155
  path
156
156
  else
157
157
  fail "Deployment failed: #{response}"
@@ -34,8 +34,6 @@ module Buildr
34
34
  "org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec:jar:1.0",
35
35
  "net.sourceforge.serp:serp:jar:1.11.0" ]
36
36
 
37
- Java.classpath << REQUIRES
38
-
39
37
  class << self
40
38
 
41
39
  def enhance(options)
@@ -42,7 +42,7 @@ module Buildr
42
42
 
43
43
  def compile(*args)
44
44
  options = Hash === args.last ? args.pop : {}
45
- options[:verbose] ||= Rake.application.options.trace || false
45
+ options[:verbose] ||= trace?(:xmlbeans)
46
46
  rake_check_options options, :verbose, :noop, :javasource, :jar, :compile, :output, :xsb
47
47
  puts "Running XMLBeans schema compiler" if verbose
48
48
  Buildr.ant "xmlbeans" do |ant|
data/buildr.gemspec CHANGED
@@ -13,10 +13,13 @@
13
13
  # License for the specific language governing permissions and limitations under
14
14
  # the License.
15
15
 
16
+ unless defined?(Buildr::VERSION)
17
+ require File.join(File.dirname(__FILE__), 'lib', 'buildr', 'version.rb')
18
+ end
16
19
 
17
20
  Gem::Specification.new do |spec|
18
21
  spec.name = 'buildr'
19
- spec.version = '1.4.1'
22
+ spec.version = Buildr::VERSION.dup
20
23
  spec.author = 'Apache Buildr'
21
24
  spec.email = "users@buildr.apache.org"
22
25
  spec.homepage = "http://buildr.apache.org/"
@@ -49,22 +52,23 @@ for those one-off tasks, with a language that's a joy to use.
49
52
  # Tested against these dependencies.
50
53
  spec.add_dependency 'rake', '0.8.7'
51
54
  spec.add_dependency 'builder', '2.1.2'
52
- spec.add_dependency 'net-ssh', '2.0.15'
53
- spec.add_dependency 'net-sftp', '2.0.2'
55
+ spec.add_dependency 'net-ssh', '2.0.23'
56
+ spec.add_dependency 'net-sftp', '2.0.4'
54
57
  spec.add_dependency 'rubyzip', '0.9.1'
55
58
  spec.add_dependency 'highline', '1.5.1'
56
59
  spec.add_dependency 'json_pure', '1.4.3'
57
60
  spec.add_dependency 'rubyforge', '2.0.3'
58
61
  spec.add_dependency 'hoe', '2.3.3'
59
62
  spec.add_dependency 'rjb', '1.2.5' if spec.platform.to_s == 'ruby'
60
- spec.add_dependency 'rjb', '1.2.5' if spec.platform.to_s == 'x86-mswin32'
61
- spec.add_dependency 'Antwrap', '0.7.0'
63
+ spec.add_dependency 'rjb', '1.2.5' if spec.platform.to_s == 'x86-mswin32'
64
+ spec.add_dependency 'atoulme-Antwrap', '0.7.1'
62
65
  spec.add_dependency 'rspec', '>= 1.2.9'
63
66
  spec.add_dependency 'xml-simple', '1.0.12'
64
- spec.add_dependency 'archive-tar-minitar', '0.5.2'
65
- spec.add_dependency 'jruby-openssl', '0.5.2' if spec.platform.to_s == 'java'
66
- spec.add_development_dependency 'jekyll', '~> 0.5.2'
67
+ spec.add_dependency 'minitar', '0.5.3'
68
+ spec.add_dependency 'jruby-openssl', '>= 0.7' if spec.platform.to_s == 'java'
69
+ spec.add_development_dependency 'jekyll', '~> 0.6.2' unless spec.platform.to_s == 'java'
67
70
  spec.add_development_dependency 'sdoc'
68
- spec.add_development_dependency 'rcov', '~>0.8'
71
+ spec.add_development_dependency 'rcov', '~>0.8' unless spec.platform.to_s == 'java'
69
72
  spec.add_development_dependency 'win32console' if spec.platform.to_s == 'x86-mswin32'
73
+ spec.add_development_dependency 'jekylltask', '>= 1.0.2' unless spec.platform.to_s == 'java'
70
74
  end
@@ -36,6 +36,7 @@
36
36
  <li><a href='artifacts.html'>Artifacts</a></li>
37
37
  <li><a href='packaging.html'>Packaging</a></li>
38
38
  <li><a href='testing.html'>Testing</a></li>
39
+ <li><a href='releasing.html'>Releasing</a></li>
39
40
  <li><a href='settings_profiles.html'>Settings/Profiles</a></li>
40
41
  <li><a href='languages.html'>Languages</a></li>
41
42
  <li><a href='more_stuff.html'>More Stuff</a></li>
@@ -55,6 +56,7 @@
55
56
  <ol class="toc">
56
57
  <li><a href='download.html'>Download</a></li>
57
58
  <li><a href='mailing_lists.html'>Mailing Lists</a></li>
59
+ <li><a href='http://www.twitter.com/buildr'>Twitter</a></li>
58
60
  <li><a href='http://issues.apache.org/jira/browse/Buildr'>Issues/Bugs</a></li>
59
61
  <li><a href='contributing.html'>Contributing</a></li>
60
62
  <li><a href='specs.html'>Specs</a></li>
@@ -82,7 +84,7 @@
82
84
  {{ content | toc }}
83
85
  {{ content }}
84
86
  </div>
85
- <div id='footer'>Copyright &copy; 2007-2009 The Apache Software Foundation</div>
87
+ <div id='footer'>Copyright &copy; 2007-2010 The Apache Software Foundation</div>
86
88
  </div>
87
89
  </body>
88
90
  </html>
@@ -16,6 +16,14 @@ We run two mailing lists, the "users":http://buildr.markmail.org/search/list:use
16
16
 
17
17
  Check the "mailing lists":mailing_lists.html page for more information on subscribing, searching and posting to the mailing list.
18
18
 
19
+ h2(#IRC). IRC
20
+
21
+ We are live on IRC under the buildr channel on irc.freenode.net, with a broad coverage of the US timezone. We tend to idle there, so feel free to ping the channel owner (toulmean) to make noise.
22
+
23
+ Our "conversations": are logged by the "echelog":http://echelog.matzon.dk/logs/browse/buildr/1279663200 and "irclogger":http://irclogger.com/buildr/ bots. If you're really curious, we also have "activity statistics":http://echelog.matzon.dk/stats/buildr.html
24
+
25
+ Sincere thanks to Matzon and Christopher Schneider for setting these up!
26
+
19
27
 
20
28
  h2(#bugs). Bugs (aka Issues)
21
29
 
@@ -235,13 +243,13 @@ Started working on Buildr because Maven was too much pain and Rake wasn't enough
235
243
 
236
244
  *Alex Boisvert*
237
245
 
238
- Came to Buildr as a refuge from the Maven Uncertainty Principle. Alex has been working mostly on the Scala integration and believes Ruby scripting is a great complement to statically typed languages.
246
+ Came to Buildr as a refuge from the Maven Uncertainty Principle. Alex has been working mostly on the Scala integration and believes Ruby scripting is a great complement to statically typed languages.
239
247
 
240
248
  *"Matthieu Riou":http://offthelip.org*
241
249
 
242
250
  *Victor Hugo Borja* (vborja at apache.org)
243
251
 
244
- Currently a Java Developer at "http://jwmsolutions.com":http://jwmsolutions.com, Victor has been enjoying and using Apache's software since 1999 when he started with Java, now he prefers programming Ruby and is happy to help on Apache's first ruby project.
252
+ Currently a Java Developer at "http://jwmsolutions.com":http://jwmsolutions.com, Victor has been enjoying and using Apache's software since 1999 when he started with Java, now he prefers programming Ruby and is happy to help on Apache's first ruby project.
245
253
 
246
254
  *Lacton* (lacton at apache.org)
247
255
 
data/doc/css/default.css CHANGED
@@ -18,7 +18,7 @@
18
18
  body {
19
19
  background-color: #fff;
20
20
  color: #000;
21
- font-family: "Helvetica Neue", "DejaVu Sans", "Verdana";
21
+ font-family: "Helvetica Neue", "DejaVu Sans", "Verdana", sans-serif;
22
22
  text-align: center;
23
23
  line-height: 150%;
24
24
  }
@@ -52,7 +52,7 @@ pre br { display: none; }
52
52
  h1, h2, h3 {
53
53
  font-family: "Gill Sans";
54
54
  padding: 0;
55
- margin: 1.6em 0 0.6em -0.9em;
55
+ margin: 1.6em 0 0.6em 0;
56
56
  line-height: 1.25em;
57
57
  letter-spacing: 0.03em;
58
58
  }
@@ -138,9 +138,8 @@ th, thead td {
138
138
  /* display: inline; */ /* IE Hack */
139
139
  width: 12em;
140
140
  float: left;
141
- text-align: left;
142
141
  margin-right: 2em;
143
- font-family: "Gill Sans";
142
+ font-family: "Gill Sans",sans-serif;
144
143
  font-size: 11pt;
145
144
  text-align: right;
146
145
  border-right: 1px solid #ccc;
@@ -173,16 +172,17 @@ th, thead td {
173
172
  #pages ol li p {
174
173
  font-weight: normal;
175
174
  color: #000;
176
- vertical-align: center;
175
+ vertical-align: middle;
177
176
  }
178
177
 
179
178
 
180
179
  #content { /* Parent Wrapper for inside boxes */
181
180
  /* display: inline; *//* IE Hack */
182
- float: right;
181
+ float: left;
183
182
  width: 44em;
184
183
  margin-left: 0.3em;
185
184
  margin-bottom: 5em;
185
+ word-wrap: break-word; /* prevents container divs from wrapping */
186
186
  }
187
187
 
188
188
  ol.toc {
data/doc/download.textile CHANGED
@@ -20,16 +20,16 @@ The source code is included in both source and binary distribution, the Gem dist
20
20
 
21
21
  h2(#dist). Binaries and Source Code
22
22
 
23
- h3. buildr 1.4.1 (2010-07-07)
23
+ h3. buildr 1.4.2 (2010-09-18)
24
24
 
25
25
  |_. Package |_. MD5 Checksum |_. PGP |
26
- | "buildr-1.4.1-java.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.1/buildr-1.4.1-java.gem | "505edb298e41e38f59058990e34f216e":http://www.apache.org/dist/buildr/1.4.1/buildr-1.4.1-java.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.1/buildr-1.4.1-java.gem.asc |
27
- | "buildr-1.4.1-x86-mswin32.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.1/buildr-1.4.1-x86-mswin32.gem | "0d8fe64d03c22dbec997a0f58aa5b4b7":http://www.apache.org/dist/buildr/1.4.1/buildr-1.4.1-x86-mswin32.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.1/buildr-1.4.1-x86-mswin32.gem.asc |
28
- | "buildr-1.4.1.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.1/buildr-1.4.1.gem | "4ccbea74c98e36041c3e71404efca905":http://www.apache.org/dist/buildr/1.4.1/buildr-1.4.1.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.1/buildr-1.4.1.gem.asc |
29
- | "buildr-1.4.1.tgz":http://www.apache.org/dyn/closer.cgi/buildr/1.4.1/buildr-1.4.1.tgz | "bc05316ab453a9ae4b9e597286740700":http://www.apache.org/dist/buildr/1.4.1/buildr-1.4.1.tgz.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.1/buildr-1.4.1.tgz.asc |
30
- | "buildr-1.4.1.zip":http://www.apache.org/dyn/closer.cgi/buildr/1.4.1/buildr-1.4.1.zip | "9482d9b56ecd1679e5a481bfb07e85e3":http://www.apache.org/dist/buildr/1.4.1/buildr-1.4.1.zip.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.1/buildr-1.4.1.zip.asc |
26
+ | "buildr-1.4.2-java.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.2/buildr-1.4.2-java.gem | "481b5dffac34ef368352f9dea095ad42":http://www.apache.org/dist/buildr/1.4.2/buildr-1.4.2-java.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.2/buildr-1.4.2-java.gem.asc |
27
+ | "buildr-1.4.2-x86-mswin32.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.2/buildr-1.4.2-x86-mswin32.gem | "ddd6d1bee497b514bc17507f411b57c9":http://www.apache.org/dist/buildr/1.4.2/buildr-1.4.2-x86-mswin32.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.2/buildr-1.4.2-x86-mswin32.gem.asc |
28
+ | "buildr-1.4.2.gem":http://www.apache.org/dyn/closer.cgi/buildr/1.4.2/buildr-1.4.2.gem | "5f3a83491b1e7ea372fd2f7d5331195b":http://www.apache.org/dist/buildr/1.4.2/buildr-1.4.2.gem.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.2/buildr-1.4.2.gem.asc |
29
+ | "buildr-1.4.2.tgz":http://www.apache.org/dyn/closer.cgi/buildr/1.4.2/buildr-1.4.2.tgz | "15fbb3b1fa46d6e0c99f08f169f380dc":http://www.apache.org/dist/buildr/1.4.2/buildr-1.4.2.tgz.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.2/buildr-1.4.2.tgz.asc |
30
+ | "buildr-1.4.2.zip":http://www.apache.org/dyn/closer.cgi/buildr/1.4.2/buildr-1.4.2.zip | "33f1c15537bb5b28cb05244d8696e70b":http://www.apache.org/dist/buildr/1.4.2/buildr-1.4.2.zip.md5 | "Sig":http://www.apache.org/dist/buildr/1.4.2/buildr-1.4.2.zip.asc |
31
31
 
32
- p>. ("Release signing keys":http://www.apache.org/dist/buildr/1.4.1/KEYS)
32
+ p>. ("Release signing keys":http://www.apache.org/dist/buildr/1.4.2/KEYS)
33
33
 
34
34
 
35
35
  h3. buildr 1.4.0 (2010-06-18)
@@ -170,7 +170,7 @@ Before using Scala, you must first @require@ the Scala compiler:
170
170
  require 'buildr/scala'
171
171
  {% endhighlight %}
172
172
 
173
- By default, Buildr will attempt to use the latest stable release of Scala, which is currently Scala 2.7.7 as of April 2010. Of course you can configure a specific version of Scala for your project by adding the following entry in @build.yaml@:
173
+ By default, Buildr will attempt to use the latest stable release of Scala, which is currently Scala 2.8.0 as of July 2010. Of course you can configure a specific version of Scala for your project by adding the following entry in @build.yaml@:
174
174
 
175
175
  {% highlight yaml %}
176
176
  scala.version: 2.8.0.Beta1 # Pick your version
@@ -186,7 +186,7 @@ Buildr.settings.build['scala.version'] = "2.8.0.Beta1"
186
186
  You may also determine the version in use by querying the @Scala.version@ attribute:
187
187
 
188
188
  {% highlight ruby %}
189
- Scala.version # => '2.7.7'
189
+ Scala.version # => '2.8.0'
190
190
  {% endhighlight %}
191
191
 
192
192
  Regardless of how the Scala version is determined, if you have the same Scala version installed on your system and the SCALA_HOME environment variable points to it, then your local installation will be used. Otherwise, Buildr will download it from the "Scala Tools repository":http://scala-tools.org/ which is automatically enlisted when you @require@ Scala. The only drawback if you don't have a local installation is the FSC compiler won't be available.
@@ -78,6 +78,36 @@ Buildr supports several different shell providers, and the framework is flexible
78
78
 
79
79
  Note that some of these shells impose certain requirements to enable use. The Groovy shell requires the @GROOVY_HOME@ environment variable to point to the Groovy install path. The Clojure REPL makes a similar requirement of @CLOJURE_HOME@. The JRuby and Scala shells will use @JRUBY_HOME@ and @SCALA_HOME@ respectively if they are defined. However, if these environment variables are not defined, the relevant JAR files will be automatically downloaded from the appropriate Maven2 repository.
80
80
 
81
+ h3. Verbosity and Tracing
82
+
83
+ By default, Buildr is moderately verbose, meaning that it attempts to give you enough context into what's happening during the build.
84
+
85
+ It's possible to silence Buildr if you're inconvenienced by its default verbosity by issuing,
86
+
87
+ {% highlight sh %}
88
+ $ buildr --silent
89
+ {% endhighlight %}
90
+
91
+ On the other hand, if you want Buildr to give you more context in order to trace what's happening, you can use the @-t@ options:
92
+
93
+ {% highlight sh %}
94
+ $ buildr -t
95
+ {% endhighlight %}
96
+
97
+ Using @-t@ will also display backtraces if and when they occur.
98
+
99
+ Many components can be individually configured to display more output if you're debugging a specific area of your build. For instance, you could use @--trace=javac,groovyc@ to enable tracing of the Java and Groovy compilers:
100
+
101
+ {% highlight sh %}
102
+ $ buildr --trace=javac,groovyc
103
+ {% endhighlight %}
104
+
105
+ If you don't know which tracing category you need to enable or if you want a full firehose worth of traces, you can enable all traces:
106
+
107
+ {% highlight sh %}
108
+ $ buildr --trace=all
109
+ {% endhighlight %}
110
+
81
111
  h3. JavaRebel Integration
82
112
 
83
113
  "JavaRebel":http://www.zeroturnaround.com/javarebel is a live bytecode reloading solution by Zero Turnaround. It's a lot like the hot code reload feature found in many Java IDE debuggers (like Eclipse and IntelliJ), but capable of handling things like member addition or removal and new class definition. The tool itself is commercial and works with any JVM language, but they do offer a free license for use with Scala classes only.
@@ -104,7 +134,7 @@ Running java scala.tools.nsc.MainGenericRunner
104
134
  (c) Copyright Webmedia, Ltd, 2007-2009. All rights reserved.
105
135
 
106
136
  This product is licensed to Daniel Spiewak
107
- for personal use only.
137
+ for personal use only.
108
138
 
109
139
  #############################################################
110
140
 
@@ -114,7 +144,7 @@ Type :help for more information.
114
144
 
115
145
  scala> </pre>
116
146
 
117
- Note that Buildr does *not* check to make sure that you have a valid JavaRebel license, so you may end up launching with JavaRebel configured but without the ability to use it (in which case, JavaRebel will print a notification).
147
+ Note that Buildr does *not* check to make sure that you have a valid JavaRebel license, so you may end up launching with JavaRebel configured but without the ability to use it (in which case, JavaRebel will print a notification).
118
148
 
119
149
  h2(#gems). Using Gems
120
150
 
@@ -134,7 +164,7 @@ Use the @build.yaml@ file to specify these dependencies (see "Build Settings":se
134
164
 
135
165
  {% highlight yaml %}
136
166
  # This project requires the following gems
137
- gems:
167
+ gems:
138
168
  # Suppose we want to notify developers when testcases fail.
139
169
  - buildr-twitter-notifier-addon >=1
140
170
  # we test with ruby mock objects
@@ -228,28 +258,6 @@ $ dbuildr clean compile
228
258
 
229
259
  The @dbuildr@ command will start the BuildrServer if there isn't one already running. Subsequent calls to dbuildr will act as the client and invoke the tasks you provide to the server. If the buildfile has been modified it will be reloaded on the BuildrServer.
230
260
 
231
- h3(#nailgun). Nailgun
232
-
233
- "Nailgun":http://www.martiansoftware.com/nailgun/index.html is a client, protocol, and server for running Java programs from the command line without incurring the JVM startup overhead. Nailgun integration is available only when running Buildr within JRuby.
234
-
235
- JRuby users need not to create the @dbuildr@ script listed on the previous section, as they can benefit from using a nailgun client to invoke tasks without having to wait for JVM+JRuby to load.
236
-
237
- Start the BuildrServer by executing
238
-
239
- {% highlight sh %}
240
- $ jruby -S buildr -rbuildr/nailgun nailgun:start
241
- {% endhighlight %}
242
-
243
- To stop the BuildrServer simply use Ctrl+C or kill the process.
244
-
245
- Once the server has been started you can invoke tasks using the nailgun client
246
- installed on @$JRUBY_HOME/tool/nailgun/ng@
247
-
248
- {% highlight sh %}
249
- $ ng clean compile
250
- {% endhighlight %}
251
-
252
-
253
261
  h2(#growl). Growl, Qube
254
262
 
255
263
  For OS X users, Buildr supports "Growl":http://growl.info/ out of the box to send "completed" and "failed" notifications to the user.
@@ -262,7 +270,7 @@ For other platforms or if you want to notify the user differently, Buildr offers
262
270
  Here is an example using these extension points to send notifications using "Qube":http://launchpad.net/qube:
263
271
 
264
272
  {% highlight ruby %}
265
- # Send notifications using Qube
273
+ # Send notifications using Qube
266
274
  notify = lambda do |type, title, message|
267
275
  param = case type
268
276
  when 'completed'; '-i'
@@ -271,12 +279,12 @@ notify = lambda do |type, title, message|
271
279
  end
272
280
  system "qube #{param} #{title.inspect} #{message.inspect}"
273
281
  end
274
-
275
- Buildr.application.on_completion do |title, message|
282
+
283
+ Buildr.application.on_completion do |title, message|
276
284
  notify['completed', title, message]
277
285
  end
278
- Buildr.application.on_failure do |title, message, ex|
279
- notify['failed', title, message]
286
+ Buildr.application.on_failure do |title, message, ex|
287
+ notify['failed', title, message]
280
288
  end
281
289
  {% endhighlight %}
282
290
 
@@ -341,7 +349,7 @@ $ buildr test cobertura:html
341
349
 
342
350
  As you can guess, the other tasks are @cobertura:xml@, @emma:html@ and @emma:xml@.
343
351
 
344
- If you want to generate a test coverage report only for a specific project, you can do so by using the project name as prefix to the tasks.
352
+ If you want to generate a test coverage report only for a specific project, you can do so by using the project name as prefix to the tasks.
345
353
 
346
354
  {% highlight sh %}
347
355
  $ buildr subModule:cobertura:html
@@ -350,7 +358,7 @@ $ buildr subModule:cobertura:html
350
358
  Each project can specify which classes to include or exclude from cobertura instrumentation by giving a class-name regexp to the @cobertura.include@ or @cobertura.exclude@ methods:
351
359
 
352
360
  {% highlight ruby %}
353
- define 'someModule' do
361
+ define 'someModule' do
354
362
  cobertura.include 'some.package.==*=='
355
363
  cobertura.include /some.(foo|bar).==*==/
356
364
  cobertura.exclude 'some.foo.util.SimpleUtil'
@@ -367,7 +375,7 @@ define 'someModule' do
367
375
  cobertura.check.branch_rate = 75
368
376
  cobertura.check.line_rate = 100
369
377
  cobertura.check.total_line_rate = 98
370
-
378
+
371
379
  task(:deploy).enhance 'cobertura:check'
372
380
  end
373
381
  {% endhighlight %}