Edgewall Software

Version 1 (modified by cmlenz, 19 years ago) (diff)

Beginning a recipe command reference

Build Recipe Commands Reference

As described on the page about build recipes, a recipe is stored as an XML document. This page describes what commands are available in recipes.


Shell Tools

A bundle of generic tools that are not specific to any programming language or tool-chain.

Namespace
bitten:bitten.build.shtools
Common prefix
sh

<sh:exec>

Executes a program or script.

Parameters

Name Description
executable The name of the executable program.
file Path to the script to execute, relative to the project directory
output Path to the output file
args Any arguments to pass to the executable or script

Either execute or file must be specified.

Examples

TODO

<sh:pipe>

Pipes the content of a file through a program or script.

Parameters

Name Default
executable The name of the executable program.
file Path to the script to execute, relative to the project directory
input Path to the input file
output Path to the output file
args Any arguments to pass to the executable or script

Either execute or file must be specified.

Examples

TODO


C/Unix Tools

These commands provide support for tools commonly used for development of C/C++ applications on Unix platforms, such as make.

Namespace
bitten:bitten.build.ctools
Common prefix
c

<c:make>

Executes a Makefile.

Parameters

Name Description
target Name of the target to execute (defaults to “all”)
file  Path to the Makefile that should be used.
 keep-going Whether make should try to continue even after encountering errors.

Examples

TODO


Python Tools

A bundle of recipe commands that support tools commonly used by Python projects.

Namespace
bitten:bitten.build.pythontools
Common prefix
python

<python:exec>

Executes a Python script.

Parameters

Name Description
file Path of the script to execute, relative to the project source directory.
module Name of the Python module to execute.
args Any arguments that should be passed to the script.
output Path to a file where any output by the script should be recorded.

Either file or module must be specified.

Examples

 <python:exec module="pylint.lint" output="pylint-report.txt" args="myproj" />

Executes Pylint on the module/package “myproj” and stores the output into a file named pylint-report.txt.

<python:distutils>

Executes a distutils script.

Parameters

Name Description
 command The name of the distutils command that should be run

Examples

 <python:distutils command="sdist" />

Instructs distutils to produce a source distribution.

<python:unittest>

Extracts information from unittest results recorded in an XML file.

Parameters

TODO

Examples

TODO

<python:trace>

Extracts coverage information recorded by the built-in Python module trace.py.

Parameters

TODO

Examples

TODO

<python:pylint>

Extracts information from Pylint reports.

Parameters

TODO

Examples

TODO