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:43:24 UTC

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

hammant     2003/03/01 09:43:24

  Added:       src/bsh  removeApp.bsh
  Log:
  reworked bsh command
  
  Revision  Changes    Path
  1.1                  avalon-phoenix/src/bsh/removeApp.bsh
  
  Index: removeApp.bsh
  ===================================================================
  
  bsh.help.removeApp = "usage: removeApp( appName ), remove an app";
  
  /*
  	By Paul Hammant : Specifically for Phoenix
  */
  removeApp( String appName ) {
  
      kernel = this.interpreter.get("phoenix-kernel");
      kernel.removeApplication(appName);
      print(appName + " removed");    
      
  }
  
  removeApp( int appNo ) {
  
      kernel = this.interpreter.get("phoenix-kernel");
      String[] apps = kernel.getApplicationNames();
      kernel.removeApplication(apps[appNo]);
      print(appName + " removed");    
      
  }
  
  
  
  

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