Mercurial > bitten > bitten-test
annotate doc/commands.txt @ 917:8f82930c5e55 tip
update tags
author | convert-repo |
---|---|
date | Tue, 31 May 2011 20:07:00 +0000 |
parents | 630b48a53fc6 |
children |
rev | line source |
---|---|
412 | 1 .. -*- mode: rst; encoding: utf-8 -*- |
2 | |
3 ===================== | |
4 Build Recipe Commands | |
5 ===================== | |
6 | |
415 | 7 `Build recipes`_ are represented by XML documents. This page describes what |
599
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
8 commands are generally available in recipes, and any `runtime configuration`_ |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
9 supported by these commands. Please note, though, that |
412 | 10 third-party packages can add additional commands, which would then be |
11 documented by that third party. | |
12 | |
415 | 13 .. _`build recipes`: recipes.html |
599
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
14 .. _`runtime configuration`: configure.html |
415 | 15 |
412 | 16 .. contents:: Contents |
17 :depth: 2 | |
18 .. sectnum:: | |
19 | |
20 | |
21 Generic Commands | |
22 ================ | |
23 | |
24 These are commands that are used without a namespace prefix. | |
25 | |
26 | |
27 ------------ | |
28 ``<report>`` | |
29 ------------ | |
30 | |
31 Parse an XML file and send it to the master as a report with a given category. | |
32 Use this command in conjunction with the ``<sh:pipe>`` or ``<x:transform>`` | |
33 commands to send custom reports to the build master. | |
34 | |
35 Parameters | |
36 ---------- | |
37 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
38 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
39 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
40 +==============+=============================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
41 | ``category`` | Category of the report (for example "test" or "coverage"). | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
42 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
43 | ``file`` | Path to the XML file containing the report data, relative | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
44 | | to the project directory. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
45 +--------------+-------------------------------------------------------------+ |
412 | 46 |
47 Both parameters must be specified. | |
48 | |
818
fc90ef7b2b86
Moving the wiki:ReportFormats page into the repository.
osimons
parents:
810
diff
changeset
|
49 See also `Report Formats <reports.html>`_. |
412 | 50 |
629
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
51 ------------ |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
52 ``<attach>`` |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
53 ------------ |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
54 |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
55 Attach a file to the build or configuration as regular attachment. An already |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
56 existing attachment on the same resource with same base filename will be |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
57 replaced. |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
58 |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
59 **Note:** Unless consistently building latest only, overwriting files on |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
60 config level may lead to unexpected results. |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
61 |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
62 Parameters |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
63 ---------- |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
64 |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
65 +-----------------+----------------------------------------------------------+ |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
66 | Name | Description | |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
67 +=================+==========================================================+ |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
68 | ``file`` | Path to the file to attach, relative to the project | |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
69 | | directory. | |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
70 +-----------------+----------------------------------------------------------+ |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
71 | ``resource`` | The resource to attach the file to. Either | |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
72 | | 'build' (default) or 'config'. Optional. | |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
73 +-----------------+----------------------------------------------------------+ |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
74 | ``description`` | Attachment description. Optional. | |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
75 +-----------------+----------------------------------------------------------+ |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
76 |
f3bb52da9e3c
0.6dev: Adding support for attachments to configurations and build - full web implementation that mirrors what is available in Ticket and Wiki. Also added a new generic `<attach/>` command that enables attaching files to be part of a recipe and uploaded by slaves as part of build.
osimons
parents:
599
diff
changeset
|
77 |
412 | 78 Shell Tools |
79 =========== | |
80 | |
81 A bundle of generic tools that are not specific to any programming language or | |
82 tool-chain. | |
83 | |
683
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
84 :Namespace: ``http://bitten.edgewall.org/tools/sh`` |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
85 :Common prefix: ``sh`` |
412 | 86 |
87 | |
88 ------------- | |
89 ``<sh:exec>`` | |
90 ------------- | |
91 | |
92 Executes a program or script. | |
93 | |
94 Parameters | |
95 ---------- | |
96 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
97 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
98 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
99 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
100 | ``executable`` | The name of the executable program. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
101 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
102 | ``file`` | Path to the script to execute, relative to the project | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
103 | | directory | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
104 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
105 | ``output`` | Path to the output file | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
106 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
107 | ``args`` | Any arguments to pass to the executable or script | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
108 +----------------+-----------------------------------------------------------+ |
828
630b48a53fc6
Add missing docs for 'dir' argument to core shell commands. Closes #618.
osimons
parents:
818
diff
changeset
|
109 | ``dir`` | Directory to change to before executing the command | |
630b48a53fc6
Add missing docs for 'dir' argument to core shell commands. Closes #618.
osimons
parents:
818
diff
changeset
|
110 +----------------+-----------------------------------------------------------+ |
630b48a53fc6
Add missing docs for 'dir' argument to core shell commands. Closes #618.
osimons
parents:
818
diff
changeset
|
111 | ``timeout`` | Limits the runtime of this command to the specified | |
752
673ec182679d
Allow ''timeout'' parameter to be set on sh:exec, python:exec and
wbell
parents:
733
diff
changeset
|
112 | | number of seconds, after which it will be terminated. | |
673ec182679d
Allow ''timeout'' parameter to be set on sh:exec, python:exec and
wbell
parents:
733
diff
changeset
|
113 +----------------+-----------------------------------------------------------+ |
673ec182679d
Allow ''timeout'' parameter to be set on sh:exec, python:exec and
wbell
parents:
733
diff
changeset
|
114 |
412 | 115 Either ``executable`` or ``file`` must be specified. |
116 | |
117 Examples | |
118 -------- | |
119 | |
120 TODO | |
121 | |
122 | |
123 ------------- | |
124 ``<sh:pipe>`` | |
125 ------------- | |
126 | |
127 Pipes the content of a file through a program or script. | |
128 | |
129 Parameters | |
130 ---------- | |
131 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
132 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
133 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
134 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
135 | ``executable`` | The name of the executable program. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
136 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
137 | ``file`` | Path to the script to execute, relative to the project | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
138 | | directory | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
139 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
140 | ``input`` | Path to the input file | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
141 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
142 | ``output`` | Path to the output file | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
143 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
144 | ``args`` | Any arguments to pass to the executable or script | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
145 +----------------+-----------------------------------------------------------+ |
828
630b48a53fc6
Add missing docs for 'dir' argument to core shell commands. Closes #618.
osimons
parents:
818
diff
changeset
|
146 | ``dir`` | Directory to change to before executing the command | |
630b48a53fc6
Add missing docs for 'dir' argument to core shell commands. Closes #618.
osimons
parents:
818
diff
changeset
|
147 +----------------+-----------------------------------------------------------+ |
412 | 148 |
149 Either ``executable`` or ``file`` must be specified. | |
150 | |
151 Examples | |
152 -------- | |
153 | |
154 TODO | |
155 | |
156 | |
157 C/Unix Tools | |
158 ============ | |
159 | |
160 These commands provide support for tools commonly used for development of C/C++ | |
161 applications on Unix platforms, such as ``make``. | |
162 | |
683
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
163 :Namespace: ``http://bitten.edgewall.org/tools/c`` |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
164 :Common prefix: ``c`` |
412 | 165 |
166 | |
487
fbd5bc3c2a48
At long last, applying patch supplied by Xavier Duret for #207. Closes #207. Thanks for the patch.
wbell
parents:
478
diff
changeset
|
167 ------------------ |
478
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
168 ``<c:autoreconf>`` |
487
fbd5bc3c2a48
At long last, applying patch supplied by Xavier Duret for #207. Closes #207. Thanks for the patch.
wbell
parents:
478
diff
changeset
|
169 ------------------ |
478
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
170 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
171 Executes ths autotool autoreconf. |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
172 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
173 Parameters |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
174 ---------- |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
175 |
683
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
176 +----------------------+-----------------------------------------------------+ |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
177 | Name | Description | |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
178 +======================+=====================================================+ |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
179 | ``force`` | Consider all files obsolete | |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
180 +----------------------+-----------------------------------------------------+ |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
181 | ``install`` | Copy missing auxiliary files | |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
182 +----------------------+-----------------------------------------------------+ |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
183 | ``symlink`` | Install symbolic links instead of copies | |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
184 +----------------------+-----------------------------------------------------+ |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
185 | ``warnings`` | Report the warnings related to category | |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
186 | | (which can actually be a comma separated list) | |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
187 +----------------------+-----------------------------------------------------+ |
478
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
188 | ``prepend_include`` | Prepend directories to search path | |
683
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
189 +----------------------+-----------------------------------------------------+ |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
190 | ``include`` | Append directories to search path | |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
191 +----------------------+-----------------------------------------------------+ |
478
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
192 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
193 Examples |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
194 -------- |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
195 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
196 .. code-block:: xml |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
197 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
198 <c:autoreconf force="1" install="1" warnings="cross,syntax,error"/> |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
199 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
200 Runs the ``autoreconf`` tool in the base directory with the option: force, install |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
201 and 3 warning categories active: cross,syntax,error. This is equivalent to:: |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
202 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
203 autoreconf --force --install --warnings=cross,syntax,error |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
204 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
205 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
206 ----------------- |
412 | 207 ``<c:configure>`` |
208 ----------------- | |
209 | |
210 Executes a configure script as generated by Autoconf. | |
211 | |
212 Parameters | |
213 ---------- | |
214 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
215 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
216 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
217 +==============+=============================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
218 | ``file`` | Name of the configure script (defaults to "configure") | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
219 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
220 | ``enable`` | List of features to enable, separated by spaces. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
221 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
222 | ``disable`` | List of features to disable, separated by spaces. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
223 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
224 | ``with`` | List of packages to include, separated by spaces. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
225 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
226 | ``without`` | List of packages to exclude, separated by spaces. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
227 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
228 | ``cflags`` | Value of the `CFLAGS` variable to pass to the script. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
229 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
230 | ``cxxflags`` | Value of the `CXXFLAGS` variable to pass to the script. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
231 +--------------+-------------------------------------------------------------+ |
412 | 232 |
233 Examples | |
234 -------- | |
235 | |
236 .. code-block:: xml | |
237 | |
432 | 238 <c:configure enable="threadsafe" cflags="-O"/> |
412 | 239 |
432 | 240 Runs the ``configure`` script in the base directory, enable the ``threadsafe`` |
241 feature, and passing ``-O`` as ``CFLAGS``. This is equivalent to:: | |
412 | 242 |
243 ./configure --enable-threadsafe CFLAGS="-O" | |
244 | |
599
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
245 Configuration |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
246 ------------- |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
247 |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
248 Parameter ``with`` will expand any package found in slave configuration: |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
249 |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
250 .. code-block:: ini |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
251 |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
252 [mylib] |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
253 path = /path/to/mylib |
412 | 254 |
255 ------------ | |
415 | 256 ``<c:gcov>`` |
257 ------------ | |
258 | |
259 Run gcov_ to extract coverage data where available. | |
260 | |
261 .. _gcov: http://gcc.gnu.org/onlinedocs/gcc/Gcov-Intro.html | |
262 | |
263 Parameters | |
264 ---------- | |
265 | |
266 +--------------+------------------------------------------------------------+ | |
267 | Name | Description | | |
268 +==============+============================================================+ | |
269 | ``include`` | List of glob patterns (separated by space) that specify | | |
270 | | which source files should be included in the coverage | | |
271 | | report | | |
272 +--------------+------------------------------------------------------------+ | |
273 | ``exclude`` | List of glob patterns (separated by space) that specify | | |
274 | | which source files should be excluded from the coverage | | |
275 | | report | | |
276 +--------------+------------------------------------------------------------+ | |
277 | ``prefix`` | Optional prefix name that is added to object files by the | | |
278 | | build system | | |
279 +--------------+------------------------------------------------------------+ | |
280 | |
281 | |
282 ------------ | |
412 | 283 ``<c:make>`` |
284 ------------ | |
285 | |
286 Executes a Makefile. | |
287 | |
288 Parameters | |
289 ---------- | |
290 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
291 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
292 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
293 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
294 | ``target`` | Name of the target to execute (defaults to "all") | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
295 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
296 | ``file`` | Path to the Makefile that should be used. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
297 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
298 | ``keep-going`` | Whether `make` should try to continue even after | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
299 | | encountering errors. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
300 +----------------+-----------------------------------------------------------+ |
487
fbd5bc3c2a48
At long last, applying patch supplied by Xavier Duret for #207. Closes #207. Thanks for the patch.
wbell
parents:
478
diff
changeset
|
301 | ``jobs`` | Number of parallel jobs used by make. | |
fbd5bc3c2a48
At long last, applying patch supplied by Xavier Duret for #207. Closes #207. Thanks for the patch.
wbell
parents:
478
diff
changeset
|
302 +----------------+-----------------------------------------------------------+ |
fbd5bc3c2a48
At long last, applying patch supplied by Xavier Duret for #207. Closes #207. Thanks for the patch.
wbell
parents:
478
diff
changeset
|
303 | ``directory`` | Path of the directory in which make should be called. | |
fbd5bc3c2a48
At long last, applying patch supplied by Xavier Duret for #207. Closes #207. Thanks for the patch.
wbell
parents:
478
diff
changeset
|
304 +----------------+-----------------------------------------------------------+ |
fbd5bc3c2a48
At long last, applying patch supplied by Xavier Duret for #207. Closes #207. Thanks for the patch.
wbell
parents:
478
diff
changeset
|
305 | ``args`` | Any space separated arguments to pass to the makefile. | |
fbd5bc3c2a48
At long last, applying patch supplied by Xavier Duret for #207. Closes #207. Thanks for the patch.
wbell
parents:
478
diff
changeset
|
306 | | Usually in the form: | |
fbd5bc3c2a48
At long last, applying patch supplied by Xavier Duret for #207. Closes #207. Thanks for the patch.
wbell
parents:
478
diff
changeset
|
307 | | ``"parameter1=value1 parameter2=value2"``. | |
fbd5bc3c2a48
At long last, applying patch supplied by Xavier Duret for #207. Closes #207. Thanks for the patch.
wbell
parents:
478
diff
changeset
|
308 +----------------+-----------------------------------------------------------+ |
fbd5bc3c2a48
At long last, applying patch supplied by Xavier Duret for #207. Closes #207. Thanks for the patch.
wbell
parents:
478
diff
changeset
|
309 |
412 | 310 Examples |
311 -------- | |
312 | |
313 .. code-block:: xml | |
314 | |
315 <c:make target="compile" file="build/Makefile" /> | |
316 | |
317 Runs the target "compile" of the ``Makefile`` located in the sub-directory | |
318 ``build``. | |
319 | |
487
fbd5bc3c2a48
At long last, applying patch supplied by Xavier Duret for #207. Closes #207. Thanks for the patch.
wbell
parents:
478
diff
changeset
|
320 .. code-block:: xml |
fbd5bc3c2a48
At long last, applying patch supplied by Xavier Duret for #207. Closes #207. Thanks for the patch.
wbell
parents:
478
diff
changeset
|
321 |
fbd5bc3c2a48
At long last, applying patch supplied by Xavier Duret for #207. Closes #207. Thanks for the patch.
wbell
parents:
478
diff
changeset
|
322 <c:make target="compile" file="build/Makefile" directory="work" args="coverage=1" /> |
fbd5bc3c2a48
At long last, applying patch supplied by Xavier Duret for #207. Closes #207. Thanks for the patch.
wbell
parents:
478
diff
changeset
|
323 |
fbd5bc3c2a48
At long last, applying patch supplied by Xavier Duret for #207. Closes #207. Thanks for the patch.
wbell
parents:
478
diff
changeset
|
324 Same as previous but execute the command in the ``work`` directory and call |
fbd5bc3c2a48
At long last, applying patch supplied by Xavier Duret for #207. Closes #207. Thanks for the patch.
wbell
parents:
478
diff
changeset
|
325 the makefile with the command line argument ``coverage=1``. |
412 | 326 |
599
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
327 Configuration |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
328 ------------- |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
329 |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
330 .. code-block:: ini |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
331 |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
332 [make] |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
333 path = /path/to/(c|n)make |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
334 |
412 | 335 --------------- |
336 ``<c:cppunit>`` | |
337 --------------- | |
338 | |
339 Report the test output generated by the CppUnit_ unit testing framework. The | |
340 output from CppUnit must be in XML format and in already, specified by the | |
341 ``file`` argument of this recipe. | |
342 | |
343 .. _cppunit: http://cppunit.sourceforge.net | |
344 | |
345 Parameters | |
346 ---------- | |
347 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
348 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
349 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
350 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
351 | ``file`` | Path to the cppunit XML output file. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
352 +----------------+-----------------------------------------------------------+ |
412 | 353 |
354 Examples | |
355 -------- | |
356 | |
357 .. code-block:: xml | |
358 | |
359 <sh:exec executable="run_unit_tests" output="test_results.xml" /> | |
360 <c:cppunit file="test_results.xml" /> | |
361 | |
362 Runs the program ``run_unit_tests`` to gather the data output by CppUnit in the | |
363 ``test_results.xml`` file and then reports it. | |
364 | |
365 | |
366 Java Tools | |
367 ========== | |
368 | |
369 A bundle of recipe commands that support tools commonly used by Java projects. | |
370 | |
683
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
371 :Namespace: ``http://bitten.edgewall.org/tools/java`` |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
372 :Common prefix: ``java`` |
412 | 373 |
374 | |
375 -------------- | |
376 ``<java:ant>`` | |
377 -------------- | |
378 | |
379 Runs an Ant_ build. | |
380 | |
381 .. _ant: http://ant.apache.org/ | |
382 | |
383 Parameters | |
384 ---------- | |
385 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
386 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
387 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
388 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
389 | ``file`` | Path of the build file, relative to the project source | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
390 | |Â directory (default is ``build.xml``). | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
391 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
392 | ``target`` | Name of the build target(s) to execute. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
393 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
394 | ``args`` | Additional arguments to pass to Ant, separated by | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
395 | | whitespace. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
396 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
397 | ``keep_going`` | Tell Ant to continue even when errors are in encountered | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
398 | | in the build. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
399 +----------------+-----------------------------------------------------------+ |
412 | 400 |
401 Examples | |
402 -------- | |
403 | |
404 .. code-block:: xml | |
405 | |
406 <java:ant target="compile" /> | |
407 | |
432 | 408 Executes the target ``compile`` of the ``build.xml`` buildfile at the top of the |
412 | 409 project source directory. |
410 | |
599
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
411 Configuration |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
412 ------------- |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
413 |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
414 .. code-block:: ini |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
415 |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
416 [ant] |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
417 home = /path/to/ant/dir |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
418 |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
419 [java] |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
420 home = /path/to/java/dir |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
421 |
412 | 422 |
415 | 423 -------------------- |
424 ``<java:cobertura>`` | |
425 -------------------- | |
426 | |
427 Extract code coverage data from a Cobertura_ XML file. | |
428 | |
429 .. _cobertura: http://cobertura.sourceforge.net/ | |
430 | |
431 Parameters | |
432 ---------- | |
433 | |
434 +----------------+-----------------------------------------------------------+ | |
435 | Name | Description | | |
436 +================+===========================================================+ | |
437 | ``file`` | Path to the XML file generated by Cobertura | | |
438 +----------------+-----------------------------------------------------------+ | |
439 | |
440 Examples | |
441 -------- | |
442 | |
443 .. code-block:: xml | |
444 | |
445 <java:cobertura file="build/cobertura.xml" /> | |
446 | |
447 Reads the specifid XML file, extracts the coverage data, and builds a coverage | |
448 report to be sent to the build master. | |
449 | |
450 | |
412 | 451 ---------------- |
452 ``<java:junit>`` | |
453 ---------------- | |
454 | |
455 Extracts information about unit test results from a file in JUnit_ XML format. | |
456 | |
457 .. _junit: http://junit.org/index.htm | |
458 | |
459 Parameters | |
460 ---------- | |
461 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
462 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
463 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
464 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
465 | ``file`` | Path to the JUnit XML test results file. This can include | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
466 | | wildcards, in which case all the file matching the | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
467 | | pattern will be included. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
468 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
469 | ``srcdir`` | Path of the directory unit test sources. Used to link the | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
470 | | test cases to files. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
471 +----------------+-----------------------------------------------------------+ |
412 | 472 |
473 The ``file`` attribute is required. | |
474 | |
475 Examples | |
476 -------- | |
477 | |
478 .. code-block:: xml | |
479 | |
480 <java:junit file="build/tests/results/TEST-*.xml" srcdir="src/tests" /> | |
481 | |
482 Collects the test results from all files in the `build/tests/results` directory | |
483 that match the pattern `TEST-*.xml`. Also, maps the class names in the results | |
484 files to Java source files in the directory `src/tests`. | |
485 | |
486 | |
550
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
487 Mono Tools |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
488 ========== |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
489 |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
490 A bundle of recipe commands that support tools commonly used by Mono/.NET projects. |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
491 |
683
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
492 :Namespace: ``http://bitten.edgewall.org/tools/mono`` |
550
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
493 :Common prefix: ``mono`` |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
494 |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
495 ---------------- |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
496 ``<mono:nunit>`` |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
497 ---------------- |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
498 |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
499 Extracts information about unit test results from a files in NUnit_ XML format. |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
500 |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
501 .. _nunit: http://nunit.org/ |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
502 |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
503 Parameters |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
504 ---------- |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
505 |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
506 +----------------+-----------------------------------------------------------+ |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
507 | Name | Description | |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
508 +================+===========================================================+ |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
509 | ``file`` | Path to the NUnit XML test results file. This can include | |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
510 | | wildcards, in which case all the file matching the | |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
511 | | pattern will be included. | |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
512 +----------------+-----------------------------------------------------------+ |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
513 |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
514 The ``file`` attribute is required. |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
515 |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
516 Examples |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
517 -------- |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
518 |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
519 .. code-block:: xml |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
520 |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
521 <mono:nunit file="build/tests/TestResult.xml" /> |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
522 |
6a8dcbffdce2
Added support for nunit (applied patch from silk in #348)
dfraser
parents:
505
diff
changeset
|
523 |
416 | 524 PHP Tools |
525 ========= | |
526 | |
527 A bundle of recipe commands for PHP_ projects. | |
528 | |
683
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
529 :Namespace: ``http://bitten.edgewall.org/tools/php`` |
416 | 530 :Common prefix: ``php`` |
531 | |
532 .. _php: http://php.net/ | |
533 | |
422 | 534 --------------- |
535 ``<php:phing>`` | |
536 --------------- | |
416 | 537 |
538 Runs a Phing_ build. | |
539 | |
540 .. _phing: http://phing.info/ | |
541 | |
542 Parameters | |
543 ---------- | |
544 | |
545 +-------------------+-------------------------------------------------------+ | |
546 | Name | Description | | |
547 +===================+=======================================================+ | |
548 | ``file`` | Path of the build file, relative to the project | | |
549 | | source directory (default is ``build.xml``). | | |
550 +-------------------+-------------------------------------------------------+ | |
551 | ``target`` | Name of the build target(s) to execute. | | |
552 +-------------------+-------------------------------------------------------+ | |
553 | ``args`` | Additional arguments to pass to Phing, separated by | | |
554 | | whitespace. | | |
555 +-------------------+-------------------------------------------------------+ | |
556 | ``executable`` | Phing executable program (default is ``phing``). | | |
557 +-------------------+-------------------------------------------------------+ | |
558 | |
559 | |
560 Examples | |
561 -------- | |
562 | |
563 .. code-block:: xml | |
564 | |
565 <php:phing target="compile" /> | |
566 | |
567 Executes the target ``compile`` of the ``build.xml`` buildfile at the top of the | |
568 project source directory. | |
569 | |
570 | |
571 ----------------- | |
572 ``<php:phpunit>`` | |
573 ----------------- | |
574 | |
575 Extracts information from PHPUnit_ test results recorded in an XML file. | |
576 | |
577 .. _phpunit: http://www.phpunit.de/ | |
578 | |
579 Parameters | |
580 ---------- | |
581 | |
582 +----------------+-----------------------------------------------------------+ | |
583 | Name | Description | | |
584 +================+===========================================================+ | |
585 | ``file`` | Path to the XML results file, relative to the project | | |
586 | | source directory. | | |
587 +----------------+-----------------------------------------------------------+ | |
588 | |
589 Examples | |
590 -------- | |
591 | |
592 .. code-block:: xml | |
593 | |
594 <php:phpunit file="build/test-results.xml"/> | |
595 | |
596 Extracts the test results from the XML file located at | |
597 ``build/test-results.xml``. | |
598 | |
599 | |
600 ------------------ | |
601 ``<php:coverage>`` | |
602 ------------------ | |
603 | |
597
4c3d43adaa48
0.6dev: Fixed `php:phpunit` parsing including support for nested tests. Extended `php:coverage` to also parse PHPUnit coverage-clover format. Closes #199 and #316.
osimons
parents:
584
diff
changeset
|
604 Extracts coverage information from Phing_'s code coverage task XML file or |
4c3d43adaa48
0.6dev: Fixed `php:phpunit` parsing including support for nested tests. Extended `php:coverage` to also parse PHPUnit coverage-clover format. Closes #199 and #316.
osimons
parents:
584
diff
changeset
|
605 from PHPUnit_ coverage-clover XML file. |
416 | 606 |
607 Parameters | |
608 ---------- | |
609 | |
610 +---------------+-----------------------------------------------------------+ | |
611 | Name | Description | | |
612 +===============+===========================================================+ | |
613 | ``file`` | Path to the XML coverage file, relative to the project | | |
614 | | source directory. | | |
615 +---------------+-----------------------------------------------------------+ | |
616 | |
617 Examples | |
618 -------- | |
619 | |
620 .. code-block:: xml | |
621 | |
622 <php:coverage file="build/coverage.xml" /> | |
623 | |
624 | |
412 | 625 Python Tools |
626 ============ | |
627 | |
628 A bundle of recipe commands that support tools commonly used by Python_ | |
629 projects. | |
630 | |
683
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
631 :Namespace: ``http://bitten.edgewall.org/tools/python`` |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
632 :Common prefix: ``python`` |
412 | 633 |
634 .. _python: http://www.python.org/ | |
635 | |
636 | |
637 ----------------- | |
638 ``<python:exec>`` | |
639 ----------------- | |
640 | |
641 Executes a Python script. | |
642 | |
643 Parameters | |
644 ---------- | |
645 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
646 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
647 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
648 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
649 | ``file`` | Path of the script to execute, relative to the project | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
650 | | source directory. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
651 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
652 | ``module`` | Name of the Python module to execute. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
653 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
654 | ``function`` | Name of the function in the Python module to run. Only | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
655 | | works when also specifying the `module` attribute. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
656 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
657 | ``args`` | Any arguments that should be passed to the script. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
658 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
659 | ``output`` | Path to a file where any output by the script should be | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
660 | | recorded. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
661 +----------------+-----------------------------------------------------------+ |
752
673ec182679d
Allow ''timeout'' parameter to be set on sh:exec, python:exec and
wbell
parents:
733
diff
changeset
|
662 | ``timeout`` | Limits the runtime of this command to the specified | |
673ec182679d
Allow ''timeout'' parameter to be set on sh:exec, python:exec and
wbell
parents:
733
diff
changeset
|
663 | | number of seconds, after which it will be terminated. | |
673ec182679d
Allow ''timeout'' parameter to be set on sh:exec, python:exec and
wbell
parents:
733
diff
changeset
|
664 +----------------+-----------------------------------------------------------+ |
673ec182679d
Allow ''timeout'' parameter to be set on sh:exec, python:exec and
wbell
parents:
733
diff
changeset
|
665 |
412 | 666 |
667 Either `file` or `module` must be specified. | |
668 | |
669 Examples | |
670 -------- | |
671 | |
672 .. code-block:: xml | |
673 | |
674 <python:exec module="pylint.lint" output="pylint-report.txt" args="myproj" /> | |
675 | |
676 Executes Pylint_ on the module/package ``myproj`` and stores the output into a | |
677 file named ``pylint-report.txt``. | |
678 | |
599
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
679 Configuration |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
680 ------------- |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
681 |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
682 .. code-block:: ini |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
683 |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
684 [python] |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
685 path = /path/to/python |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
686 |
412 | 687 |
688 ---------------------- | |
689 ``<python:distutils>`` | |
690 ---------------------- | |
691 | |
692 Executes a distutils_ script. | |
693 | |
694 .. _distutils: http://docs.python.org/lib/module-distutils.html | |
695 | |
696 Parameters | |
697 ---------- | |
698 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
699 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
700 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
701 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
702 | `command` | The name of the `distutils` command that should be run | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
703 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
704 | `options` | Additional options to pass to the command, separated by | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
705 | | spaces | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
706 +----------------+-----------------------------------------------------------+ |
752
673ec182679d
Allow ''timeout'' parameter to be set on sh:exec, python:exec and
wbell
parents:
733
diff
changeset
|
707 | `timeout` | Limits the runtime of this command to the specified | |
673ec182679d
Allow ''timeout'' parameter to be set on sh:exec, python:exec and
wbell
parents:
733
diff
changeset
|
708 | | number of seconds, after which it will be terminated. | |
673ec182679d
Allow ''timeout'' parameter to be set on sh:exec, python:exec and
wbell
parents:
733
diff
changeset
|
709 +----------------+-----------------------------------------------------------+ |
673ec182679d
Allow ''timeout'' parameter to be set on sh:exec, python:exec and
wbell
parents:
733
diff
changeset
|
710 |
412 | 711 |
712 Examples | |
713 -------- | |
714 | |
715 .. code-block:: xml | |
716 | |
717 <python:distutils command="sdist" /> | |
718 | |
719 Instructs `distutils` to produce a source distribution. | |
720 | |
415 | 721 .. code-block:: xml |
722 | |
723 <python:distutils command="unittest" options=" | |
724 --xml-output build/test-results.xml | |
725 --coverage-summary build/test-coverage.txt | |
733
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
726 --coverage-dir build/coverage |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
727 --coverage-method trace"/> |
415 | 728 |
729 Instructs `distutils` to run the ``unittest`` command (which is provided by | |
730 Bitten), and passes the options needed to determine the output paths for test | |
731 results and code coverage reports. | |
732 | |
733
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
733 Option ``--coverage-method`` is one of ``trace``, ``coverage`` or ``figleaf``. |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
734 |
599
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
735 Configuration |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
736 ------------- |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
737 |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
738 .. code-block:: ini |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
739 |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
740 [python] |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
741 path = /path/to/python |
b76e6accad72
0.6dev: Added Configuration documentation. It contains all configuration information I've found in the wiki and source code.
osimons
parents:
597
diff
changeset
|
742 |
412 | 743 |
744 --------------------- | |
745 ``<python:unittest>`` | |
746 --------------------- | |
747 | |
748 Extracts information from unittest_ results recorded in an XML file. | |
749 | |
750 .. _unittest: http://docs.python.org/lib/module-unittest.html | |
633
900b09af6b38
0.6dev: The `.. note` rst processor don't seem to be found anywhere anymore. Replacing with a bold `**Note:**` before message text.
osimons
parents:
629
diff
changeset
|
751 |
900b09af6b38
0.6dev: The `.. note` rst processor don't seem to be found anywhere anymore. Replacing with a bold `**Note:**` before message text.
osimons
parents:
629
diff
changeset
|
752 **Note:** This report must be used in conjunction with the ``distutils`` |
900b09af6b38
0.6dev: The `.. note` rst processor don't seem to be found anywhere anymore. Replacing with a bold `**Note:**` before message text.
osimons
parents:
629
diff
changeset
|
753 command "unittest" that comes with Bitten. |
412 | 754 |
755 Parameters | |
756 ---------- | |
757 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
758 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
759 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
760 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
761 | ``file`` | Path to the XML results file, relative to the project | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
762 | | source directory. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
763 +----------------+-----------------------------------------------------------+ |
412 | 764 |
765 Examples | |
766 -------- | |
767 | |
768 .. code-block:: xml | |
769 | |
770 <python:unittest file="build/test-results.xml"/> | |
771 | |
772 Extracts the test results from the XML file located at | |
773 ``build/test-results.xml``. | |
774 | |
775 | |
776 ------------------ | |
777 ``<python:trace>`` | |
778 ------------------ | |
779 | |
780 Extracts coverage information recorded by the built-in Python module | |
781 ``trace.py``. | |
782 | |
783 Parameters | |
784 ---------- | |
785 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
786 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
787 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
788 +==============+=============================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
789 | ``summary`` | Path to the summary file written by ``trace.py``, | |
733
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
790 | | relative to the project source directory. | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
791 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
792 | ``coverdir`` | Path to the directory containing the coverage files written | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
793 | | by ``trace.py``, relative to the project source directory. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
794 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
795 | ``include`` | List of glob patterns (separated by space) that specify | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
796 | | which Python file should be included in the coverage report | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
797 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
798 | ``exclude`` | List of glob patterns (separated by space) that specify | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
799 | | which Python file should be excluded from the coverage | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
800 | | report | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
801 +--------------+-------------------------------------------------------------+ |
412 | 802 |
803 Examples | |
804 -------- | |
805 | |
806 .. code-block:: xml | |
807 | |
808 <python:trace summary="build/trace.out" coverdir="build/coverage" /> | |
809 | |
662
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
810 |
733
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
811 --------------------- |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
812 ``<python:coverage>`` |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
813 --------------------- |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
814 |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
815 Extract data from a coverage.py_ run. |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
816 |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
817 .. _coverage.py: http://nedbatchelder.com/code/coverage/ |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
818 |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
819 Parameters |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
820 ---------- |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
821 |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
822 +--------------+-------------------------------------------------------------+ |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
823 | Name | Description | |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
824 +==============+=============================================================+ |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
825 | ``summary`` | Path to the summary file with ``coverage.py`` information, | |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
826 | | relative to the project source directory. | |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
827 +--------------+-------------------------------------------------------------+ |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
828 | ``coverdir`` | Path to the directory containing per-module coverage | |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
829 | | details, relative to the project source directory. | |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
830 +--------------+-------------------------------------------------------------+ |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
831 | ``include`` | List of glob patterns (separated by space) that specify | |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
832 | | which Python file should be included in the coverage report | |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
833 +--------------+-------------------------------------------------------------+ |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
834 | ``exclude`` | List of glob patterns (separated by space) that specify | |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
835 | | which Python file should be excluded from the coverage | |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
836 | | report | |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
837 +--------------+-------------------------------------------------------------+ |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
838 |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
839 Examples |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
840 -------- |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
841 |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
842 .. code-block:: xml |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
843 |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
844 <step id="test" description="Unittests with coverage.py information"> |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
845 <python:distutils command="unittest" |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
846 options="--xml-output build/test-results.xml |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
847 --coverage-summary build/test-coverage.txt |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
848 --coverage-dir build/coverage |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
849 --coverage-method coverage" /> |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
850 <python:unittest file="build/test-results.xml"/> |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
851 <python:coverage summary="build/test-coverage.txt" |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
852 coverdir="build/coverage" |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
853 include="mypackage/*" exclude="*/tests/*" /> |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
854 </step> |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
855 |
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
856 |
662
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
857 -------------------- |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
858 ``<python:figleaf>`` |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
859 -------------------- |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
860 |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
861 Extracts coverage information recorded by Figleaf_. |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
862 |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
863 .. _figleaf: http://darcs.idyll.org/~t/projects/figleaf/doc/ |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
864 |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
865 Parameters |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
866 ---------- |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
867 |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
868 +--------------+-------------------------------------------------------------+ |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
869 | Name | Description | |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
870 +==============+=============================================================+ |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
871 | ``summary`` | Path to the summary file written by ``figleaf``, | |
733
59e67e5df620
Documentation for `python:coverage` was missing for some unknown reason. Added now.
osimons
parents:
683
diff
changeset
|
872 | | relative to the project source directory. | |
662
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
873 +--------------+-------------------------------------------------------------+ |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
874 | ``include`` | List of glob patterns (separated by space) that specify | |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
875 | | which Python file should be included in the coverage report | |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
876 +--------------+-------------------------------------------------------------+ |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
877 | ``exclude`` | List of glob patterns (separated by space) that specify | |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
878 | | which Python file should be excluded from the coverage | |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
879 | | report | |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
880 +--------------+-------------------------------------------------------------+ |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
881 |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
882 Examples |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
883 -------- |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
884 |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
885 .. code-block:: xml |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
886 |
668
9f5e9e0f6ac9
0.6dev: Adding a more complete (and correct) example of running python tests with Figleaf coverage. Thanks Hodgestar.
osimons
parents:
662
diff
changeset
|
887 <step id="test" description="Unittests with Figleaf coverage"> |
9f5e9e0f6ac9
0.6dev: Adding a more complete (and correct) example of running python tests with Figleaf coverage. Thanks Hodgestar.
osimons
parents:
662
diff
changeset
|
888 <python:distutils command="unittest" |
9f5e9e0f6ac9
0.6dev: Adding a more complete (and correct) example of running python tests with Figleaf coverage. Thanks Hodgestar.
osimons
parents:
662
diff
changeset
|
889 options="--xml-output build/test-results.xml |
9f5e9e0f6ac9
0.6dev: Adding a more complete (and correct) example of running python tests with Figleaf coverage. Thanks Hodgestar.
osimons
parents:
662
diff
changeset
|
890 --coverage-summary build/test-coverage.txt |
9f5e9e0f6ac9
0.6dev: Adding a more complete (and correct) example of running python tests with Figleaf coverage. Thanks Hodgestar.
osimons
parents:
662
diff
changeset
|
891 --coverage-dir build/coverage |
9f5e9e0f6ac9
0.6dev: Adding a more complete (and correct) example of running python tests with Figleaf coverage. Thanks Hodgestar.
osimons
parents:
662
diff
changeset
|
892 --coverage-method figleaf" /> |
9f5e9e0f6ac9
0.6dev: Adding a more complete (and correct) example of running python tests with Figleaf coverage. Thanks Hodgestar.
osimons
parents:
662
diff
changeset
|
893 <python:unittest file="build/test-results.xml"/> |
9f5e9e0f6ac9
0.6dev: Adding a more complete (and correct) example of running python tests with Figleaf coverage. Thanks Hodgestar.
osimons
parents:
662
diff
changeset
|
894 <python:figleaf summary="build/test-coverage.txt" |
9f5e9e0f6ac9
0.6dev: Adding a more complete (and correct) example of running python tests with Figleaf coverage. Thanks Hodgestar.
osimons
parents:
662
diff
changeset
|
895 include="mypackage/*" exclude="*/tests/*" /> |
662
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
896 </step> |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
897 |
b00da52e942f
0.6dev: Adding docs for `<python:figleaf>` command. Closes #438.
osimons
parents:
633
diff
changeset
|
898 |
412 | 899 ------------------- |
900 ``<python:pylint>`` | |
901 ------------------- | |
902 | |
903 Extracts information from Pylint_ reports. | |
904 | |
905 .. _pylint: http://www.logilab.org/projects/pylint | |
906 | |
907 Parameters | |
908 ---------- | |
909 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
910 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
911 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
912 +==============+=============================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
913 | ``file`` | Path to the file containing the Pylint output, relative to | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
914 | | the project source directory. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
915 +--------------+-------------------------------------------------------------+ |
412 | 916 |
917 Examples | |
918 -------- | |
919 | |
920 .. code-block:: xml | |
921 | |
922 <python:pylint file="build/pylint.out" /> | |
923 | |
924 | |
415 | 925 Subversion Tools |
926 ================ | |
927 | |
928 A collection of recipe commands for working with the Subversion_ version | |
929 control system. This commands are commonly used as the first step of a build | |
930 recipe to actually pull the code that should be built from the repository. | |
931 | |
932 .. _subversion: http://subversion.tigris.org/ | |
933 | |
683
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
934 :Namespace: ``http://bitten.edgewall.org/tools/svn`` |
415 | 935 :Common prefix: ``svn`` |
936 | |
937 | |
938 ------------------ | |
939 ``<svn:checkout>`` | |
940 ------------------ | |
941 | |
942 Check out a working copy from a Subversion repository. | |
943 | |
944 Parameters | |
945 ---------- | |
946 | |
505
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
947 +-----------------+-------------------------------------------------------------+ |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
948 | Name | Description | |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
949 +=================+=============================================================+ |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
950 | ``url`` | URL of the repository. | |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
951 +-----------------+-------------------------------------------------------------+ |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
952 | ``path`` | The path inside the repository that should be checked out. | |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
953 | | You should normally set this to ``${path}`` so that the | |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
954 | | path of the build configuration is used. | |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
955 +-----------------+-------------------------------------------------------------+ |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
956 | ``revision`` | The revision that should be checked out. You should | |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
957 | | normally set this to ``${revision}`` so that the revision | |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
958 | | of the build is used. | |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
959 +-----------------+-------------------------------------------------------------+ |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
960 | ``dir`` | Path specifying which directory the sources should be | |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
961 | | checked out to (defaults to '.'). | |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
962 +-----------------+-------------------------------------------------------------+ |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
963 | ``verbose`` | Whether to log the list of checked out files (defaults to | |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
964 | | False). | |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
965 +-----------------+-------------------------------------------------------------+ |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
966 | ``shared_path`` | An optional shared directory to check the sources out in, | |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
967 | | which will be reused for each subsequent build. This is | |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
968 | | relative to the project directory, so for standard usage | |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
969 | | set it to something like ``../trunk`` | |
4caa400abe8e
This alters the `svn:checkout` command to take an extra parameter,
dfraser
parents:
491
diff
changeset
|
970 +-----------------+-------------------------------------------------------------+ |
564
2145ec6680fd
Allow passing `username` and `password` to subversion `checkout` and `export` (fixes #349)
dfraser
parents:
550
diff
changeset
|
971 | ``username`` | Username to pass for authentication (optional) | |
2145ec6680fd
Allow passing `username` and `password` to subversion `checkout` and `export` (fixes #349)
dfraser
parents:
550
diff
changeset
|
972 +-----------------+-------------------------------------------------------------+ |
2145ec6680fd
Allow passing `username` and `password` to subversion `checkout` and `export` (fixes #349)
dfraser
parents:
550
diff
changeset
|
973 | ``password`` | Password to pass for authentication (optional) | |
2145ec6680fd
Allow passing `username` and `password` to subversion `checkout` and `export` (fixes #349)
dfraser
parents:
550
diff
changeset
|
974 +-----------------+-------------------------------------------------------------+ |
491
9bff10727d58
Documentation update for svn commands, supplied by Iain Haslam.
wbell
parents:
487
diff
changeset
|
975 |
415 | 976 |
977 Examples | |
978 -------- | |
979 | |
980 .. code-block:: xml | |
981 | |
982 <svn:checkout url="http://svn.example.org/repos/myproject/" | |
983 path="${path}" revision="${revision}"/> | |
984 | |
985 This checks out the a working copy into the current directory. | |
986 | |
987 | |
988 ---------------- | |
989 ``<svn:export>`` | |
990 ---------------- | |
991 | |
992 Download a file or directory from a Subversion repository. This is similar to | |
993 performing a checkout, but will not include the meta-data Subversion uses to | |
994 connect the local working copy to the repository (i.e. it does not include the | |
995 ``.svn`` directories.) | |
996 | |
997 Parameters | |
998 ---------- | |
999 | |
1000 +--------------+-------------------------------------------------------------+ | |
1001 | Name | Description | | |
1002 +==============+=============================================================+ | |
1003 | ``url`` | URL of the repository. | | |
1004 +--------------+-------------------------------------------------------------+ | |
1005 | ``path`` | The path inside the repository that should be checked out. | | |
1006 | | You should normally set this to ``${path}`` so that the | | |
1007 | | path of the build configuration is used. | | |
1008 +--------------+-------------------------------------------------------------+ | |
1009 | ``revision`` | The revision that should be checked out. You should | | |
1010 | | normally set this to ``${revision}`` so that the revision | | |
1011 | | of the build is used. | | |
1012 +--------------+-------------------------------------------------------------+ | |
491
9bff10727d58
Documentation update for svn commands, supplied by Iain Haslam.
wbell
parents:
487
diff
changeset
|
1013 | ``dir`` | Path specifying which directory the sources should be | |
9bff10727d58
Documentation update for svn commands, supplied by Iain Haslam.
wbell
parents:
487
diff
changeset
|
1014 | | exported to (defaults to '.') | |
9bff10727d58
Documentation update for svn commands, supplied by Iain Haslam.
wbell
parents:
487
diff
changeset
|
1015 +--------------+-------------------------------------------------------------+ |
564
2145ec6680fd
Allow passing `username` and `password` to subversion `checkout` and `export` (fixes #349)
dfraser
parents:
550
diff
changeset
|
1016 | ``username`` | Username to pass for authentication (optional) | |
2145ec6680fd
Allow passing `username` and `password` to subversion `checkout` and `export` (fixes #349)
dfraser
parents:
550
diff
changeset
|
1017 +--------------+-------------------------------------------------------------+ |
2145ec6680fd
Allow passing `username` and `password` to subversion `checkout` and `export` (fixes #349)
dfraser
parents:
550
diff
changeset
|
1018 | ``password`` | Password to pass for authentication (optional) | |
2145ec6680fd
Allow passing `username` and `password` to subversion `checkout` and `export` (fixes #349)
dfraser
parents:
550
diff
changeset
|
1019 +--------------+-------------------------------------------------------------+ |
415 | 1020 |
1021 Examples | |
1022 -------- | |
1023 | |
1024 .. code-block:: xml | |
1025 | |
1026 <svn:export url="http://svn.example.org/repos/myproject/" | |
1027 path="${path}" revision="${revision}"/> | |
1028 | |
1029 This downloads the file or directory at ``${path}`` from the Subversion | |
1030 repository at ``http://svn.example.org/repos/myproject/``. Variables are used | |
1031 for the ``path`` and ``revision`` attributes so they are populated from the | |
1032 properties of the build and build configuration. | |
1033 | |
1034 | |
1035 ---------------- | |
1036 ``<svn:update>`` | |
1037 ---------------- | |
1038 | |
1039 Update an existing working copy from a Subversion repository to a specific | |
1040 revision. | |
1041 | |
1042 Parameters | |
1043 ---------- | |
1044 | |
1045 +--------------+-------------------------------------------------------------+ | |
1046 | Name | Description | | |
1047 +==============+=============================================================+ | |
1048 | ``revision`` | The revision that should be checked out. You should | | |
1049 | | normally set this to ``${revision}`` so that the revision | | |
1050 | | of the build is used. | | |
1051 +--------------+-------------------------------------------------------------+ | |
491
9bff10727d58
Documentation update for svn commands, supplied by Iain Haslam.
wbell
parents:
487
diff
changeset
|
1052 | ``dir`` | Path specifying the directory containing the sources to be | |
9bff10727d58
Documentation update for svn commands, supplied by Iain Haslam.
wbell
parents:
487
diff
changeset
|
1053 | | updated (defaults to '.') | |
9bff10727d58
Documentation update for svn commands, supplied by Iain Haslam.
wbell
parents:
487
diff
changeset
|
1054 +--------------+-------------------------------------------------------------+ |
415 | 1055 |
1056 Examples | |
1057 -------- | |
1058 | |
1059 .. code-block:: xml | |
1060 | |
1061 <svn:update revision="${revision}"/> | |
1062 | |
1063 This updates the working copy in the current directory. The revision is | |
1064 specified as a variable so that it is populated from the properties of the | |
1065 build. | |
1066 | |
1067 | |
412 | 1068 XML Tools |
1069 ========= | |
1070 | |
1071 A collection of recipe commands for XML processing. | |
1072 | |
683
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
1073 :Namespace: ``http://bitten.edgewall.org/tools/xml`` |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
1074 :Common prefix: ``x`` |
412 | 1075 |
1076 | |
1077 ----------------- | |
1078 ``<x:transform>`` | |
1079 ----------------- | |
1080 | |
1081 Apply an XSLT stylesheet . | |
1082 | |
633
900b09af6b38
0.6dev: The `.. note` rst processor don't seem to be found anywhere anymore. Replacing with a bold `**Note:**` before message text.
osimons
parents:
629
diff
changeset
|
1083 **Note:** This command requires either libxslt_ (with `Python bindings`_) |
900b09af6b38
0.6dev: The `.. note` rst processor don't seem to be found anywhere anymore. Replacing with a bold `**Note:**` before message text.
osimons
parents:
629
diff
changeset
|
1084 or, on Windows platforms, MSXML (version 3 or later) to be installed |
900b09af6b38
0.6dev: The `.. note` rst processor don't seem to be found anywhere anymore. Replacing with a bold `**Note:**` before message text.
osimons
parents:
629
diff
changeset
|
1085 on the slave machine. |
412 | 1086 |
1087 .. _libxslt: http://xmlsoft.org/XSLT/ | |
1088 .. _`python bindings`: http://xmlsoft.org/XSLT/python.html | |
1089 | |
1090 Parameters | |
1091 ---------- | |
1092 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
1093 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
1094 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
1095 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
1096 | ``src`` | Path of the source XML file. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
1097 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
1098 | ``dest`` | Path of the destition XML file. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
1099 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
1100 | ``stylesheet`` | Path to the XSLT stylesheet file. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
1101 +----------------+-----------------------------------------------------------+ |
412 | 1102 |
1103 All these are interpreted relative to the project source directory. | |
1104 | |
1105 Examples | |
1106 -------- | |
1107 | |
1108 .. code-block:: xml | |
1109 | |
1110 <x:transform src="src.xml" dest="dest.xml" stylesheet="util/convert.xsl" /> | |
1111 | |
1112 This applies the stylesheet in ``util/convert.xsl`` to the source file | |
1113 ``src.xml``, and writes the resulting XML document to ``dest.xml``. | |
584
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1114 |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1115 |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1116 Mercurial Tools |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1117 =============== |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1118 |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1119 A collection of recipe commands for working with Mercurial_ (hg) repositories. |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1120 |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1121 .. _mercurial: http://mercurial.selenic.com/ |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1122 |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1123 |
683
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
668
diff
changeset
|
1124 :Namespace: ``http://bitten.edgewall.org/tools/hg`` |
584
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1125 :Common prefix: ``hg`` |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1126 |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1127 |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1128 ------------- |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1129 ``<hg:pull>`` |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1130 ------------- |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1131 |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1132 Pull changesets and updates a local Mercurial repository. |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1133 |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1134 As the command depends on a pre-existing repository, bitten-slave must be |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1135 started with ``--build-dir=`` option for locating and working with the |
810
3e22750b4168
Updated docs for 'hg:pull' to mention the need for a default path to be used when pulling new revisions. Closes #611.
osimons
parents:
752
diff
changeset
|
1136 repository. Also, seeing no remote location can be specified the repository |
3e22750b4168
Updated docs for 'hg:pull' to mention the need for a default path to be used when pulling new revisions. Closes #611.
osimons
parents:
752
diff
changeset
|
1137 ``.hg/hgrc`` configuration file needs a ``[paths] default = ....`` location |
3e22750b4168
Updated docs for 'hg:pull' to mention the need for a default path to be used when pulling new revisions. Closes #611.
osimons
parents:
752
diff
changeset
|
1138 defined. |
584
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1139 |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1140 Parameters |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1141 ---------- |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1142 |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1143 +----------------+-----------------------------------------------------------+ |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1144 | Name | Description | |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1145 +================+===========================================================+ |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1146 | ``revision`` | The revision to update to (optional, defaults to tip). | |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1147 +----------------+-----------------------------------------------------------+ |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1148 | ``dir`` | Local subdirectory with repository (optional, | |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1149 | | defaults to '.'). | |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1150 +----------------+-----------------------------------------------------------+ |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1151 |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1152 Paths are interpreted relative to the project source directory. |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1153 |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1154 Examples |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1155 -------- |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1156 |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1157 .. code-block:: xml |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1158 |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1159 <hg:pull revision="${revision}" dir="src" /> |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1160 |
d8eb5f723371
0.6dev: Adding documentation + minimal test for new `hg:pull` command, see #303.
osimons
parents:
564
diff
changeset
|
1161 This updates the repository in ``src`` to the revision of the current build. |