Logo Search packages:      
Sourcecode: jmk version File versions  Download package

boolean edu::neu::ccs::jmk::Rule::runCommands ( Rule[]  newer,
PrintWriter  out 
) throws CommandFailedException [inline, private]

Runs the commands.

Returns:
true if at least one command ran

Definition at line 274 of file Rule.java.

References edu::neu::ccs::jmk::Make::isInterruptEnabled(), edu::neu::ccs::jmk::Make::isJustPrinting(), and edu::neu::ccs::jmk::Command::run().

  {
    Rule first = null;
    if (prerequisites.length > 0)
      first = prerequisites[0];
    for (int i = 0; i < commands.length; i++) {
      if (make.isInterruptEnabled()) // Poll interrupt status
      throw new CommandFailedException("make interrupted");
      commands[i].run(this, first, newer, match,
                  make.isJustPrinting(), out);
    }
    return commands.length > 0;
  }


Generated by  Doxygen 1.6.0   Back to index