SCons :: Action :: CommandAction :: Class CommandAction
[hide private]
[frames] | no frames]

Class CommandAction

source code

ActionBase --+    
             |    
 _ActionAction --+
                 |
                CommandAction
Known Subclasses:
LazyAction

Class for command-execution actions.



Instance Methods [hide private]
 
__init__(self, cmd, **kw) source code
 
__str__(self) source code
 
process(self, target, source, env, executor=False) source code
 
strfunction(self, target, source, env, executor=False) source code
 
execute(self, target, source, env, executor=False)
Execute a command action.
source code
 
get_presig(self, target, source, env, executor=False)
Return the signature contents of this action's command line.
source code
 
get_implicit_deps(self, target, source, env, executor=False) source code

Inherited from _ActionAction: __call__, print_cmd_line

Inherited from ActionBase: __add__, __cmp__, __radd__, batch_key, genstring, get_contents, get_targets, get_varlist, no_batch_key, presub_lines

Method Details [hide private]

__init__(self, cmd, **kw)
(Constructor)

source code 
Overrides: _ActionAction.__init__

execute(self, target, source, env, executor=False)

source code 
Execute a command action.

This will handle lists of commands as well as individual commands,
because construction variable substitution may turn a single
"command" into a list.  This means that this class can actually
handle lists of commands, even though that's not how we use it
externally.

get_presig(self, target, source, env, executor=False)

source code 
Return the signature contents of this action's command line.

This strips $(-$) and everything in between the string,
since those parts don't affect signatures.