SCons.Action.CommandAction

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, cmdstr=False, *args, **kw) | source code
__str__(self) | source code
process(self, target, source, env) | source code
strfunction(self, target, source, env) | source code
execute(self, target, source, env) Execute a command action. | source code
get_contents(self, target, source, env) Return the signature contents of this action's command line. | source code
get_implicit_deps(self, target, source, env) | source code
Inherited from `_ActionAction`: `__call__`, `print_cmd_line` Inherited from `ActionBase`: `__add__`, `__cmp__`, `__radd__`, `genstring`, `get_executor`, `presub_lines`

Method Details | [hide private]

### __init__(self, cmd, cmdstr=False, *args, **kw) (Constructor) | source code
Overrides: _ActionAction.__init__

### execute(self, target, source, env) | 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_contents(self, target, source, env) | 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.