Package SCons :: Module Taskmaster :: Class AlwaysTask
[hide private]
[frames] | no frames]

Class AlwaysTask

source code

object --+    
         |    
      Task --+
             |
            AlwaysTask
Known Subclasses:
SConf.SConfBuildTask, Script.Main.CleanTask, Script.Main.QuestionTask

Instance Methods [hide private]
 
needs_execute(self)
Always returns True (indicating this Task should always be executed).
source code

Inherited from Task: __init__, display, exc_clear, exc_info, exception_set, execute, executed, executed_with_callbacks, executed_without_callbacks, fail_continue, fail_stop, failed, get_target, make_ready, make_ready_all, make_ready_current, postprocess, prepare, trace_message

Inherited from Task (private): _exception_raise, _no_exception_to_raise

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

needs_execute(self)

source code 

Always returns True (indicating this Task should always
be executed).

Subclasses that need this behavior (as opposed to the default
of only executing Nodes that are out of date w.r.t. their
dependencies) can use this as follows:

    class MyTaskSubclass(SCons.Taskmaster.Task):
        needs_execute = SCons.Taskmaster.Task.execute_always

Overrides: Task.needs_execute