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

Class CommandAction

source code

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

Class for command-execution actions.



Instance Methods [hide private]
 
__init__(self, cmd, **kw) source code
 
__str__(self)
str(x)
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

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 
Overrides: _ActionAction.__init__

__str__(self)
(Informal representation operator)

source code 
str(x)

Overrides: object.__str__
(inherited documentation)

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.