buildr 1.2.10 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. data/CHANGELOG +566 -268
  2. data/DISCLAIMER +7 -1
  3. data/KEYS +151 -0
  4. data/NOTICE +23 -8
  5. data/README +122 -22
  6. data/Rakefile +49 -229
  7. data/{lib → addon}/buildr/antlr.rb +23 -10
  8. data/addon/buildr/cobertura.rb +232 -0
  9. data/{lib → addon}/buildr/hibernate.rb +20 -4
  10. data/{lib → addon}/buildr/javacc.rb +27 -12
  11. data/addon/buildr/jdepend.rb +60 -0
  12. data/{lib → addon}/buildr/jetty.rb +34 -18
  13. data/addon/buildr/nailgun.rb +892 -0
  14. data/{lib → addon}/buildr/openjpa.rb +23 -6
  15. data/addon/buildr/org/apache/buildr/JettyWrapper$1.class +0 -0
  16. data/addon/buildr/org/apache/buildr/JettyWrapper$BuildrHandler.class +0 -0
  17. data/addon/buildr/org/apache/buildr/JettyWrapper.class +0 -0
  18. data/{lib/buildr/jetty → addon/buildr/org/apache/buildr}/JettyWrapper.java +19 -0
  19. data/{lib → addon}/buildr/xmlbeans.rb +39 -14
  20. data/bin/buildr +21 -7
  21. data/buildr.gemspec +50 -0
  22. data/doc/css/default.css +225 -0
  23. data/doc/css/print.css +95 -0
  24. data/doc/css/syntax.css +43 -0
  25. data/doc/images/apache-incubator-logo.png +0 -0
  26. data/doc/images/buildr-hires.png +0 -0
  27. data/doc/images/buildr.png +0 -0
  28. data/doc/images/note.png +0 -0
  29. data/doc/images/tip.png +0 -0
  30. data/doc/images/zbuildr.tif +0 -0
  31. data/doc/pages/artifacts.textile +317 -0
  32. data/doc/pages/building.textile +501 -0
  33. data/doc/pages/contributing.textile +178 -0
  34. data/doc/pages/download.textile +25 -0
  35. data/doc/pages/extending.textile +229 -0
  36. data/doc/pages/getting_started.textile +337 -0
  37. data/doc/pages/index.textile +63 -0
  38. data/doc/pages/mailing_lists.textile +17 -0
  39. data/doc/pages/more_stuff.textile +367 -0
  40. data/doc/pages/packaging.textile +592 -0
  41. data/doc/pages/projects.textile +449 -0
  42. data/doc/pages/recipes.textile +127 -0
  43. data/doc/pages/settings_profiles.textile +339 -0
  44. data/doc/pages/testing.textile +475 -0
  45. data/doc/pages/troubleshooting.textile +121 -0
  46. data/doc/pages/whats_new.textile +389 -0
  47. data/doc/print.haml +52 -0
  48. data/doc/print.toc.yaml +28 -0
  49. data/doc/scripts/buildr-git.rb +411 -0
  50. data/doc/scripts/install-jruby.sh +44 -0
  51. data/doc/scripts/install-linux.sh +64 -0
  52. data/doc/scripts/install-osx.sh +52 -0
  53. data/doc/site.haml +55 -0
  54. data/doc/site.toc.yaml +44 -0
  55. data/lib/buildr.rb +28 -45
  56. data/lib/buildr/core.rb +27 -0
  57. data/lib/buildr/core/application.rb +373 -0
  58. data/lib/buildr/core/application_cli.rb +134 -0
  59. data/lib/{core → buildr/core}/build.rb +91 -77
  60. data/lib/{core → buildr/core}/checks.rb +116 -95
  61. data/lib/buildr/core/common.rb +155 -0
  62. data/lib/buildr/core/compile.rb +594 -0
  63. data/lib/buildr/core/environment.rb +120 -0
  64. data/lib/buildr/core/filter.rb +258 -0
  65. data/lib/{core → buildr/core}/generate.rb +22 -5
  66. data/lib/buildr/core/help.rb +118 -0
  67. data/lib/buildr/core/progressbar.rb +156 -0
  68. data/lib/{core → buildr/core}/project.rb +468 -213
  69. data/lib/buildr/core/test.rb +690 -0
  70. data/lib/{core → buildr/core}/transports.rb +107 -127
  71. data/lib/buildr/core/util.rb +235 -0
  72. data/lib/buildr/ide.rb +19 -0
  73. data/lib/{java → buildr/ide}/eclipse.rb +86 -60
  74. data/lib/{java → buildr/ide}/idea.ipr.template +16 -0
  75. data/lib/buildr/ide/idea.rb +194 -0
  76. data/lib/buildr/ide/idea7x.ipr.template +290 -0
  77. data/lib/buildr/ide/idea7x.rb +210 -0
  78. data/lib/buildr/java.rb +26 -0
  79. data/lib/buildr/java/ant.rb +71 -0
  80. data/lib/buildr/java/bdd_frameworks.rb +267 -0
  81. data/lib/buildr/java/commands.rb +210 -0
  82. data/lib/buildr/java/compilers.rb +432 -0
  83. data/lib/buildr/java/deprecated.rb +141 -0
  84. data/lib/buildr/java/groovyc.rb +137 -0
  85. data/lib/buildr/java/jruby.rb +99 -0
  86. data/lib/buildr/java/org/apache/buildr/BuildrNail$Main.class +0 -0
  87. data/lib/buildr/java/org/apache/buildr/BuildrNail.class +0 -0
  88. data/lib/buildr/java/org/apache/buildr/BuildrNail.java +41 -0
  89. data/lib/buildr/java/org/apache/buildr/JavaTestFilter.class +0 -0
  90. data/lib/buildr/java/org/apache/buildr/JavaTestFilter.java +116 -0
  91. data/lib/buildr/java/packaging.rb +706 -0
  92. data/lib/{java → buildr/java}/pom.rb +20 -4
  93. data/lib/buildr/java/rjb.rb +142 -0
  94. data/lib/buildr/java/test_frameworks.rb +290 -0
  95. data/lib/buildr/java/version_requirement.rb +172 -0
  96. data/lib/buildr/packaging.rb +21 -0
  97. data/lib/{java → buildr/packaging}/artifact.rb +170 -179
  98. data/lib/buildr/packaging/artifact_namespace.rb +957 -0
  99. data/lib/buildr/packaging/artifact_search.rb +140 -0
  100. data/lib/buildr/packaging/gems.rb +102 -0
  101. data/lib/buildr/packaging/package.rb +233 -0
  102. data/lib/{tasks → buildr/packaging}/tar.rb +18 -1
  103. data/lib/{tasks → buildr/packaging}/zip.rb +153 -105
  104. data/rakelib/apache.rake +126 -0
  105. data/rakelib/changelog.rake +56 -0
  106. data/rakelib/doc.rake +103 -0
  107. data/rakelib/package.rake +44 -0
  108. data/rakelib/release.rake +53 -0
  109. data/rakelib/rspec.rake +81 -0
  110. data/rakelib/rubyforge.rake +45 -0
  111. data/rakelib/scm.rake +49 -0
  112. data/rakelib/setup.rake +59 -0
  113. data/rakelib/stage.rake +45 -0
  114. data/spec/application_spec.rb +316 -0
  115. data/spec/archive_spec.rb +494 -0
  116. data/spec/artifact_namespace_spec.rb +635 -0
  117. data/spec/artifact_spec.rb +738 -0
  118. data/spec/build_spec.rb +193 -0
  119. data/spec/checks_spec.rb +537 -0
  120. data/spec/common_spec.rb +579 -0
  121. data/spec/compile_spec.rb +561 -0
  122. data/spec/groovy_compilers_spec.rb +239 -0
  123. data/spec/java_bdd_frameworks_spec.rb +238 -0
  124. data/spec/java_compilers_spec.rb +446 -0
  125. data/spec/java_packaging_spec.rb +1042 -0
  126. data/spec/java_test_frameworks_spec.rb +414 -0
  127. data/spec/packaging_helper.rb +63 -0
  128. data/spec/packaging_spec.rb +589 -0
  129. data/spec/project_spec.rb +739 -0
  130. data/spec/sandbox.rb +116 -0
  131. data/spec/scala_compilers_spec.rb +239 -0
  132. data/spec/spec.opts +6 -0
  133. data/spec/spec_helpers.rb +283 -0
  134. data/spec/test_spec.rb +871 -0
  135. data/spec/transport_spec.rb +300 -0
  136. data/spec/version_requirement_spec.rb +115 -0
  137. metadata +188 -77
  138. data/lib/buildr/cobertura.rb +0 -89
  139. data/lib/buildr/jdepend.rb +0 -40
  140. data/lib/buildr/jetty/JettyWrapper$1.class +0 -0
  141. data/lib/buildr/jetty/JettyWrapper$BuildrHandler.class +0 -0
  142. data/lib/buildr/jetty/JettyWrapper.class +0 -0
  143. data/lib/buildr/scala.rb +0 -368
  144. data/lib/core/application.rb +0 -188
  145. data/lib/core/common.rb +0 -562
  146. data/lib/core/help.rb +0 -72
  147. data/lib/core/rake_ext.rb +0 -81
  148. data/lib/java/ant.rb +0 -71
  149. data/lib/java/compile.rb +0 -589
  150. data/lib/java/idea.rb +0 -159
  151. data/lib/java/java.rb +0 -432
  152. data/lib/java/packaging.rb +0 -581
  153. data/lib/java/test.rb +0 -795
  154. data/lib/tasks/concat.rb +0 -35
