mguymon-buildr 1.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1291 -0
- data/LICENSE +176 -0
- data/NOTICE +26 -0
- data/README.rdoc +134 -0
- data/Rakefile +44 -0
- data/_buildr +35 -0
- data/_jbuildr +35 -0
- data/addon/buildr/antlr.rb +65 -0
- data/addon/buildr/bnd.rb +147 -0
- data/addon/buildr/cobertura.rb +22 -0
- data/addon/buildr/drb.rb +281 -0
- data/addon/buildr/emma.rb +22 -0
- data/addon/buildr/hibernate.rb +149 -0
- data/addon/buildr/javacc.rb +85 -0
- data/addon/buildr/jaxb_xjc.rb +72 -0
- data/addon/buildr/jdepend.rb +60 -0
- data/addon/buildr/jetty.rb +248 -0
- data/addon/buildr/jibx.rb +86 -0
- data/addon/buildr/nailgun.rb +221 -0
- data/addon/buildr/openjpa.rb +88 -0
- data/addon/buildr/org/apache/buildr/BuildrNail$Main.class +0 -0
- data/addon/buildr/org/apache/buildr/BuildrNail.class +0 -0
- data/addon/buildr/org/apache/buildr/BuildrNail.java +41 -0
- data/addon/buildr/org/apache/buildr/JettyWrapper$1.class +0 -0
- data/addon/buildr/org/apache/buildr/JettyWrapper$BuildrHandler.class +0 -0
- data/addon/buildr/org/apache/buildr/JettyWrapper.class +0 -0
- data/addon/buildr/org/apache/buildr/JettyWrapper.java +144 -0
- data/addon/buildr/protobuf.rb +88 -0
- data/addon/buildr/xmlbeans.rb +93 -0
- data/bin/buildr +19 -0
- data/buildr.buildfile +58 -0
- data/buildr.gemspec +78 -0
- data/doc/_config.yml +1 -0
- data/doc/_layouts/default.html +90 -0
- data/doc/_layouts/preface.html +22 -0
- data/doc/artifacts.textile +217 -0
- data/doc/building.textile +276 -0
- data/doc/contributing.textile +268 -0
- data/doc/css/default.css +236 -0
- data/doc/css/print.css +101 -0
- data/doc/css/syntax.css +23 -0
- data/doc/download.textile +151 -0
- data/doc/extending.textile +212 -0
- data/doc/images/1442160941-frontcover.jpg +0 -0
- data/doc/images/asf-logo.gif +0 -0
- data/doc/images/asf-logo.png +0 -0
- data/doc/images/buildr-hires.png +0 -0
- data/doc/images/buildr.png +0 -0
- data/doc/images/favicon.png +0 -0
- data/doc/images/growl-icon.tiff +0 -0
- data/doc/images/note.png +0 -0
- data/doc/images/project-structure.png +0 -0
- data/doc/images/tip.png +0 -0
- data/doc/images/zbuildr.png +0 -0
- data/doc/images/zbuildr.tif +0 -0
- data/doc/index.textile +109 -0
- data/doc/installing.textile +284 -0
- data/doc/languages.textile +599 -0
- data/doc/mailing_lists.textile +29 -0
- data/doc/more_stuff.textile +845 -0
- data/doc/packaging.textile +618 -0
- data/doc/preface.textile +54 -0
- data/doc/projects.textile +276 -0
- data/doc/quick_start.textile +210 -0
- data/doc/releasing.textile +117 -0
- data/doc/scripts/buildr-git.rb +512 -0
- data/doc/scripts/gitflow.rb +296 -0
- data/doc/scripts/install-jruby.sh +44 -0
- data/doc/scripts/install-linux.sh +73 -0
- data/doc/scripts/install-osx.sh +52 -0
- data/doc/settings_profiles.textile +287 -0
- data/doc/testing.textile +247 -0
- data/etc/KEYS +189 -0
- data/lib/buildr.rb +44 -0
- data/lib/buildr/clojure.rb +34 -0
- data/lib/buildr/clojure/shell.rb +52 -0
- data/lib/buildr/core.rb +34 -0
- data/lib/buildr/core/application.rb +700 -0
- data/lib/buildr/core/build.rb +516 -0
- data/lib/buildr/core/cc.rb +166 -0
- data/lib/buildr/core/checks.rb +253 -0
- data/lib/buildr/core/common.rb +151 -0
- data/lib/buildr/core/compile.rb +622 -0
- data/lib/buildr/core/doc.rb +276 -0
- data/lib/buildr/core/environment.rb +129 -0
- data/lib/buildr/core/filter.rb +404 -0
- data/lib/buildr/core/generate.rb +197 -0
- data/lib/buildr/core/help.rb +119 -0
- data/lib/buildr/core/jrebel.rb +42 -0
- data/lib/buildr/core/linux.rb +30 -0
- data/lib/buildr/core/osx.rb +46 -0
- data/lib/buildr/core/progressbar.rb +161 -0
- data/lib/buildr/core/project.rb +975 -0
- data/lib/buildr/core/run.rb +43 -0
- data/lib/buildr/core/shell.rb +137 -0
- data/lib/buildr/core/test.rb +843 -0
- data/lib/buildr/core/transports.rb +575 -0
- data/lib/buildr/core/util.rb +537 -0
- data/lib/buildr/groovy.rb +20 -0
- data/lib/buildr/groovy/bdd.rb +106 -0
- data/lib/buildr/groovy/compiler.rb +153 -0
- data/lib/buildr/groovy/doc.rb +76 -0
- data/lib/buildr/groovy/shell.rb +57 -0
- data/lib/buildr/ide.rb +19 -0
- data/lib/buildr/ide/eclipse.rb +427 -0
- data/lib/buildr/ide/eclipse/java.rb +53 -0
- data/lib/buildr/ide/eclipse/plugin.rb +71 -0
- data/lib/buildr/ide/eclipse/scala.rb +68 -0
- data/lib/buildr/ide/idea.rb +576 -0
- data/lib/buildr/java.rb +25 -0
- data/lib/buildr/java/ant.rb +94 -0
- data/lib/buildr/java/bdd.rb +460 -0
- data/lib/buildr/java/cobertura.rb +297 -0
- data/lib/buildr/java/commands.rb +223 -0
- data/lib/buildr/java/compiler.rb +135 -0
- data/lib/buildr/java/deprecated.rb +141 -0
- data/lib/buildr/java/doc.rb +86 -0
- data/lib/buildr/java/ecj.rb +69 -0
- data/lib/buildr/java/emma.rb +244 -0
- data/lib/buildr/java/external.rb +73 -0
- data/lib/buildr/java/jruby.rb +122 -0
- data/lib/buildr/java/jtestr_result.rb +295 -0
- data/lib/buildr/java/jtestr_runner.rb.erb +116 -0
- data/lib/buildr/java/org/apache/buildr/JavaTestFilter.class +0 -0
- data/lib/buildr/java/org/apache/buildr/JavaTestFilter.java +142 -0
- data/lib/buildr/java/packaging.rb +734 -0
- data/lib/buildr/java/pom.rb +178 -0
- data/lib/buildr/java/rjb.rb +154 -0
- data/lib/buildr/java/test_result.rb +101 -0
- data/lib/buildr/java/tests.rb +362 -0
- data/lib/buildr/java/version_requirement.rb +172 -0
- data/lib/buildr/packaging.rb +25 -0
- data/lib/buildr/packaging/archive.rb +535 -0
- data/lib/buildr/packaging/artifact.rb +904 -0
- data/lib/buildr/packaging/artifact_namespace.rb +984 -0
- data/lib/buildr/packaging/artifact_search.rb +140 -0
- data/lib/buildr/packaging/gems.rb +105 -0
- data/lib/buildr/packaging/package.rb +249 -0
- data/lib/buildr/packaging/repository_array.rb +108 -0
- data/lib/buildr/packaging/tar.rb +189 -0
- data/lib/buildr/packaging/version_requirement.rb +192 -0
- data/lib/buildr/packaging/zip.rb +178 -0
- data/lib/buildr/packaging/ziptask.rb +356 -0
- data/lib/buildr/resources/buildr.icns +0 -0
- data/lib/buildr/resources/completed.png +0 -0
- data/lib/buildr/resources/failed.png +0 -0
- data/lib/buildr/resources/icons-license.txt +17 -0
- data/lib/buildr/run.rb +195 -0
- data/lib/buildr/scala.rb +26 -0
- data/lib/buildr/scala/bdd.rb +118 -0
- data/lib/buildr/scala/compiler.rb +242 -0
- data/lib/buildr/scala/doc.rb +142 -0
- data/lib/buildr/scala/org/apache/buildr/SpecsSingletonRunner.class +0 -0
- data/lib/buildr/scala/org/apache/buildr/SpecsSingletonRunner.java +57 -0
- data/lib/buildr/scala/shell.rb +52 -0
- data/lib/buildr/scala/tests.rb +171 -0
- data/lib/buildr/shell.rb +185 -0
- data/lib/buildr/version.rb +18 -0
- data/rakelib/all-in-one.rake +113 -0
- data/rakelib/checks.rake +57 -0
- data/rakelib/doc.rake +137 -0
- data/rakelib/metrics.rake +39 -0
- data/rakelib/package.rake +73 -0
- data/rakelib/release.rake +160 -0
- data/rakelib/rspec.rake +91 -0
- data/rakelib/setup.rake +66 -0
- data/rakelib/stage.rake +220 -0
- data/spec/addon/bnd_spec.rb +330 -0
- data/spec/addon/drb_spec.rb +328 -0
- data/spec/addon/jaxb_xjc_spec.rb +125 -0
- data/spec/core/application_spec.rb +631 -0
- data/spec/core/build_spec.rb +837 -0
- data/spec/core/cc_spec.rb +224 -0
- data/spec/core/checks_spec.rb +519 -0
- data/spec/core/common_spec.rb +725 -0
- data/spec/core/compile_spec.rb +658 -0
- data/spec/core/doc_spec.rb +195 -0
- data/spec/core/extension_spec.rb +201 -0
- data/spec/core/generate_spec.rb +33 -0
- data/spec/core/project_spec.rb +772 -0
- data/spec/core/run_spec.rb +93 -0
- data/spec/core/shell_spec.rb +146 -0
- data/spec/core/test_spec.rb +1320 -0
- data/spec/core/transport_spec.rb +544 -0
- data/spec/core/util_spec.rb +141 -0
- data/spec/groovy/bdd_spec.rb +80 -0
- data/spec/groovy/compiler_spec.rb +251 -0
- data/spec/groovy/doc_spec.rb +65 -0
- data/spec/ide/eclipse_spec.rb +739 -0
- data/spec/ide/idea_spec.rb +1145 -0
- data/spec/java/ant_spec.rb +37 -0
- data/spec/java/bdd_spec.rb +374 -0
- data/spec/java/cobertura_spec.rb +112 -0
- data/spec/java/commands_spec.rb +93 -0
- data/spec/java/compiler_spec.rb +252 -0
- data/spec/java/doc_spec.rb +56 -0
- data/spec/java/ecj_spec.rb +115 -0
- data/spec/java/emma_spec.rb +121 -0
- data/spec/java/external_spec.rb +56 -0
- data/spec/java/java_spec.rb +132 -0
- data/spec/java/packaging_spec.rb +1266 -0
- data/spec/java/run_spec.rb +78 -0
- data/spec/java/test_coverage_helper.rb +257 -0
- data/spec/java/tests_spec.rb +497 -0
- data/spec/packaging/archive_spec.rb +775 -0
- data/spec/packaging/artifact_namespace_spec.rb +743 -0
- data/spec/packaging/artifact_spec.rb +1074 -0
- data/spec/packaging/packaging_helper.rb +63 -0
- data/spec/packaging/packaging_spec.rb +719 -0
- data/spec/packaging/repository_array_spec.rb +109 -0
- data/spec/sandbox.rb +165 -0
- data/spec/scala/bdd_spec.rb +124 -0
- data/spec/scala/compiler_spec.rb +289 -0
- data/spec/scala/doc_spec.rb +88 -0
- data/spec/scala/scala.rb +38 -0
- data/spec/scala/tests_spec.rb +283 -0
- data/spec/spec_helpers.rb +369 -0
- data/spec/version_requirement_spec.rb +143 -0
- data/spec/xpath_matchers.rb +121 -0
- metadata +649 -0
@@ -0,0 +1,268 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
title: Contributing
|
4
|
+
---
|
5
|
+
|
6
|
+
Buildr is a community effort, and we welcome all contributors. Here's your chance to get involved and help your fellow developers.
|
7
|
+
|
8
|
+
h2(#involved). Getting involved
|
9
|
+
|
10
|
+
All our discussions are done in the open, over "email":mailing_lists.html, and that would be the first place to look for answers, raise ideas, etc. For bug reports, issues and patches, "see below":#bugs.
|
11
|
+
|
12
|
+
|
13
|
+
h2(#mailing_lists). Mailing Lists
|
14
|
+
|
15
|
+
We run two mailing lists, the "users":http://buildr.markmail.org/search/list:users mailing list for developers working with Buildr, that would be you if you're using Buildr or interested in using it. There's the "dev":http://buildr.markmail.org/search/list:dev mailing list for talking about development of Buildr itself. There's also "commits":http://buildr.markmail.org/search/list:commits mailing list for following SVN commits and JIRA issues.
|
16
|
+
|
17
|
+
Check the "mailing lists":mailing_lists.html page for more information on subscribing, searching and posting to the mailing list.
|
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
|
+
|
27
|
+
|
28
|
+
h2(#bugs). Bugs (aka Issues)
|
29
|
+
|
30
|
+
We really do try to keep bugs to a minimum, and anticipate everything you'll ever want to do with Buildr. We're also, not perfect. So you may have found a bug, or have an enhancement in mind, or better yet, a patch to contribute. Here's what you can do.
|
31
|
+
|
32
|
+
If it's a bug, enhancement or patch, add it to "JIRA":http://issues.apache.org/jira/browse/Buildr. For trivial stuff, that's good enough.
|
33
|
+
|
34
|
+
If it needs more attention, start a discussion over on the mailing list. We will still use JIRA to log the progress, but the mailing list is a better place for talking things through.
|
35
|
+
|
36
|
+
When reporting a bug, please tell us which version of Ruby, Buildr and Java you are using, and also which operating system you are on:
|
37
|
+
|
38
|
+
{% highlight sh %}
|
39
|
+
$ ruby --version
|
40
|
+
$ buildr --version
|
41
|
+
$ java --version
|
42
|
+
{% endhighlight %}
|
43
|
+
|
44
|
+
|
45
|
+
h2(#wiki). Community Wiki
|
46
|
+
|
47
|
+
"Our community Wiki":http://cwiki.apache.org/confluence/display/BUILDR/Index.
|
48
|
+
|
49
|
+
|
50
|
+
h2(#code). Contributing Code
|
51
|
+
|
52
|
+
Yes, please.
|
53
|
+
|
54
|
+
If you have a patch to submit, do it through "JIRA":http://issues.apache.org/jira/browse/Buildr. We want to make sure Apache gets the right to use your contribution, and the JIRA upload form includes a simple contribution agreement. Lawyer not included.
|
55
|
+
|
56
|
+
h3. The Perfect Patch
|
57
|
+
|
58
|
+
If you want to get your patch accepted quickly:
|
59
|
+
|
60
|
+
# Provide a good summary of the bug/fix. We use that to decide which issue we can do quickly, and also copy and paste it into the changelog.
|
61
|
+
# Provide short explanation of what failed, under what conditions, why, and what else could be affected by the change (when relevant). The helps us understand the problem and move on to the next step.
|
62
|
+
# Provide a patch with relevant specs, or a fix to incomplete/broken specs. First thing we have to do is replicate the problem, before applying the change, and then make sure the change fixes that problem. And we need to have those specs in there, they make sure we don't accidentally break it again in the future.
|
63
|
+
# Provide a patch with the fix/change itself. Keep it separate from the specs, so it's easy to apply them individually.
|
64
|
+
|
65
|
+
If you don't know how to fix it, but can at least write a spec for the correct behavior (which, obviously would fail), do just that. A spec is preferred to a fix.
|
66
|
+
|
67
|
+
h3. Working on a new feature?
|
68
|
+
|
69
|
+
If you want to work on a cool new feature, but not quite ready to submit a patch, there's still a way you can get the Buildr community involved. We're experimenting with using Git for that. You can use Git to maintain a fork of Buildr that can keep up with changes in the main branch (tip: use @git rebase@), while developing your own changes/features on it.
|
70
|
+
|
71
|
+
That way you can get other people involved, checking out the code, and eventually merge it back with the main branch. Check out the "Git section":#git below and the post "Git forking for fun and profit":http://blog.labnotes.org/2008/04/30/git-forking-for-fun-and-profit/.
|
72
|
+
|
73
|
+
|
74
|
+
h2(#edge). Living on the edge
|
75
|
+
|
76
|
+
Did we mention Buildr is an open source project? In fact, when you install Buildr you get all the source code, documentation, test case and everything you need to use it, extend it and patch it. Have a look in your Gem directory.
|
77
|
+
|
78
|
+
h3(#svn). SVN
|
79
|
+
|
80
|
+
But if you want to work with the latest and greatest, you'll want to check out "Buildr from SVN":http://svn.apache.org/repos/asf/buildr:
|
81
|
+
|
82
|
+
{% highlight sh %}
|
83
|
+
$ svn co http://svn.apache.org/repos/asf/buildr/trunk buildr
|
84
|
+
{% endhighlight %}
|
85
|
+
|
86
|
+
You can also browse the "Buildr repository":http://svn.apache.org/repos/asf/buildr.
|
87
|
+
|
88
|
+
h3(#git). Git
|
89
|
+
|
90
|
+
Not a fan of SVN? We understand. You can also use the "official Apache Git clone.":http://git.apache.org This clone is maintained by the ASF and kept in sync with the SVN repository (though, in practice there may be some delay in cloning recent commits). Apache's Git hosting supports both git:// and http:// protocols (you should use git:// if at all possible as it is faster than http://):
|
91
|
+
|
92
|
+
{% highlight sh %}
|
93
|
+
$ git clone git://git.apache.org/buildr.git
|
94
|
+
# or...
|
95
|
+
$ git clone http://git.apache.org/buildr.git
|
96
|
+
{% endhighlight %}
|
97
|
+
|
98
|
+
If you want to learn more about Git, you can start by watching Scott Chacon’s "Git presentation":http://en.oreilly.com/rails2008/public/asset/attachment/2816 (PDF), or any of the "Git screencasts":http://www.gitcasts.com/. For more, there's also the "Git Internals book":http://peepcode.com/products/git-internals-pdf.
|
99
|
+
|
100
|
+
And keep this "Git cheat sheet":http://ktown.kde.org/~zrusin/git/git-cheat-sheet-medium.png close at hand. Very useful.
|
101
|
+
|
102
|
+
h4. GitHub
|
103
|
+
|
104
|
+
You are also welcome to fork or clone the "Buildr repository on GitHub":http://github.com/apache/buildr. This repository is just an exact mirror of the official Apache Git clone referenced above (updated every 30 minutes). Some of the core committers also maintain their own forks of Buildr on GitHub, often containing experimental and in-progress development slated for eventual inclusion into the SVN. For reference, they are listed below:
|
105
|
+
|
106
|
+
* "Assaf Arkin":http://github.com/assaf/buildr
|
107
|
+
* "Victor Hugo Borja":http://github.com/vic/buildr
|
108
|
+
* "Daniel Spiewak":http://github.com/djspiewak/buildr
|
109
|
+
|
110
|
+
h3. Working with Source Code
|
111
|
+
|
112
|
+
To install Buildr from the source directory:
|
113
|
+
|
114
|
+
{% highlight sh %}
|
115
|
+
$ cd buildr
|
116
|
+
$ rake setup install
|
117
|
+
{% endhighlight %}
|
118
|
+
|
119
|
+
When using Buildr for JRuby:
|
120
|
+
|
121
|
+
{% highlight sh %}
|
122
|
+
$ cd buildr
|
123
|
+
$ jruby -S rake setup install
|
124
|
+
{% endhighlight %}
|
125
|
+
|
126
|
+
The _setup_ task takes care of installing all the necessary dependencies used for building, testing and running Buildr. Once in a while we upgrade or add new dependencies, if you're experiencing a missing dependency, simply run @rake setup@ again.
|
127
|
+
|
128
|
+
The _install_ task creates a Gem in your working directory (_pkg/_) and install it in your local repository. Since Ruby Gems uses version numbers to detect new releases, if you installed Buildr this way and want to upgrade to the latest official release, you need to use @gem install buildr@ rather than @gem upgrade@.
|
129
|
+
|
130
|
+
Both _setup_ and _install_ tasks use the @sudo@ command on platforms that require it (i.e. not Windows), so there's no need to run @sudo rake@ when working with the Buildr source code.
|
131
|
+
|
132
|
+
|
133
|
+
h3. Using development build
|
134
|
+
|
135
|
+
Occasionally we'll make development builds from the current code in trunk/head. We appreciate if you can take the time to test those out and report any bugs. To install development builds, use the Gem repository at @people.apache.org/~assaf/buildr/snapshot@:
|
136
|
+
|
137
|
+
{% highlight sh %}
|
138
|
+
gem source --add http://people.apache.org/~assaf/buildr/snapshot/
|
139
|
+
{% endhighlight %}
|
140
|
+
|
141
|
+
Since Ruby Gems uses version numbers to detect new releases, if you installed Buildr from a snapshot and want to upgrade to a newer snapshot or the latest official release, you need to use @gem install buildr@ rather than @gem upgrade@.
|
142
|
+
|
143
|
+
If you want to go back to using the RubyForge releases:
|
144
|
+
|
145
|
+
{% highlight sh %}
|
146
|
+
gem source --remove http://people.apache.org/~assaf/buildr/snapshot/
|
147
|
+
gem install buildr
|
148
|
+
{% endhighlight %}
|
149
|
+
|
150
|
+
|
151
|
+
h2(#testing). Tested and Documented
|
152
|
+
|
153
|
+
Two things we definitely encourage!
|
154
|
+
|
155
|
+
h3. Testing/Specs
|
156
|
+
|
157
|
+
Obviously we won't turn down patches, but we'll love you even more if you include a test case. One that will fail without the patch, and run successfully with it. If not for our love, then think of the benefit to you: once we add that test case, we won't accidentally break that feature in the next release.
|
158
|
+
|
159
|
+
We test using "RSpec":http://rspec.info/, a Behavior-Driven Development test framework. The main difference between RSpec and xUnit is that RSpec helps you formulate test cases in terms of specifications: you describe how the code should behave, and run RSpec to make sure it matches that specification.
|
160
|
+
|
161
|
+
You can run an individual specifications using the @spec@ command, for example:
|
162
|
+
|
163
|
+
{% highlight sh %}
|
164
|
+
$ spec spec/compiler_spec.rb
|
165
|
+
$ spec spec/compiler_spec.rb -l 409
|
166
|
+
{% endhighlight %}
|
167
|
+
|
168
|
+
The first command will run all the specifications in @compiler_spec@, the second command will run only the specification identified by line 409 of that file. You can use line numbers to point at a particular specification (lines starting with @it@), or set of specifications (lines starting with @describe@). You can also use the @-e@ command line option to name a particular specification.
|
169
|
+
|
170
|
+
To make sure your change did not break anything else, you can run all the specifications (be patient, we have a lot of these):
|
171
|
+
|
172
|
+
{% highlight sh %}
|
173
|
+
$ rake spec
|
174
|
+
{% endhighlight %}
|
175
|
+
|
176
|
+
If you get any failures, you can use @rake failed@ to run only the failed specs, and repeat until there are no more failed specs to run. The list of failed specs is stored in the file _failed_.
|
177
|
+
|
178
|
+
We always @rake spec@ before making a release.
|
179
|
+
|
180
|
+
For full test coverage:
|
181
|
+
|
182
|
+
{% highlight sh %}
|
183
|
+
$ rake coverage
|
184
|
+
{% endhighlight %}
|
185
|
+
|
186
|
+
Specification and coverage reports are HTML files you can view with a Web browser, look for them in the _reports_ directory. You can also check out the "RSpec report":specs.html and "test coverage":coverage/index.html we publish with each release.
|
187
|
+
|
188
|
+
|
189
|
+
h2(#docs). Documentation
|
190
|
+
|
191
|
+
Yes, we do make typos, spelling errors and sometimes we write things that don't make sense, so if you find a documentation bug, or want to help make the documentation even better, here's the way to do it.
|
192
|
+
|
193
|
+
For simple typos and quick fixes, just send a message to the mailing list or log an issue in JIRA.
|
194
|
+
|
195
|
+
If you end up rewriting a significant piece of text, or add new documentation (you rock!), send a patch. Making documentation patches is fairly easy. All the documentation is generated from text files in the @doc/pages@ directory, so all you need to do is check it out from Git/SVN, edit, and @svn diff@ to create a patch.
|
196
|
+
|
197
|
+
We use "Textile":http://www.textism.com/tools/textile/ as the markup language, it takes all of a few minutes to learn, it's intuitive to use, and produces clean HTML. You can learn it all in a few minutes from the "Textile Reference Manual":http://redcloth.org/textile. Also check out the "Textile Quick Reference":http://hobix.com/textile/quick.html.
|
198
|
+
|
199
|
+
Syntax highlighting handled by "Pygments":http://pygments.org. Use the special @highlight@ tag to separate code sample from the rest of the text and to tell Pygments which language to use. For example:
|
200
|
+
|
201
|
+
<notextile><pre>
|
202
|
+
{% highlight ruby %}
|
203
|
+
define 'project' do
|
204
|
+
# Just a sample
|
205
|
+
end
|
206
|
+
{% endhighlight %}
|
207
|
+
</pre></notextile>
|
208
|
+
|
209
|
+
Have a look at existing documentation to see writing conventions, specifically:
|
210
|
+
|
211
|
+
* Separate paragraphs with two newlines.
|
212
|
+
* Use one newline only if you need a <br> tag, otherwise, no newlines inside the paragraph.
|
213
|
+
* When creating a new page, don't forget the YAML premable at the top (Jekyll needs the page title and layout).
|
214
|
+
* The layout uses H1 to render the page title; only use H2 through H4 for the page content.
|
215
|
+
* Use H2 headers for the major page sections. Give each H2 header a unique ID so the table of contents can link to it.
|
216
|
+
* Separating sentences with two spaces, just a convenience when editing in a text editor using monospaced fonts.
|
217
|
+
* If in doubt, ask.
|
218
|
+
|
219
|
+
To go from Textile to HTML we use "Jekyll":http://github.com/mojombo/jekyll. You can use the @jekyll@ rake task to transform the files under @doc@ and create a copy of the Web site in the directory @_site@. For example:
|
220
|
+
|
221
|
+
{% highlight sh %}
|
222
|
+
$ rake jekyll
|
223
|
+
$ open _site/index.html
|
224
|
+
{% endhighlight %}
|
225
|
+
|
226
|
+
There is no live editing, but you can run @rake jekyll auto=true@, and when you update and save a Textile page it will regenerate the corresponding HTML page.
|
227
|
+
|
228
|
+
To go from HTML to PDF we use "PrinceXML":http://www.princexml.com/. The target file @buildr.pdf@ is generated by first running Jekyll and then merging the generated HTML pages into a single PDF document. For example:
|
229
|
+
|
230
|
+
{% highlight sh %}
|
231
|
+
$ rake buildr.pdf
|
232
|
+
$ open buildr.pdf
|
233
|
+
{% endhighlight %}
|
234
|
+
|
235
|
+
|
236
|
+
h2(#contributors). Contributors
|
237
|
+
|
238
|
+
Here is the list of people who are actively working and committing on Buildr:
|
239
|
+
|
240
|
+
*"Assaf Arkin":http://labnotes.org* (assaf at apache.org)
|
241
|
+
|
242
|
+
Started working on Buildr because Maven was too much pain and Rake wasn't enough. Assaf has been hanging around Apache since 1999, as founding contributor to XML Apache, Ode and Buildr. Assaf is also co-author of "Ruby In Practice":http://manning.com/mcanally/.
|
243
|
+
|
244
|
+
*Alex Boisvert*
|
245
|
+
|
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.
|
247
|
+
|
248
|
+
*"Matthieu Riou":http://offthelip.org*
|
249
|
+
|
250
|
+
*Victor Hugo Borja* (vborja at apache.org)
|
251
|
+
|
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.
|
253
|
+
|
254
|
+
*Lacton* (lacton at apache.org)
|
255
|
+
|
256
|
+
A test-infected developer since 2001, Lacton yearns for a development infrastructure that would shorten feedback loops so much that testing, building, refactoring and committing would feel as easy and natural as breathing air.
|
257
|
+
|
258
|
+
*"Daniel Spiewak":http://www.codecommit.com/blog* (djspiewak at apache.org)
|
259
|
+
|
260
|
+
Daniel originally came to Buildr in search of a Scala build tool which was better than Ant. He got more than he bargained for. Now, he works to advance Buildr as the absolute best tool for supporting Scala development.
|
261
|
+
|
262
|
+
*"Antoine Toulme":http://www.lunar-ocean.com/* (toulmean at apache.org)
|
263
|
+
|
264
|
+
Antoine used Buildr first as an excuse to evade in Ruby land, creating plugins for Debian packaging, GWT compilation, or the NSIS installer. His main area of interest is the resolving of dependencies in the OSGi world. He works on making Buildr a standalone rock solid tool.
|
265
|
+
|
266
|
+
* Peter Donald
|
267
|
+
|
268
|
+
Peter already used rake to automate jobs in his ruby and java projects. When it came time to upgrade that home grown ant/java/rake build system Buildr seemed the perfect match.
|
data/doc/css/default.css
ADDED
@@ -0,0 +1,236 @@
|
|
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
|
14
|
+
* under the License.
|
15
|
+
*/
|
16
|
+
|
17
|
+
|
18
|
+
body {
|
19
|
+
background-color: #fff;
|
20
|
+
color: #000;
|
21
|
+
font-family: "Helvetica Neue", "DejaVu Sans", "Verdana", sans-serif;
|
22
|
+
text-align: center;
|
23
|
+
line-height: 150%;
|
24
|
+
}
|
25
|
+
|
26
|
+
a:link, a:visited{
|
27
|
+
color: #0044b3;
|
28
|
+
text-decoration: none;
|
29
|
+
}
|
30
|
+
|
31
|
+
a:hover{
|
32
|
+
text-decoration: underline;
|
33
|
+
}
|
34
|
+
|
35
|
+
img {
|
36
|
+
border: none;
|
37
|
+
}
|
38
|
+
|
39
|
+
pre, code {
|
40
|
+
font-family: "Monaco", "DejaVu Sans Mono", "Courier New", "Courier";
|
41
|
+
font-size: 11pt;
|
42
|
+
}
|
43
|
+
pre {
|
44
|
+
margin: 0.3em 0 0.3em 0.9em;
|
45
|
+
padding: 0;
|
46
|
+
line-height: 1.8em;
|
47
|
+
white-space: pre-wrap; /* css-3 */
|
48
|
+
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
|
49
|
+
}
|
50
|
+
pre br { display: none; }
|
51
|
+
|
52
|
+
h1, h2, h3 {
|
53
|
+
font-family: "Gill Sans";
|
54
|
+
padding: 0;
|
55
|
+
margin: 1.6em 0 0.6em 0;
|
56
|
+
line-height: 1.25em;
|
57
|
+
letter-spacing: 0.03em;
|
58
|
+
}
|
59
|
+
|
60
|
+
h1 {
|
61
|
+
font-size: 2em;
|
62
|
+
margin-top: 0;
|
63
|
+
padding-bottom: 0.3em;
|
64
|
+
border-bottom: 1px solid #808080;
|
65
|
+
}
|
66
|
+
|
67
|
+
h2 {
|
68
|
+
font-size: 1.3em;
|
69
|
+
padding-bottom: 0.3em;
|
70
|
+
border-bottom: 1px solid #a0a0a0;
|
71
|
+
}
|
72
|
+
|
73
|
+
h3 {
|
74
|
+
font-size: 1.1em;
|
75
|
+
}
|
76
|
+
|
77
|
+
blockquote {
|
78
|
+
padding-left: 2em;
|
79
|
+
padding-right: 2em;
|
80
|
+
margin-left: 0.3em;
|
81
|
+
margin-right: 0;
|
82
|
+
font-style: italic;
|
83
|
+
}
|
84
|
+
|
85
|
+
ul {
|
86
|
+
list-style-type: disc;
|
87
|
+
}
|
88
|
+
|
89
|
+
ul ul {
|
90
|
+
list-style-type: disc;
|
91
|
+
padding-left: 1em;
|
92
|
+
}
|
93
|
+
|
94
|
+
table {
|
95
|
+
border-spacing: 0;
|
96
|
+
width: 100%;
|
97
|
+
margin: 0.3em 0 0.3em 0;
|
98
|
+
}
|
99
|
+
|
100
|
+
th, td {
|
101
|
+
padding: 0.3em 0.5em 0.3em 0.5em;
|
102
|
+
border-bottom: 1px solid #D8D8D8;
|
103
|
+
vertical-align: top;
|
104
|
+
background-color: #FFFFFF;
|
105
|
+
}
|
106
|
+
|
107
|
+
th, thead td {
|
108
|
+
border-bottom: none;
|
109
|
+
background-color: #669966;
|
110
|
+
color: #ffffff;
|
111
|
+
text-align: left;
|
112
|
+
}
|
113
|
+
|
114
|
+
|
115
|
+
#wrap{
|
116
|
+
margin: 1em auto 2em auto;
|
117
|
+
text-align: left;
|
118
|
+
width: 65em;
|
119
|
+
}
|
120
|
+
|
121
|
+
|
122
|
+
#header {
|
123
|
+
margin: 0 0 3em 18em;
|
124
|
+
position: relative;
|
125
|
+
}
|
126
|
+
|
127
|
+
#header .tagline {
|
128
|
+
float: right;
|
129
|
+
font-size: 1.2em;
|
130
|
+
font-weight: bold;
|
131
|
+
position: absolute;
|
132
|
+
top: 0.6em;
|
133
|
+
right: 0;
|
134
|
+
}
|
135
|
+
|
136
|
+
|
137
|
+
#pages { /* Parent Wrapper for inside boxes */
|
138
|
+
/* display: inline; */ /* IE Hack */
|
139
|
+
width: 12em;
|
140
|
+
float: left;
|
141
|
+
margin-right: 2em;
|
142
|
+
font-family: "Gill Sans",sans-serif;
|
143
|
+
font-size: 11pt;
|
144
|
+
text-align: right;
|
145
|
+
border-right: 1px solid #ccc;
|
146
|
+
padding-right: 2em;
|
147
|
+
}
|
148
|
+
#pages ol {
|
149
|
+
list-style: none;
|
150
|
+
padding: 0;
|
151
|
+
margin: 0;
|
152
|
+
}
|
153
|
+
#pages ol li {
|
154
|
+
padding: 0.3em 0 0.6em 0em;
|
155
|
+
color: #669966;
|
156
|
+
font-weight: bold;
|
157
|
+
}
|
158
|
+
#pages ol li ol {
|
159
|
+
margin-top: 0.3em;
|
160
|
+
padding: 0.3em 0 0.9em 0.9em;
|
161
|
+
}
|
162
|
+
#pages ol li ol li {
|
163
|
+
padding: 0.3em 0 0.3em 0em;
|
164
|
+
}
|
165
|
+
#pages ol li a {
|
166
|
+
font-weight: normal;
|
167
|
+
}
|
168
|
+
#pages form {
|
169
|
+
margin-top: 2em;
|
170
|
+
padding: 0.3em 0 0.5em 0.5em;
|
171
|
+
}
|
172
|
+
#pages ol li p {
|
173
|
+
font-weight: normal;
|
174
|
+
color: #000;
|
175
|
+
vertical-align: middle;
|
176
|
+
}
|
177
|
+
|
178
|
+
|
179
|
+
#content { /* Parent Wrapper for inside boxes */
|
180
|
+
/* display: inline; *//* IE Hack */
|
181
|
+
float: left;
|
182
|
+
width: 44em;
|
183
|
+
margin-left: 0.3em;
|
184
|
+
margin-bottom: 5em;
|
185
|
+
word-wrap: break-word; /* prevents container divs from wrapping */
|
186
|
+
}
|
187
|
+
|
188
|
+
ol.toc {
|
189
|
+
list-style: none;
|
190
|
+
padding: 0;
|
191
|
+
margin: 0 0 2em 0;
|
192
|
+
}
|
193
|
+
ol.toc li {
|
194
|
+
padding: 0.3em 0 0.3em 0;
|
195
|
+
margin: 0;
|
196
|
+
}
|
197
|
+
ol.toc li ol.toc {
|
198
|
+
margin: 0;
|
199
|
+
padding-left: 0.9em;
|
200
|
+
}
|
201
|
+
|
202
|
+
|
203
|
+
#content p.tip, #content p.note {
|
204
|
+
margin: 0.9em 0 0 0;
|
205
|
+
padding: 0 0 2em 4em;
|
206
|
+
}
|
207
|
+
#content p.tip { background: url("../images/tip.png") 0 0 no-repeat; }
|
208
|
+
#content p.note { background: url("../images/note.png") 0 0 no-repeat; }
|
209
|
+
|
210
|
+
#content .footnote {
|
211
|
+
margin-top: 2.5em;
|
212
|
+
}
|
213
|
+
#content .footnote {
|
214
|
+
padding-top: 1.5em;
|
215
|
+
border-top: 1px solid #ccc;
|
216
|
+
}
|
217
|
+
#content .footnote + .footnote {
|
218
|
+
margin-top: 0.5em;
|
219
|
+
padding-top: 0;
|
220
|
+
border: none;
|
221
|
+
}
|
222
|
+
#content .footnote sup { font-weight: bold; }
|
223
|
+
|
224
|
+
#content .footnote-links dt { font-weight: bold; }
|
225
|
+
#content .footnote-links dt:after { content: ": " }
|
226
|
+
#content .footnote-links dd { }
|
227
|
+
|
228
|
+
|
229
|
+
#footer {
|
230
|
+
color: #888;
|
231
|
+
border-top: 1px solid #ccc;
|
232
|
+
font-size: 0.9em;
|
233
|
+
padding: 0.3em;
|
234
|
+
margin: 2em 0 3em 0em;
|
235
|
+
clear: both;
|
236
|
+
}
|