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

static void edu::neu::ccs::jmk::awt::MakeWindow::main ( String[]  args  )  [inline, static]

A main entry point for running Make in a window. The first arg is the name of the makefile and the remaining args are the initial targets.

Definition at line 548 of file MakeWindow.java.

References edu::neu::ccs::jmk::Make::setFile().

                                         {
    try {
      Make make = new Make();
      if (args.length > 0) {
      String[] targets = new String[args.length - 1];
      for (int i = 0; i < targets.length; i++)
        targets[i] = args[i + 1];
      make.setFile(new File(args[0]));
      MakeWindow.createMakeWindow(make, targets);
      }
      else {
      System.out.println("Usage: java " + MakeWindow.class.getName() +
                     " makefile [ target ]*");
      System.exit(1);
      }
    }
    catch (Throwable t) {
      System.err.println("Internal error: " + t.getMessage());
      t.printStackTrace();
      System.exit(1);
    }
  }


Generated by  Doxygen 1.6.0   Back to index