data/DISCLAIMER CHANGED
@@ -1 +1,7 @@
1
- Apache Buildr is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
1
+ Apache Buildr is an effort undergoing incubation at The Apache Software
2
+ Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of
3
+ all newly accepted projects until a further review indicates that the
4
+ infrastructure, communications, and decision making process have stabilized in
5
+ a manner consistent with other successful ASF projects. While incubation status
6
+ is not necessarily a reflection of the completeness or stability of the code,
7
+ it does indicate that the project has yet to be fully endorsed by the ASF.
data/KEYS ADDED
@@ -0,0 +1,151 @@
1
+ This file contains the PGP keys of various developers.
2
+
3
+ Users: pgp < KEYS
4
+ gpg --import KEYS
5
+ Developers:
6
+ pgp -kxa <your name> and append it to this file.
7
+ (pgpk -ll <your name> && pgpk -xa <your name>) >> this file.
8
+ (gpg --list-sigs <your name>
9
+ && gpg --armor --export <your name>) >> this file.
10
+
11
+
12
+ pub 1024D/4A9EA70E 2007-08-27
13
+ uid Matthieu Riou (CODE SIGNING KEY) <mriou@apache.org>
14
+ sig 3 4A9EA70E 2007-08-27 Matthieu Riou (CODE SIGNING KEY) <mriou@apache.org>
15
+ sub 2048g/2BB53026 2007-08-27
16
+ sig 4A9EA70E 2007-08-27 Matthieu Riou (CODE SIGNING KEY) <mriou@apache.org>
17
+
18
+ -----BEGIN PGP PUBLIC KEY BLOCK-----
19
+ Version: GnuPG v1.4.6 (GNU/Linux)
20
+
21
+ mQGiBEbTJ5sRBADMkb8JsY99WJrjC4UhurXgVXpZgvYZos5g1emZsNh8CE13rPOF
22
+ LQEwBUsotxbbyLdvqp5o1wzWsZWMMe/4IL6Wx0CWDAXLkank/oogRvgrlckJBJ7/
23
+ I/yS/i8ace2rO4sondzbbG+Tg/c0+AxE9HjOSOVgvB4UqeSox2OLdhgpnwCgotmg
24
+ gtdolYzr79wYXh1IeKlBRKED/RqJZQaPTtCtQO/ac+3zQ/7y7zdjoYVcDIeifzlG
25
+ 1yL77Qw/LYT8y5OkO/6vvyLQwnRFTeBqlHYTmCUa+2HMh+BJTWRpDEQbAOHMgMEo
26
+ HuQwX6H5LzuJr2KmxTvQvf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MSVWh2ZUBZfAr5MPg
42
+ dQ1PI9tib1G6J0JhKY+95yOwujdqrmpBxdRtxN3IMIzpe2nBwlkP9CDNKhJn+sKB
43
+ MRClYk6vHp6Q+W4ikln/P62H0CrOfh3jzAYfNcW/lxlp6ZbsRVrwhr+nM3mISQQY
44
+ EQIACQUCRtMnvQIbDAAKCRD6yNe+Sp6nDppoAJ0ZNcruq5Jc0aZ1yvNLQORewQa7
45
+ WQCgn7JcUG0i3/7Kk4101XIhgfNgXww=
46
+ =dGgn
47
+ -----END PGP PUBLIC KEY BLOCK-----
48
+
49
+
50
+ pub 1024D/2EED13CE 2007-05-09
51
+ uid Alex Boisvert (CODE SIGNING KEY) <alex.boisvert@gmail.com>
52
+ sig 3 2EED13CE 2007-05-09 Alex Boisvert (CODE SIGNING KEY) <alex.boisvert@gmail.com>
53
+ sub 1024g/54BC5E9F 2007-05-09
54
+ sig 2EED13CE 2007-05-09 Alex Boisvert (CODE SIGNING KEY) <alex.boisvert@gmail.com>
55
+
56
+
57
+ -----BEGIN PGP PUBLIC KEY BLOCK-----
58
+ Version: GnuPG v1.4.6 (GNU/Linux)
59
+
60
+ mQGiBEZCQ80RBACdngN/JZod5XLn8Was2AbSutxP/H5WssX/StS+0BLNRn+FMhtn
61
+ xXKkJwqKtqbKoHzEKKziQHybD5AfXSBj21l2iZXPfcwfsJJVpDmwBr7p6SPXdNEY
62
+ eDoSW8ZVsA81m/Oc/kxbglVSiH39O3olrQ7bwaKyBMR2QkjxynJYGImtFwCg8FKy
63
+ tPJRTUaXHGYtoGw7Jh5fNSsEAI9qQYA8IK2AwyjJE5D/rcv0nahzFRZqT+HZwmfP
64
+ FVqsgIBUt7KKuDpWw2dzf6utmKHq9JZZb7BvDlfYv7PbPIioX+35SNu7cQUNy7al
65
+ 5aCgf7+evukiQBiEHZio8AzaLquCq/A29igf4fINZ4AJKTL0iRhJAKk3gey/CrOj
66
+ p61WA/oDpGIXU4adXg4x/dbUT2pbgh+KZu8oNjaMH6ZwAQtHYJ3wabH1masz+yb3
67
+ spAUZ3IHJmFrpZeJYCUlLXZqu+/0R7hnoNH9zaE2g1JGwtiKjLEmubCp3nme0/Ca
68
+ lt8aG9XpgcWe09rA7Sbd7p9Pkdgor/p0yaF6eJl5wETdCTTjpLQ6QWxleCBCb2lz
69
+ dmVydCAoQ09ERSBTSUdOSU5HIEtFWSkgPGFsZXguYm9pc3ZlcnRAZ21haWwuY29t
70
+ PohgBBMRAgAgBQJGQkPNAhsjBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQ9sJV
71
+ Ei7tE873UgCeKKtOd1wW8B1b7vlT8J8y5a35kNMAoJ9WjLxFmKbKOkxYrt54esl6
72
+ mGXouQENBEZCQ84QBADI6QppW8BMMaQ4us7axSinOOgTGGkOjuv48d8JnNkgUj34
73
+ N84PME18JlTD9jlkVf+PHjYMaA3fkiKfjlojq0D9V4l7zVDd7e8O5LRL1eOKzivl
74
+ A84a3d2574V1I3ioljCyXLA+41OxYE4DtNXH+mvcumhYGBu2Bg0I5ZuXDvhv5wAE
75
+ CwQAnSLLv0M9LptAiOXl012jgP/4yuZDnBKczvAzMzR847Sy4Shuk03H2rN12+AM
76
+ rX+unJpcGOGxlzJ8Mb40aauBc270wVSCrza9z7/i/4DLPsTUuc+ZgBLWuv+lNitD
77
+ UeieigodJqbr8EFNj6MlhJyUeGxbFmkngR80nZX06sAIILyISQQYEQIACQUCRkJD
78
+ zgIbDAAKCRD2wlUSLu0TzhPzAJ93zO3DP6/fcA1yfbFSSbgLGI7+/wCdFMH1Ptl8
79
+ sGH4v6GYUVHyfKnWKbg=
80
+ =X6Yk
81
+ -----END PGP PUBLIC KEY BLOCK-----
82
+
83
+
84
+ pub 1024D/14A8A2BA 2007-06-12
85
+ uid Assaf Arkin <assaf@apache.org>
86
+ sig 3 14A8A2BA 2007-06-12 Assaf Arkin <assaf@apache.org>
87
+ sub 2048g/8CA2779E 2007-06-12
88
+ sig 14A8A2BA 2007-06-12 Assaf Arkin <assaf@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A0maWMMFvUz1HlfEoepzsKTxxiGQJeRIz4hyRE1nuV+
108
+ bUIXItUYBBaj1Y5prQkzI2WjA75hw+4ZeHYM7wgzWP/1MZwylUicvYsEtJeKXZRw
109
+ IZrKZelffcIZB3OZMUQuJyFMcRz5AVgHLuFTfG7yMLTMxWTNa2b09p8l0TnJuhbI
110
+ 0g8AAwUH/iAEbtT42jvt+EsJIz37K1yV5RMKA6ApAsbRkNOAwXQgdEqky/c26KBa
111
+ Ug4nAdAUm+5Hkx/R3F2wKsxSWiWneNM93tInQH0xdfHPCICfmyUPzTS0igEktqQw
112
+ AWYpegKNXzKg+SmKJZsME50bgEZCB2zPIp/AHmG4SbI9THYvPjHbQKf0yzIO0dIw
113
+ xPxKI0dFSASg3oebANtLAUIPIV/QLNWhPwxT/Qe3aBNc5rfl7vSkVv7loBHE/1lj
114
+ ++MUlrkmzegJAg9u9GSEfoxFjVbK176IdlJoflZnv1pFkGRbBvOaaCVCllLVJMZS
115
+ HlzsreJCFPVgnK3/PMUn2XauF9Y9MjCISQQYEQIACQUCRm8QuwIbDAAKCRDXkC1v
116
+ FKiiuuCjAJ9UhVa0wHAzYXPJatNdgbkHJuQOqgCbB+lDb7ZGGjC9wToAI/ha1Pz+
117
+ T6Y=
118
+ =uoUw
119
+ -----END PGP PUBLIC KEY BLOCK-----
120
+
121
+
122
+ pub 1024D/E81722E2 2008-02-26
123
+ uid Victor Hugo Borja <vborja@apache.org>
124
+ sig 3 E81722E2 2008-02-26 Victor Hugo Borja <vborja@apache.org>
125
+ sub 1024g/699A572F 2008-02-26
126
+ sig E81722E2 2008-02-26 Victor Hugo Borja <vborja@apache.org>
127
+
128
+ -----BEGIN PGP PUBLIC KEY BLOCK-----
129
+ Version: GnuPG v2.0.7 (GNU/Linux)
130
+
131
+ mQGiBEfEVisRBACR0KeNHllX/Vc8nSe/MSLRqjdPpbH4GR8UBZ18+CUBbx+Q98IQ
132
+ INOAOMNGcPdBoM9yzz01DBEfml6+DMlBGrUc375Z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ISQQYEQIACQUCR8RWKwIbDAAKCRCRQKgd6Bci4pE1AKCC
149
+ QKtVPfIqp4oI8qSfsZ0gMafFRwCfTqvRMVFyLEnygWnhpxgJRYk+8Fc=
150
+ =ryOG
151
+ -----END PGP PUBLIC KEY BLOCK-----
data/NOTICE CHANGED
@@ -1,16 +1,31 @@
1
- =========================================================================
2
- == NOTICE file for use with the Apache License, Version 2.0, ==
3
- == in this case for the Apache Buildr distribution. ==
4
- =========================================================================
1
+ =========================================================================
2
+ == NOTICE file for use with the Apache License, Version 2.0, ==
3
+ == in this case for the Apache Buildr distribution. ==
4
+ =========================================================================
5
5
 
