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

Class SConfBuildTask

source code

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

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

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.

Note: Although this function is normally invoked on nodes in the executing state, it might also be invoked on up-to-date nodes when using Configure().

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)