You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by ha...@apache.org on 2003/03/01 18:42:34 UTC

cvs commit: avalon-phoenix/src/bsh printApps.bsh

hammant     2003/03/01 09:42:34

  Added:       src/bsh  printApps.bsh
  Log:
  reworked bsh commands
  
  Revision  Changes    Path
  1.1                  avalon-phoenix/src/bsh/printApps.bsh
  
  Index: printApps.bsh
  ===================================================================
  
  bsh.help.printApps = "usage: printApps(), prints a list of apps";
  
  /*
  	By Paul Hammant : Specifically for Phoenix
  */
  printApps() {
  
      kernel = this.interpreter.get("phoenix-kernel");
      String[] apps = kernel.getApplicationNames();
      print("Phoenix is running " + apps.length + " applications..");
      for (int i = 0; i < apps.length; i++) {
        print(i + " " + apps[i]);
      }
      
  }
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org