SCons.SConf.SConfBuildTask

Package SCons :: Module SConf :: Class SConfBuildTask |
[hide private]
[frames] | no frames]

# Class SConfBuildTask

source code

    Taskmaster.Task --+
                      |
                     SConfBuildTask

This is almost the same as SCons.Script.BuildTask. Handles SConfErrors correctly and knows about the current cache_mode.

Instance Methods | [hide private]
display(self, message) Hook to allow the calling interface to display a message. | source code
display_cached_string(self, bi) Logs the original builder messages, given the SConfBuildInfo instance bi. | source code
failed(self) Default action when a task fails: stop the build. | source code
collect_node_states(self) | source code
execute(self) Called to execute the task. | source code
Inherited from `Taskmaster.Task`: `__init__`, `exc_clear`, `exc_info`, `exception_set`, `executed`, `executed_with_callbacks`, `executed_without_callbacks`, `fail_continue`, `fail_stop`, `get_target`, `make_ready`, `make_ready_all`, `make_ready_current`, `postprocess`, `prepare` Inherited from `Taskmaster.Task` (private): `_exception_raise`, `_no_exception_to_raise`

Method Details | [hide private]

### display(self, message) | source code
Hook to allow the calling interface to display a message. This hook gets called as part of preparing a task for execution (that is, a Node to be built). As part of figuring out what Node should be built next, the actually target list may be altered, along with a message describing the alteration. The calling interface can subclass Task and provide a concrete implementation of this method to see those messages. Overrides: Taskmaster.Task.display (inherited documentation)

### failed(self) | source code
Default action when a task fails: stop the build. Overrides: Taskmaster.Task.failed (inherited documentation)

### execute(self) | source code
Called to execute the task. This method is called from multiple threads in a parallel build, so only do thread safe stuff here. Do thread unsafe stuff in prepare(), executed() or failed(). Overrides: Taskmaster.Task.execute (inherited documentation)