Mercurial > bitten > bitten-test
annotate doc/commands.txt @ 478:6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
author | wbell |
---|---|
date | Thu, 13 Mar 2008 22:49:39 +0000 |
parents | 74c51f648466 |
children | fbd5bc3c2a48 |
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 |
412 | 8 commands are generally available in recipes. Please note, though, that |
9 third-party packages can add additional commands, which would then be | |
10 documented by that third party. | |
11 | |
415 | 12 .. _`build recipes`: recipes.html |
13 | |
412 | 14 .. contents:: Contents |
15 :depth: 2 | |
16 .. sectnum:: | |
17 | |
18 | |
19 Generic Commands | |
20 ================ | |
21 | |
22 These are commands that are used without a namespace prefix. | |
23 | |
24 | |
25 ------------ | |
26 ``<report>`` | |
27 ------------ | |
28 | |
29 Parse an XML file and send it to the master as a report with a given category. | |
30 Use this command in conjunction with the ``<sh:pipe>`` or ``<x:transform>`` | |
31 commands to send custom reports to the build master. | |
32 | |
33 Parameters | |
34 ---------- | |
35 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
36 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
37 | Name | Description | |
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 | ``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
|
40 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
41 | ``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
|
42 | | to the project directory. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
43 +--------------+-------------------------------------------------------------+ |
412 | 44 |
45 Both parameters must be specified. | |
46 | |
47 | |
48 Shell Tools | |
49 =========== | |
50 | |
51 A bundle of generic tools that are not specific to any programming language or | |
52 tool-chain. | |
53 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
54 :Namespace: ``http://bitten.cmlenz.net/tools/sh`` |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
55 :Common prefix: ``sh`` |
412 | 56 |
57 | |
58 ------------- | |
59 ``<sh:exec>`` | |
60 ------------- | |
61 | |
62 Executes a program or script. | |
63 | |
64 Parameters | |
65 ---------- | |
66 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
67 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
68 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
69 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
70 | ``executable`` | The name of the executable program. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
71 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
72 | ``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
|
73 | | directory | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
74 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
75 | ``output`` | Path to the output file | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
76 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
77 | ``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
|
78 +----------------+-----------------------------------------------------------+ |
412 | 79 |
80 Either ``executable`` or ``file`` must be specified. | |
81 | |
82 Examples | |
83 -------- | |
84 | |
85 TODO | |
86 | |
87 | |
88 ------------- | |
89 ``<sh:pipe>`` | |
90 ------------- | |
91 | |
92 Pipes the content of a file through 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 | ``input`` | Path to the input 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 | ``output`` | Path to the output file | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
108 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
109 | ``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
|
110 +----------------+-----------------------------------------------------------+ |
412 | 111 |
112 Either ``executable`` or ``file`` must be specified. | |
113 | |
114 Examples | |
115 -------- | |
116 | |
117 TODO | |
118 | |
119 | |
120 C/Unix Tools | |
121 ============ | |
122 | |
123 These commands provide support for tools commonly used for development of C/C++ | |
124 applications on Unix platforms, such as ``make``. | |
125 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
126 :Namespace: ``http://bitten.cmlenz.net/tools/c`` |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
127 :Common prefix: ``c`` |
412 | 128 |
129 | |
130 ----------------- | |
478
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
131 ``<c:autoreconf>`` |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
132 ----------------- |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
133 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
134 Executes ths autotool autoreconf. |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
135 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
136 Parameters |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
137 ---------- |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
138 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
139 :param force: consider all files obsolete |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
140 :param install: copy missing auxiliary files |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
141 :param symlink: install symbolic links instead of copies |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
142 :param warnings: report the warnings falling in CATEGORY |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
143 :prepend_include: prepend directories to search path |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
144 :include: append directories to search path |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
145 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
146 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
147 +--------------+-------------------------------------------------------------+ |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
148 | Name | Description | |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
149 +==============+=============================================================+ |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
150 | ``force`` | Consider all files obsolete | |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
151 +--------------+-------------------------------------------------------------+ |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
152 | ``install`` | Copy missing auxiliary files | |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
153 +--------------+-------------------------------------------------------------+ |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
154 | ``symlink`` | Install symbolic links instead of copies | |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
155 +--------------+-------------------------------------------------------------+ |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
156 | ``warnings`` | Report the warnings related to category (which can actually be a comma separated list) | |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
157 +--------------+-------------------------------------------------------------+ |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
158 | ``prepend_include`` | Prepend directories to search path | |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
159 +--------------+-------------------------------------------------------------+ |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
160 | ``include`` | Append directories to search path | |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
161 +--------------+-------------------------------------------------------------+ |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
162 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
163 Examples |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
164 -------- |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
165 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
166 .. code-block:: xml |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
167 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
168 <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
|
169 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
170 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
|
171 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
|
172 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
173 autoreconf --force --install --warnings=cross,syntax,error |
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 |
6718f9a5c1f1
Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents:
432
diff
changeset
|
176 ----------------- |
412 | 177 ``<c:configure>`` |
178 ----------------- | |
179 | |
180 Executes a configure script as generated by Autoconf. | |
181 | |
182 Parameters | |
183 ---------- | |
184 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
185 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
186 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
187 +==============+=============================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
188 | ``file`` | Name of the configure script (defaults to "configure") | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
189 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
190 | ``enable`` | List of features to enable, separated by spaces. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
191 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
192 | ``disable`` | List of features to disable, separated by spaces. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
193 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
194 | ``with`` | List of packages to include, separated by spaces. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
195 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
196 | ``without`` | List of packages to exclude, separated by spaces. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
197 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
198 | ``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
|
199 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
200 | ``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
|
201 +--------------+-------------------------------------------------------------+ |
412 | 202 |
203 Examples | |
204 -------- | |
205 | |
206 .. code-block:: xml | |
207 | |
432 | 208 <c:configure enable="threadsafe" cflags="-O"/> |
412 | 209 |
432 | 210 Runs the ``configure`` script in the base directory, enable the ``threadsafe`` |
211 feature, and passing ``-O`` as ``CFLAGS``. This is equivalent to:: | |
412 | 212 |
213 ./configure --enable-threadsafe CFLAGS="-O" | |
214 | |
215 | |
216 ------------ | |
415 | 217 ``<c:gcov>`` |
218 ------------ | |
219 | |
220 Run gcov_ to extract coverage data where available. | |
221 | |
222 .. _gcov: http://gcc.gnu.org/onlinedocs/gcc/Gcov-Intro.html | |
223 | |
224 Parameters | |
225 ---------- | |
226 | |
227 +--------------+------------------------------------------------------------+ | |
228 | Name | Description | | |
229 +==============+============================================================+ | |
230 | ``include`` | List of glob patterns (separated by space) that specify | | |
231 | | which source files should be included in the coverage | | |
232 | | report | | |
233 +--------------+------------------------------------------------------------+ | |
234 | ``exclude`` | List of glob patterns (separated by space) that specify | | |
235 | | which source files should be excluded from the coverage | | |
236 | | report | | |
237 +--------------+------------------------------------------------------------+ | |
238 | ``prefix`` | Optional prefix name that is added to object files by the | | |
239 | | build system | | |
240 +--------------+------------------------------------------------------------+ | |
241 | |
242 | |
243 ------------ | |
412 | 244 ``<c:make>`` |
245 ------------ | |
246 | |
247 Executes a Makefile. | |
248 | |
249 Parameters | |
250 ---------- | |
251 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
252 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
253 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
254 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
255 | ``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
|
256 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
257 | ``file`` | Path to the Makefile that should be used. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
258 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
259 | ``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
|
260 | | encountering errors. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
261 +----------------+-----------------------------------------------------------+ |
412 | 262 |
263 Examples | |
264 -------- | |
265 | |
266 .. code-block:: xml | |
267 | |
268 <c:make target="compile" file="build/Makefile" /> | |
269 | |
270 Runs the target "compile" of the ``Makefile`` located in the sub-directory | |
271 ``build``. | |
272 | |
273 | |
274 --------------- | |
275 ``<c:cppunit>`` | |
276 --------------- | |
277 | |
278 Report the test output generated by the CppUnit_ unit testing framework. The | |
279 output from CppUnit must be in XML format and in already, specified by the | |
280 ``file`` argument of this recipe. | |
281 | |
282 .. _cppunit: http://cppunit.sourceforge.net | |
283 | |
284 Parameters | |
285 ---------- | |
286 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
287 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
288 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
289 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
290 | ``file`` | Path to the cppunit XML output file. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
291 +----------------+-----------------------------------------------------------+ |
412 | 292 |
293 Examples | |
294 -------- | |
295 | |
296 .. code-block:: xml | |
297 | |
298 <sh:exec executable="run_unit_tests" output="test_results.xml" /> | |
299 <c:cppunit file="test_results.xml" /> | |
300 | |
301 Runs the program ``run_unit_tests`` to gather the data output by CppUnit in the | |
302 ``test_results.xml`` file and then reports it. | |
303 | |
304 | |
305 Java Tools | |
306 ========== | |
307 | |
308 A bundle of recipe commands that support tools commonly used by Java projects. | |
309 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
310 :Namespace: ``http://bitten.cmlenz.net/tools/java`` |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
311 :Common prefix: ``java`` |
412 | 312 |
313 | |
314 -------------- | |
315 ``<java:ant>`` | |
316 -------------- | |
317 | |
318 Runs an Ant_ build. | |
319 | |
320 .. _ant: http://ant.apache.org/ | |
321 | |
322 Parameters | |
323 ---------- | |
324 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
325 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
326 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
327 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
328 | ``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
|
329 | |Â directory (default is ``build.xml``). | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
330 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
331 | ``target`` | Name of the build target(s) to execute. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
332 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
333 | ``args`` | Additional arguments to pass to Ant, separated by | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
334 | | whitespace. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
335 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
336 | ``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
|
337 | | in the build. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
338 +----------------+-----------------------------------------------------------+ |
412 | 339 |
340 Examples | |
341 -------- | |
342 | |
343 .. code-block:: xml | |
344 | |
345 <java:ant target="compile" /> | |
346 | |
432 | 347 Executes the target ``compile`` of the ``build.xml`` buildfile at the top of the |
412 | 348 project source directory. |
349 | |
350 | |
415 | 351 -------------------- |
352 ``<java:cobertura>`` | |
353 -------------------- | |
354 | |
355 Extract code coverage data from a Cobertura_ XML file. | |
356 | |
357 .. _cobertura: http://cobertura.sourceforge.net/ | |
358 | |
359 Parameters | |
360 ---------- | |
361 | |
362 +----------------+-----------------------------------------------------------+ | |
363 | Name | Description | | |
364 +================+===========================================================+ | |
365 | ``file`` | Path to the XML file generated by Cobertura | | |
366 +----------------+-----------------------------------------------------------+ | |
367 | |
368 Examples | |
369 -------- | |
370 | |
371 .. code-block:: xml | |
372 | |
373 <java:cobertura file="build/cobertura.xml" /> | |
374 | |
375 Reads the specifid XML file, extracts the coverage data, and builds a coverage | |
376 report to be sent to the build master. | |
377 | |
378 | |
412 | 379 ---------------- |
380 ``<java:junit>`` | |
381 ---------------- | |
382 | |
383 Extracts information about unit test results from a file in JUnit_ XML format. | |
384 | |
385 .. _junit: http://junit.org/index.htm | |
386 | |
387 Parameters | |
388 ---------- | |
389 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
390 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
391 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
392 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
393 | ``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
|
394 | | wildcards, in which case all the file matching the | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
395 | | pattern will be included. | |
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 | ``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
|
398 | | test cases to files. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
399 +----------------+-----------------------------------------------------------+ |
412 | 400 |
401 The ``file`` attribute is required. | |
402 | |
403 Examples | |
404 -------- | |
405 | |
406 .. code-block:: xml | |
407 | |
408 <java:junit file="build/tests/results/TEST-*.xml" srcdir="src/tests" /> | |
409 | |
410 Collects the test results from all files in the `build/tests/results` directory | |
411 that match the pattern `TEST-*.xml`. Also, maps the class names in the results | |
412 files to Java source files in the directory `src/tests`. | |
413 | |
414 | |
416 | 415 PHP Tools |
416 ========= | |
417 | |
418 A bundle of recipe commands for PHP_ projects. | |
419 | |
420 :Namespace: ``http://bitten.cmlenz.net/tools/php`` | |
421 :Common prefix: ``php`` | |
422 | |
423 .. _php: http://php.net/ | |
424 | |
422 | 425 --------------- |
426 ``<php:phing>`` | |
427 --------------- | |
416 | 428 |
429 Runs a Phing_ build. | |
430 | |
431 .. _phing: http://phing.info/ | |
432 | |
433 Parameters | |
434 ---------- | |
435 | |
436 +-------------------+-------------------------------------------------------+ | |
437 | Name | Description | | |
438 +===================+=======================================================+ | |
439 | ``file`` | Path of the build file, relative to the project | | |
440 | | source directory (default is ``build.xml``). | | |
441 +-------------------+-------------------------------------------------------+ | |
442 | ``target`` | Name of the build target(s) to execute. | | |
443 +-------------------+-------------------------------------------------------+ | |
444 | ``args`` | Additional arguments to pass to Phing, separated by | | |
445 | | whitespace. | | |
446 +-------------------+-------------------------------------------------------+ | |
447 | ``executable`` | Phing executable program (default is ``phing``). | | |
448 +-------------------+-------------------------------------------------------+ | |
449 | |
450 | |
451 Examples | |
452 -------- | |
453 | |
454 .. code-block:: xml | |
455 | |
456 <php:phing target="compile" /> | |
457 | |
458 Executes the target ``compile`` of the ``build.xml`` buildfile at the top of the | |
459 project source directory. | |
460 | |
461 | |
462 ----------------- | |
463 ``<php:phpunit>`` | |
464 ----------------- | |
465 | |
466 Extracts information from PHPUnit_ test results recorded in an XML file. | |
467 | |
468 .. _phpunit: http://www.phpunit.de/ | |
469 | |
470 Parameters | |
471 ---------- | |
472 | |
473 +----------------+-----------------------------------------------------------+ | |
474 | Name | Description | | |
475 +================+===========================================================+ | |
476 | ``file`` | Path to the XML results file, relative to the project | | |
477 | | source directory. | | |
478 +----------------+-----------------------------------------------------------+ | |
479 | |
480 Examples | |
481 -------- | |
482 | |
483 .. code-block:: xml | |
484 | |
485 <php:phpunit file="build/test-results.xml"/> | |
486 | |
487 Extracts the test results from the XML file located at | |
488 ``build/test-results.xml``. | |
489 | |
490 | |
491 ------------------ | |
492 ``<php:coverage>`` | |
493 ------------------ | |
494 | |
495 Extracts coverage information Phing_'s code coverage task recorded in an XML | |
496 file. | |
497 | |
498 Parameters | |
499 ---------- | |
500 | |
501 +---------------+-----------------------------------------------------------+ | |
502 | Name | Description | | |
503 +===============+===========================================================+ | |
504 | ``file`` | Path to the XML coverage file, relative to the project | | |
505 | | source directory. | | |
506 +---------------+-----------------------------------------------------------+ | |
507 | |
508 Examples | |
509 -------- | |
510 | |
511 .. code-block:: xml | |
512 | |
513 <php:coverage file="build/coverage.xml" /> | |
514 | |
515 | |
412 | 516 Python Tools |
517 ============ | |
518 | |
519 A bundle of recipe commands that support tools commonly used by Python_ | |
520 projects. | |
521 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
522 :Namespace: ``http://bitten.cmlenz.net/tools/python`` |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
523 :Common prefix: ``python`` |
412 | 524 |
525 .. _python: http://www.python.org/ | |
526 | |
527 | |
528 ----------------- | |
529 ``<python:exec>`` | |
530 ----------------- | |
531 | |
532 Executes a Python script. | |
533 | |
534 Parameters | |
535 ---------- | |
536 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
537 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
538 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
539 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
540 | ``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
|
541 | | source directory. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
542 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
543 | ``module`` | Name of the Python module to execute. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
544 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
545 | ``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
|
546 | | works when also specifying the `module` attribute. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
547 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
548 | ``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
|
549 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
550 | ``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
|
551 | | recorded. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
552 +----------------+-----------------------------------------------------------+ |
412 | 553 |
554 Either `file` or `module` must be specified. | |
555 | |
556 Examples | |
557 -------- | |
558 | |
559 .. code-block:: xml | |
560 | |
561 <python:exec module="pylint.lint" output="pylint-report.txt" args="myproj" /> | |
562 | |
563 Executes Pylint_ on the module/package ``myproj`` and stores the output into a | |
564 file named ``pylint-report.txt``. | |
565 | |
566 | |
567 ---------------------- | |
568 ``<python:distutils>`` | |
569 ---------------------- | |
570 | |
571 Executes a distutils_ script. | |
572 | |
573 .. _distutils: http://docs.python.org/lib/module-distutils.html | |
574 | |
575 Parameters | |
576 ---------- | |
577 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
578 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
579 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
580 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
581 | `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
|
582 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
583 | `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
|
584 | | spaces | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
585 +----------------+-----------------------------------------------------------+ |
412 | 586 |
587 Examples | |
588 -------- | |
589 | |
590 .. code-block:: xml | |
591 | |
592 <python:distutils command="sdist" /> | |
593 | |
594 Instructs `distutils` to produce a source distribution. | |
595 | |
415 | 596 .. code-block:: xml |
597 | |
598 <python:distutils command="unittest" options=" | |
599 --xml-output build/test-results.xml | |
600 --coverage-summary build/test-coverage.txt | |
601 --coverage-dir build/coverage"/> | |
602 | |
603 Instructs `distutils` to run the ``unittest`` command (which is provided by | |
604 Bitten), and passes the options needed to determine the output paths for test | |
605 results and code coverage reports. | |
606 | |
412 | 607 |
608 --------------------- | |
609 ``<python:unittest>`` | |
610 --------------------- | |
611 | |
612 Extracts information from unittest_ results recorded in an XML file. | |
613 | |
614 .. _unittest: http://docs.python.org/lib/module-unittest.html | |
615 .. note:: This report must be used in conjunction with the ``distutils`` command | |
616 "unittest" that comes with Bitten. | |
617 | |
618 Parameters | |
619 ---------- | |
620 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
621 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
622 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
623 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
624 | ``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
|
625 | | source directory. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
626 +----------------+-----------------------------------------------------------+ |
412 | 627 |
628 Examples | |
629 -------- | |
630 | |
631 .. code-block:: xml | |
632 | |
633 <python:unittest file="build/test-results.xml"/> | |
634 | |
635 Extracts the test results from the XML file located at | |
636 ``build/test-results.xml``. | |
637 | |
638 | |
639 ------------------ | |
640 ``<python:trace>`` | |
641 ------------------ | |
642 | |
643 Extracts coverage information recorded by the built-in Python module | |
644 ``trace.py``. | |
645 | |
646 Parameters | |
647 ---------- | |
648 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
649 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
650 | Name | Description | |
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 | ``summary`` | Path to the summary file written by ``trace.py``, | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
653 | |Â relative to the project source directory. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
654 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
655 | ``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
|
656 | | by ``trace.py``, relative to the project source directory. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
657 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
658 | ``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
|
659 | | 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
|
660 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
661 | ``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
|
662 | | which Python file should be excluded from the coverage | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
663 | | report | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
664 +--------------+-------------------------------------------------------------+ |
412 | 665 |
666 Examples | |
667 -------- | |
668 | |
669 .. code-block:: xml | |
670 | |
671 <python:trace summary="build/trace.out" coverdir="build/coverage" /> | |
672 | |
673 ------------------- | |
674 ``<python:pylint>`` | |
675 ------------------- | |
676 | |
677 Extracts information from Pylint_ reports. | |
678 | |
679 .. _pylint: http://www.logilab.org/projects/pylint | |
680 | |
681 Parameters | |
682 ---------- | |
683 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
684 +--------------+-------------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
685 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
686 +==============+=============================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
687 | ``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
|
688 | | the project source directory. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
689 +--------------+-------------------------------------------------------------+ |
412 | 690 |
691 Examples | |
692 -------- | |
693 | |
694 .. code-block:: xml | |
695 | |
696 <python:pylint file="build/pylint.out" /> | |
697 | |
698 | |
415 | 699 Subversion Tools |
700 ================ | |
701 | |
702 A collection of recipe commands for working with the Subversion_ version | |
703 control system. This commands are commonly used as the first step of a build | |
704 recipe to actually pull the code that should be built from the repository. | |
705 | |
706 .. _subversion: http://subversion.tigris.org/ | |
707 | |
708 :Namespace: ``http://bitten.cmlenz.net/tools/svn`` | |
709 :Common prefix: ``svn`` | |
710 | |
711 | |
712 ------------------ | |
713 ``<svn:checkout>`` | |
714 ------------------ | |
715 | |
716 Check out a working copy from a Subversion repository. | |
717 | |
718 Parameters | |
719 ---------- | |
720 | |
721 +--------------+-------------------------------------------------------------+ | |
722 | Name | Description | | |
723 +==============+=============================================================+ | |
724 | ``url`` | URL of the repository. | | |
725 +--------------+-------------------------------------------------------------+ | |
726 | ``path`` | The path inside the repository that should be checked out. | | |
727 | | You should normally set this to ``${path}`` so that the | | |
728 | | path of the build configuration is used. | | |
729 +--------------+-------------------------------------------------------------+ | |
730 | ``revision`` | The revision that should be checked out. You should | | |
731 | | normally set this to ``${revision}`` so that the revision | | |
732 | | of the build is used. | | |
733 +--------------+-------------------------------------------------------------+ | |
734 | |
735 Examples | |
736 -------- | |
737 | |
738 .. code-block:: xml | |
739 | |
740 <svn:checkout url="http://svn.example.org/repos/myproject/" | |
741 path="${path}" revision="${revision}"/> | |
742 | |
743 This checks out the a working copy into the current directory. | |
744 | |
745 | |
746 ---------------- | |
747 ``<svn:export>`` | |
748 ---------------- | |
749 | |
750 Download a file or directory from a Subversion repository. This is similar to | |
751 performing a checkout, but will not include the meta-data Subversion uses to | |
752 connect the local working copy to the repository (i.e. it does not include the | |
753 ``.svn`` directories.) | |
754 | |
755 Parameters | |
756 ---------- | |
757 | |
758 +--------------+-------------------------------------------------------------+ | |
759 | Name | Description | | |
760 +==============+=============================================================+ | |
761 | ``url`` | URL of the repository. | | |
762 +--------------+-------------------------------------------------------------+ | |
763 | ``path`` | The path inside the repository that should be checked out. | | |
764 | | You should normally set this to ``${path}`` so that the | | |
765 | | path of the build configuration is used. | | |
766 +--------------+-------------------------------------------------------------+ | |
767 | ``revision`` | The revision that should be checked out. You should | | |
768 | | normally set this to ``${revision}`` so that the revision | | |
769 | | of the build is used. | | |
770 +--------------+-------------------------------------------------------------+ | |
771 | |
772 Examples | |
773 -------- | |
774 | |
775 .. code-block:: xml | |
776 | |
777 <svn:export url="http://svn.example.org/repos/myproject/" | |
778 path="${path}" revision="${revision}"/> | |
779 | |
780 This downloads the file or directory at ``${path}`` from the Subversion | |
781 repository at ``http://svn.example.org/repos/myproject/``. Variables are used | |
782 for the ``path`` and ``revision`` attributes so they are populated from the | |
783 properties of the build and build configuration. | |
784 | |
785 | |
786 ---------------- | |
787 ``<svn:update>`` | |
788 ---------------- | |
789 | |
790 Update an existing working copy from a Subversion repository to a specific | |
791 revision. | |
792 | |
793 Parameters | |
794 ---------- | |
795 | |
796 +--------------+-------------------------------------------------------------+ | |
797 | Name | Description | | |
798 +==============+=============================================================+ | |
799 | ``revision`` | The revision that should be checked out. You should | | |
800 | | normally set this to ``${revision}`` so that the revision | | |
801 | | of the build is used. | | |
802 +--------------+-------------------------------------------------------------+ | |
803 | |
804 Examples | |
805 -------- | |
806 | |
807 .. code-block:: xml | |
808 | |
809 <svn:update revision="${revision}"/> | |
810 | |
811 This updates the working copy in the current directory. The revision is | |
812 specified as a variable so that it is populated from the properties of the | |
813 build. | |
814 | |
815 | |
412 | 816 XML Tools |
817 ========= | |
818 | |
819 A collection of recipe commands for XML processing. | |
820 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
821 :Namespace: ``http://bitten.cmlenz.net/tools/xml`` |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
822 :Common prefix: ``x`` |
412 | 823 |
824 | |
825 ----------------- | |
826 ``<x:transform>`` | |
827 ----------------- | |
828 | |
829 Apply an XSLT stylesheet . | |
830 | |
831 .. note:: that this command requires either libxslt_ (with `Python bindings`_) | |
832 or, on Windows platforms, MSXML (version 3 or later) to be installed | |
833 on the slave machine. | |
834 | |
835 .. _libxslt: http://xmlsoft.org/XSLT/ | |
836 .. _`python bindings`: http://xmlsoft.org/XSLT/python.html | |
837 | |
838 Parameters | |
839 ---------- | |
840 | |
413
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
841 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
842 | Name | Description | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
843 +================+===========================================================+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
844 | ``src`` | Path of the source XML file. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
845 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
846 | ``dest`` | Path of the destition XML file. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
847 +----------------+-----------------------------------------------------------+ |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
848 | ``stylesheet`` | Path to the XSLT stylesheet file. | |
fa72698e7477
Don't put tables in blockquotes in command reference.
cmlenz
parents:
412
diff
changeset
|
849 +----------------+-----------------------------------------------------------+ |
412 | 850 |
851 All these are interpreted relative to the project source directory. | |
852 | |
853 Examples | |
854 -------- | |
855 | |
856 .. code-block:: xml | |
857 | |
858 <x:transform src="src.xml" dest="dest.xml" stylesheet="util/convert.xsl" /> | |
859 | |
860 This applies the stylesheet in ``util/convert.xsl`` to the source file | |
861 ``src.xml``, and writes the resulting XML document to ``dest.xml``. |