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

Class CommandAction

ActionBase --+    
             |    
 _ActionAction --+
                 |
                CommandAction

Known Subclasses:
LazyAction

Class for command-execution actions.


Method Summary
  __init__(self, cmd, cmdstr, *args, **kw)
  __str__(self)
  execute(self, target, source, env)
Execute a command action.
  get_contents(self, target, source, env)
Return the signature contents of this action's command line.
  get_implicit_deps(self, target, source, env)
  process(self, target, source, env)
  strfunction(self, target, source, env)
    Inherited from _ActionAction
  __call__(self, target, source, env, exitstatfunc, presub, show, execute, chdir)
  print_cmd_line(self, s, target, source, env)
    Inherited from ActionBase
  __add__(self, other)
  __cmp__(self, other)
  __radd__(self, other)
  genstring(self, target, source, env)
  get_executor(self, env, overrides, tlist, slist, executor_kw)
Return the Executor for this Action.
  presub_lines(self, env)

Method Details

execute(self, target, source, env)

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)

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.


Generated by Epydoc 2.1 on Wed Dec 12 09:39:32 2007 http://epydoc.sf.net