avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: avalon-phoenix/src/bsh printApps.bsh
Date Sat, 01 Mar 2003 17:42:34 GMT
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


Mime
View raw message