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

Class QuestionTask

Task --+
       |
      QuestionTask


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


Method Summary
  execute(self)
Called to execute the task.
  executed(self)
Called when the task has been successfully executed and the Taskmaster instance wants to call the Node's callback methods.
  prepare(self)
Called just before the task is executed.
    Inherited from Task
  __init__(self, tm, targets, top, node)
  display(self, message)
Hook to allow the calling interface to display a message.
  exc_clear(self)
Clears any recorded exception.
  exc_info(self)
Returns info about a recorded exception.
  exception_set(self, exception)
Records an exception to be raised at the appropriate time.
  executed_with_callbacks(self)
Called when the task has been successfully executed and the Taskmaster instance wants to call the Node's callback methods.
  executed_without_callbacks(self)
Called when the task has been successfully executed and the Taskmaster instance doesn't want to call the Node's callback methods.
  fail_continue(self)
Explicit continue-the-build failure.
  fail_stop(self)
Explicit stop-the-build failure.
  failed(self)
Default action when a task fails: stop the build.
  get_target(self)
Fetch the target being built or updated by this task.
  make_ready(self)
Marks all targets in a task ready for execution if any target is not current.
  make_ready_all(self)
Marks all targets in a task ready for execution.
  make_ready_current(self)
Marks all targets in a task ready for execution if any target is not current.
  postprocess(self)
Post-processes a task after it's been executed.

Method Details

execute(self)

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:
SCons.Taskmaster.Task.execute (inherited documentation)

executed(self)

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:
SCons.Taskmaster.Task.executed_with_callbacks (inherited documentation)

prepare(self)

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:
SCons.Taskmaster.Task.prepare (inherited documentation)

Generated by Epydoc 2.1 on Wed Dec 12 09:39:32 2007 http://epydoc.sf.net