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

Class QuestionTask

source code

       object --+        
                |        
  Taskmaster.Task --+    
                    |    
Taskmaster.AlwaysTask --+
                        |
                       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.AlwaysTask: needs_execute

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, trace_message

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

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)