SCons.Script.Main.QuestionTask

Package SCons :: Package Script :: Module Main :: Class QuestionTask |
[hide private]
[frames] | no frames]

# Class QuestionTask

source code

    Taskmaster.Task --+
                      |
                     QuestionTask

An SCons task for the -q (question) option.

Instance Methods | [hide private]
prepare(self) Called just before the task is executed. | source code
execute(self) Called to execute the task. | source code
executed(self) Called when the task has been successfully executed and the Taskmaster instance wants to call the Node's callback methods. | source code
Inherited from `Taskmaster.Task`: `__init__`, `display`, `exc_clear`, `exc_info`, `exception_set`, `executed_with_callbacks`, `executed_without_callbacks`, `fail_continue`, `fail_stop`, `failed`, `get_target`, `make_ready`, `make_ready_all`, `make_ready_current`, `postprocess` Inherited from `Taskmaster.Task` (private): `_exception_raise`, `_no_exception_to_raise`

Method Details | [hide private]

### prepare(self) | source code
Called just before the task is executed. This is mainly intended to give the target Nodes a chance to unlink underlying files and make all necessary directories before the Action is actually called to build the targets. Overrides: Taskmaster.Task.prepare (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)

### executed(self) | source code
Called when the task has been successfully executed and the Taskmaster instance wants to call the Node's callback methods. This may have been a do-nothing operation (to preserve build order), so we must check the node's state before deciding whether it was "built", in which case we call the appropriate Node method. In any event, we always call "visited()", which will handle any post-visit actions that must take place regardless of whether or not the target was an actual built target or a source Node. Overrides: Taskmaster.Task.executed_with_callbacks (inherited documentation)