6
- Apache Buildr
7
- This product includes software developed at
8
- The Apache Software Foundation (http://www.apache.org/).
6
+ Apache Buildr
7
+ This product includes software developed at
8
+ The Apache Software Foundation (http://www.apache.org/).
9
9
 
10
10
  COPYRIGHT NOTICES
11
-
11
+ -----------------
12
12
  Copyright 2007 Intalio
13
13
 
14
14
  This product includes software developed by Intalio
15
15
  http://www.intalio.com
16
16
 
17
+
18
+ MATERIALS IN DOCUMENTATION
19
+ --------------------------
20
+ The following materials are incorporated into the documentation
21
+ of this software.
22
+
23
+ * DejaVu - http://dejavu.sourceforge.net
24
+ Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved.
25
+ Bitstream Vera is a trademark of Bitstream, Inc.
26
+
27
+ * ColorCons - http://www.mouserunner.com/
28
+ Copyright (c) 2006 Ken Saunders
29
+
30
+ * Ultraviolet stylesheets - http://ultraviolet.rubyforge.org
31
+ Copyright (c) 2007 FIX
data/README CHANGED
@@ -4,70 +4,170 @@ This is Buildr, the build system that doesn't suck.
4
4
 
5
5
  http://incubator.apache.org/buildr/
6
6
 
7
+
7
8
  == Get Started
8
9
 
9
- === Install Buildr:
10
+ === Install Buildr
11
+
12
+ Buildr needs Ruby 1.8 or later and RubyGems 0.9 or later.
13
+
14
+ Windows users can get the one-click Ruby installer, which includes the latest
15
+ version of Ruby and RubyGems:
16
+
17
+ http://rubyinstaller.rubyforge.org
18
+
10
19
  Make sure to set JAVA_HOME environment variable first, then:
11
20
 
12
21
  gem install buildr
13
22
 
14
- (Use su for Linux and OS/X)
23
+ (Use sudo for Linux and OS/X)
15
24
 
16
- === RTFM:
25
+ More installation and setup instructions available online
26
+ http://incubator.apache.org/buildr/
27
+
28
+
29
+ === RTFM
17
30
 
18
31
  * Buildr documentation: http://incubator.apache.org/buildr/
19
32
  * More about Rake: http://docs.rubyrake.org
20
33
  * Antwrap documentation: http://antwrap.rubyforge.org
21
34
 
22
- === Mailing list:
23
35
 
24
- * Users: buildr-user@incubator.apache.org (subscribe: buildr-user-subscribe@incubator.apache.org, archive: http://mail-archives.apache.org/mod_mbox/incubator-buildr-user/
36
+ === Mailing list
25
37
 
26
- * Developers: buildr-dev@incubator.apache.org (subscribe: buildr-dev-subscribe@incubator.apache.org, archive: http://mail-archives.apache.org/mod_mbox/incubator-buildr-dev/
38
+ * Users: buildr-user@incubator.apache.org (subscribe:
39
+ buildr-user-subscribe@incubator.apache.org, archive:
40
+ http://mail-archives.apache.org/mod_mbox/incubator-buildr-user/
41
+
42
+ * Developers: buildr-dev@incubator.apache.org (subscribe:
43
+ buildr-dev-subscribe@incubator.apache.org, archive:
44
+ http://mail-archives.apache.org/mod_mbox/incubator-buildr-dev/
27
45
 
28
46
  Create your own Buildfile and start living the life!
29
47
 
30
48
 
31
49
  == Where's My Ruby?
32
50
 
33
- Buildr needs Ruby 1.8 or later and RubyGems 0.9 or later. All other dependencies are installed when you run:
51
+ Buildr needs Ruby 1.8 or later and RubyGems 0.9 or later. All other
52
+ dependencies are installed when you run:
53
+
34
54
  gem install buildr
35
55
 
36
56
  === Windows
37
57
 
38
- Windows users can get the one-click Ruby installer, which includes the latest version of Ruby and RubyGems:
58
+ Windows users can get the one-click Ruby installer, which includes the latest
59
+ version of Ruby and RubyGems:
39
60
 
40
61
  http://rubyinstaller.rubyforge.org
41
62
 
42
- === Linux and OS/X
63
+ Before installing Buildr, please set the JAVA_HOME environment variable to
64
+ point to your JDK distribution. Next, use Ruby Gem to install Buildr:
65
+
66
+ > gem install buildr
67
+
68
+ When prompted for a platform, select mswin32.
69
+
70
+ === Linux, BSD, Cygwin
71
+
72
+ On Linux/BSD/Cygwin, use your default package manager, for example, for Ubuntu:
73
+
74
+ $ sudo apt-get install ruby
75
+ $ sudo apt-get install ruby1.8-dev
76
+ $ sudo apt-get install build-essential
77
+ $ sudo apt-get install libopenssl-ruby
78
+
79
+ Before installing Buildr, please set the JAVA_HOME environment variable to
80
+ point to your JDK distribution. Next, use Ruby Gem to install Buildr:
81
+
82
+ $ sudo env JAVA_HOME=$JAVA_HOME gem install buildr
83
+
84
+ When prompted for a platform, select ruby.
85
+
86
+ === OS/X
87
+
88
+ Leopard includes the latest version of Ruby, if you are using Tiger or an older
89
+ release, we recommend re-installing the latest:
43
90
 
44
- If you're running Linux or OS/X you may already have Ruby installed, or you can get it through the usual channels:
45
- yum install ruby
46
- apt-get install ruby
47
- emerge ruby
91
+ http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx
48
92
 
49
- You can get RubyGems here: http://rubyforge.org/frs/?group_id=126
93
+ To install Buildr:
50
94
 
51
- To install:
52
- tar -xz < rubygems-0.9.2.tgz
53
- cd rubygems-0.9.2
54
- sudo ruby setup.rb
55
- sudo gem install rubygems-update
95
+ $ sudo gem install buildr
96
+
97
+ When prompted for a platform, select ruby.
56
98
 
57
99
 
58
100
  == Living On the Edge
59
101
 
60
102
  You can check the latest sources from SVN:
103
+
61
104
  svn co http://svn.apache.org/repos/asf/incubator/buildr/trunk
62
- Or browse the SVN repository online: http://svn.apache.org/repos/asf/incubator/buildr
63
105
 
64
- To install Buildr locally from source, do:
106
+ Or browse the SVN repository online:
107
+ http://svn.apache.org/repos/asf/incubator/buildr
108
+
109
+ To install Buildr locally from source:
65
110
 
66
111
  cd buildr
67
112
  rake install
68
113
 
69
- If the cutting edge doesn't work, make sure to check the CHANGELOG, to see which changes might have broken your build.
114
+ If the cutting edge doesn't work, make sure to check the CHANGELOG, to see
115
+ which changes might have broken your build. To run all the test cases:
116
+
117
+ rake spec
118
+
119
+
120
+ == Disclaimer
121
+
122
+ :include:DISCLAIMER
123
+
70
124
 
71
125
  == License
72
126
 
73
127
  :include:LICENSE
128
+
129
+
130
+ == Third-party dependencies
131
+
132
+ Even though those dependencies aren't shipped with Buildr, Buildr needs
133
+ the third-party libraries listed below to run. According licenses are
134
+ bundled under the etc/legal directory (when available).
135
+
136
+ * Rake - http://rubyforge.org/projects/rake
137
+ Licensed under MIT/X Consortium
138
+ Copyright 2003, 2004 by Jim Weirich.
139
+
140
+ * Builder - http://rubyforge.org/projects/builder
141
+ Licensed under MIT/X Consortium
142
+ Copyright 2004 by Jim Weirich (jim@weirichhouse.org).
143
+
144
+ * net-ssh - http://rubyforge.org/projects/net-ssh
145
+ Licensed under BSD
146
+ Copyright 2004, Jamis Buck (jamis@37signals.com)
147
+
148
+ * rubyzip - http://rubyforge.org/projects/rubyzip
149
+ Licensed under the Ruby License
150
+ Authors: Thomas Sondergaard (thomas at sondergaard.cc),
151
+ Technorama Ltd. (oss-ruby-zip at technorama.net),
152
+ extra-field support contributed by Tatsuki Sugiura (sugi at nemui.org)
153
+
154
+ * highline - http://rubyforge.org/projects/highline
155
+ Licensed under the Ruby License
156
+ Copyright 2005 Gray Productions.
157
+ Copyright 2007 Jeremy Hinegardner.
158
+
159
+ * antwrap - http://rubyforge.org/projects/antwrap
160
+ Licensed under LGPL
161
+ Copyright Caleb Powell 2007
162
+
163
+ * rspec - http://rubyforge.org/projects/rspec
164
+ Licensed under MIT/X Consortium
165
+ Copyright 2005-2007 The RSpec Development Team
166
+
167
+ * xml-simple - http://rubyforge.org/projects/xml-simple
168
+ Licensed under the Ruby License
169
+ Copyright (c) 2003 Maik Schmidt
170
+
171
+ * ruwiki (archive-tar-minitar) - http://rubyforge.org/projects/ruwiki/
172
+ Licensed under the Ruby License
173
+ Copyright 2004 Mauricio Julio Fernández Pradier and Austin Ziegler
data/Rakefile CHANGED
@@ -1,243 +1,63 @@
1
- require "rubygems"
2
- Gem::manage_gems
3
- require "rake/gempackagetask"
4
- require "spec/rake/spectask"
5
-
6
-
7
- # Gem specification comes first, other tasks rely on it.
8
- def specify(platform)
9
- Gem::Specification.new do |spec|
10
- spec.name = "buildr"
11
- spec.version = File.read(__FILE__.pathmap("%d/lib/buildr.rb")).scan(/VERSION\s*=\s*(['"])(.*)\1/)[0][1]
12
- spec.author = "Apache Buildr"
13
- spec.email = "buildr-user@incubator.apache.org"
14
- spec.homepage = "http://incubator.apache.org/#{spec.name}/"
15
- spec.summary = "A build system that doesn't suck"
16
- spec.files = FileList["lib/**/*", "CHANGELOG", "README", "LICENSE", "NOTICE", "DISCLAIMER", "Rakefile"].collect
17
- spec.require_path = "lib"
18
- spec.autorequire = "buildr.rb"
19
- spec.has_rdoc = true
20
- spec.extra_rdoc_files = ["README", "CHANGELOG", "LICENSE"]
21
- spec.rdoc_options << "--title" << "Buildr -- #{spec.summary}" <<
22
- "--main" << "README" << "--line-numbers" << "-inline-source"
23
- spec.rubyforge_project = "buildr"
24
-
25
- spec.bindir = "bin" # Use these for applications.
26
- spec.executables = ["buildr"]
27
-
28
- # Tested against these dependencies.
29
- spec.add_dependency "rake", "= 0.7.3"
30
- spec.add_dependency "facets", "= 1.8.54"
31
- spec.add_dependency "builder", "= 2.1.2"
32
- spec.add_dependency "net-ssh", "= 1.1.2"
33
- spec.add_dependency "net-sftp", "= 1.1.0"
34
- spec.add_dependency "rubyzip", "= 0.9.1"
35
- spec.add_dependency "highline", "= 1.4.0"
36
- spec.add_dependency "Antwrap", "= 0.6.0"
37
- spec.add_dependency "rspec", "= 1.0.8"
38
- spec.add_dependency "xml-simple", "= 1.0.11"
39
- spec.add_dependency "archive-tar-minitar", "= 0.5.1"
40
-
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 'rake/gempackagetask'
18
+
19
+
20
+ def spec(platform = nil)
21
+ @specs ||= {}
22
+ platform ||= RUBY_PLATFORM =~ /java/ ? 'java' : 'ruby'
23
+ @specs[platform] ||= begin
24
+ spec = Gem::Specification.load(File.join(File.dirname(__FILE__), 'buildr.gemspec'))
41
25
  spec.platform = platform
42
-
43
- yield spec if block_given?
44
- end
45
- end
46
-
47
- spec = specify(Gem::Platform::RUBY) { |spec| spec.add_dependency "rjb", ">= 1.0.11" }
48
- jruby_spec = specify('java')
49
- package = Rake::GemPackageTask.new(spec) do |pkg|
50
- pkg.need_tar = true
51
- pkg.need_zip = true
52
- end
53
- jruby_package = Rake::GemPackageTask.new(jruby_spec)
54
-
55
- desc "Install the package locally"
56
- task :install=>:package do |task|
57
- install = RUBY_PLATFORM == 'java' ? jruby_package : package
58
- system 'gem', 'install', File.expand_path(install.gem_file, install.package_dir)
59
- end
60
-
61
- desc "Uninstall previously installed packaged"
62
- task :uninstall do |task|
63
- install = RUBY_PLATFORM == 'java' ? jruby_package : package
64
- system "gem", "uninstall", install.name, "-v", install.version.to_s
65
- end
66
-
67
-
68
- # Testing is everything.
69
- desc "Run test cases"
70
- Spec::Rake::SpecTask.new(:test) do |task|
71
- task.spec_files = FileList["test/**/*.rb"]
72
- task.spec_opts = [ "--format", "specdoc", "--color", "--diff" ]
73
- end
74
-
75
- desc "Run test cases with rcov"
76
- Spec::Rake::SpecTask.new(:rcov) do |task|
77
- task.spec_files = FileList["test/**/*.rb"]
78
- task.spec_opts = [ "--format", "specdoc", "--color", "--diff" ]
79
- task.rcov = true
80
- end
81
-
82
-
83
- # Documentation.
84
- begin
85
- require "rake/rdoctask"
86
- require "docter"
87
- require "docter/server"
88
- require "docter/ultraviolet"
89
-
90
- desc "Generate RDoc documentation"
91
- rdoc = Rake::RDocTask.new(:rdoc) do |rdoc|
92
- rdoc.rdoc_dir = "html/rdoc"
93
- rdoc.title = spec.name
94
- rdoc.options = spec.rdoc_options
95
- rdoc.rdoc_files.include("lib/**/*.rb")
96
- rdoc.rdoc_files.include spec.extra_rdoc_files
97
- end
98
-
99
- web_collection = Docter.collection.using("doc/web.toc.textile").include("doc/pages", "CHANGELOG")
100
- web_template = Docter.template("doc/web.haml").include("doc/css", "doc/images")
101
- print_collection = Docter.collection.using("doc/print.toc.textile").include("doc/pages")
102
- print_template = Docter.template("doc/print.haml").include("doc/css", "doc/images")
103
-
104
- Docter.filter_for(:footnote) do |html|
105
- html.gsub(/<p id="fn(\d+)">(.*?)<\/p>/, %{<p id="fn\\1" class="footnote">\\2</p>})
106
- end
107
-
108
- desc "Produce PDF"
109
- print = Docter::Rake.generate("print", print_collection, print_template, :one_page)
110
- pdf_file = file("html/buildr.pdf"=>print) do |task|
111
- mkpath "html"
112
- sh *%W{prince #{print}/index.html -o #{task.name}} do |ok, res|
113
- fail "Failed to create PDF, see errors above" unless ok
26
+ if platform =~ /java/
27
+ spec.add_dependency 'ci_reporter', '~> 1.5'
28
+ else
29
+ spec.add_dependency 'rjb', '~>1.1'
114
30
  end
31
+ spec
115
32
  end
116
- task("pdf"=>pdf_file) { |task| `kpdf #{File.expand_path(pdf_file.to_s)}` }
117
-
118
- desc "Generate HTML documentation"
119
- html = Docter::Rake.generate("html", web_collection, web_template)
120
- desc "Run Docter server"
121
- Docter::Rake.serve :docter, web_collection, web_template, :port=>3000
122
-
123
- desc "Generate all documentation merged into the html directory"
124
- task "docs"=>[html, rdoc.name, pdf_file]
125
- task("clobber") { rm_rf [html, print].map(&:to_s) }
126
-
127
- rescue LoadError=>error
128
- puts error
129
- puts "To create the Buildr documentation you need to:"
130
- puts " gem install docter"
131
- puts " gem install ultraviolet"
132
33
  end
133
34
 
134
35
 
135
- # Commit to SVN, upload and do the release cycle.
136
- namespace :svn do
137
- task :clean? do |task|
138
- status = `svn status`.reject { |line| line =~ /\s(pkg|html)$/ }
139
- fail "Cannot release unless all local changes are in SVN:\n#{status}" unless status.empty?
140
- end
141
-
142
- task :tag do |task|
143
- cur_url = `svn info`.scan(/URL: (.*)/)[0][0]
144
- new_url = cur_url.sub(/(trunk$)|(branches\/\w*)$/, "tags/#{spec.version.to_s}")
145
- system "svn", "copy", cur_url, new_url, "-m", "Release #{spec.version.to_s}"
146
- end
36
+ desc 'Compile Java libraries used by Buildr'
37
+ task 'compile' do
38
+ puts 'Compiling Java libraries ...'
39
+ sh Config::CONFIG['ruby_install_name'], '-Ilib', '-Iaddon', 'bin/buildr', 'compile'
40
+ puts 'OK'
147
41
  end
42
+ file Rake::GemPackageTask.new(spec).package_dir=>'compile'
43
+ file Rake::GemPackageTask.new(spec).package_dir_path=>'compile'
148
44
 
149
- namespace :upload do
150
-
151
- task :docs=>"rake:docs" do |task|
152
- sh "rsync -r --del --progress html/* people.apache.org:/www/incubator.apache.org/#{spec.rubyforge_project.downcase}/"
153
- end
154
-
155
- task :packages=>["rake:docs", "rake:package"] do |task|
156
- require 'rubyforge'
157
-
158
- # Read the changes for this release.
159
- pattern = /(^(\d+\.\d+(?:\.\d+)?)\s+\(\d+\/\d+\/\d+\)\s*((:?^[^\n]+\n)*))/
160
- changelog = File.read(__FILE__.pathmap("%d/CHANGELOG"))
161
- changes = changelog.scan(pattern).inject({}) { |hash, set| hash[set[1]] = set[2] ; hash }
162
- current = changes[spec.version.to_s]
163
- if !current && spec.version.to_s =~ /\.0$/
164
- current = changes[spec.version.to_s.split(".")[0..-2].join(".")]
165
- end
166
- fail "No changeset found for version #{spec.version}" unless current
167
-
168
- puts "Uploading #{spec.name} #{spec.version}"
169
- files = Dir.glob('pkg/*.{gem,tgz,zip}')
170
- rubyforge = RubyForge.new
171
- rubyforge.login
172
- File.open(".changes", 'w'){|f| f.write(current)}
173
- rubyforge.userconfig.merge!("release_changes" => ".changes", "preformatted" => true)
174
- rubyforge.add_release spec.rubyforge_project.downcase, spec.name.downcase, spec.version, *files
175
- rm ".changes"
176
- puts "Release #{spec.version} uploaded"
177
- end
45
+ # We also need the other package (JRuby if building on Ruby, and vice versa)
46
+ Rake::GemPackageTask.new spec(RUBY_PLATFORM =~ /java/ ? 'ruby' : 'java') do |task|
47
+ # Block necessary otherwise doesn't do full job.
178
48
  end
179
49
 
180
- namespace :release do
181
- task :ready? do
182
- require 'highline'
183
- require 'highline/import'
184
50
 
185
- puts "This version: #{spec.version}"
186
- puts
187
- puts "Top 4 lines form CHANGELOG:"
188
- puts File.readlines("CHANGELOG")[0..3].map { |l| " #{l}" }
189
- puts
190
- ask("Top-entry in CHANGELOG file includes today's date?") =~ /yes/i or
191
- fail "Please update CHANGELOG to include the right date"
192
- end
51
+ ENV['incubating'] = 'true'
52
+ ENV['staging'] = "people.apache.org:~/public_html/#{spec.name}/#{spec.version}"
193
53
 
194
- task :post do
195
- # Practical example of functional read but not comprehend code:
196
- next_version = spec.version.to_ints.zip([0, 0, 1]).map { |a| a.inject(0) { |t,i| t + i } }.join(".")
197
- puts "Updating lib/buildr.rb to next version number: #{next_version}"
198
- buildr_rb = File.read(__FILE__.pathmap("%d/lib/buildr.rb")).
199
- sub(/(VERSION\s*=\s*)(['"])(.*)\2/) { |line| "#{$1}#{$2}#{next_version}#{$2}" }
200
- File.open(__FILE__.pathmap("%d/lib/buildr.rb"), "w") { |file| file.write buildr_rb }
201
- puts "Adding entry to CHANGELOG"
202
- changelog = File.read(__FILE__.pathmap("%d/CHANGELOG"))
203
- File.open(__FILE__.pathmap("%d/CHANGELOG"), "w") { |file| file.write "#{next_version} (Pending)\n\n#{changelog}" }
204
- end
205
-
206
- task :meat=>["clobber", "svn:clean?", "test", "upload:packages", "upload:docs", "svn:tag"]
207
- end
208
-
209
- desc "Upload release to RubyForge including docs, tag SVN"
210
- task :release=>[ "release:ready?", "release:meat", "release:post" ]
211
-
212
-
213
- # Misc, may not survive so don't rely on these.
214
- task :report do |task|
215
- puts "#{spec.name} #{spec.version}"
216
- puts spec.summary
217
- sources = (spec.files + FileList["test/**/*.rb"]).reject { |f| File.directory?(f) }
218
- sources.inject({}) do |lists, file|
219
- File.readlines(file).each_with_index do |line, i|
220
- if line =~ /(TODO|FIXME|NOTE):\s*(.*)/
221
- list = lists[$1] ||= []
222
- list << sprintf("%s (%d): %s", file, i, $2)
223
- end
224
- end
225
- lists
226
- end.each_pair do |type, list|
227
- unless list.empty?
228
- puts
229
- puts "#{type}:"
230
- list.each { |line| puts line }
231
- end
232
- end
233
- end
54
+ task 'apache:license'=>spec.files
55
+ task('apache:license').prerequisites.exclude('doc/css/syntax.css')
234
56
 
235
- namespace :setup do
236
- task :jetty do
237
- cp = ["jetty-6.1.1.jar", "jetty-util-6.1.1.jar", "servlet-api-2.5-6.1.1"].
238
- map { |jar| `locate #{jar}`.split.first }.join(File::PATH_SEPARATOR)
239
- Dir.chdir "lib/buildr/jetty" do
240
- `javac -cp #{cp} JettyWrapper.java`
241
- end
242
- end
57
+ task 'spec:check' do
58
+ print 'Checking that we have JRuby, Scala and Groovy available ... '
59
+ fail 'Full testing requires JRuby!' unless which('jruby')
60
+ fail 'Full testing requires Scala!' unless which('scala')
61
+ fail 'Full testing requires Groovy!' unless which('groovy')
62
+ puts 'OK'
243
63
  end