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

synchronized boolean edu::neu::ccs::jmk::Make::make ( String[]  targets  )  throws CommandFailedException [inline]

This is the main entry point for starting a make run. It invokes the make method of the appropriate rules, and then resets any rule used during the make run.

Parameters:
targets a list of targets to be made
Exceptions:
CommandFailedException if make failed

Definition at line 271 of file Make.java.

References interrupt.

Referenced by main(), and readAndMake().

  {
    interrupt = false;
    if (targets.length == 0)
      targets = new String[] { defaultTarget };
    try {
      boolean made = false;
      for (int i = 0; i < targets.length; i++)
      if (get(targets[i]).make())
        made = true;
      return made;
    }
    finally {                 // Make sure rules get reset even when
      for (int i = 0; i < targets.length; i++) // there is a failure
      get(targets[i]).reset();
      interrupt = false;
    }
  }


Generated by  Doxygen 1.6.0   Back to index