tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native2/server/isapi install4iis.js
Date Mon, 26 Apr 2004 17:41:46 GMT
mturk       2004/04/26 10:41:46

  Modified:    jk/native2/server/isapi install4iis.js
  Log:
  Cannot belive I've missed the breaks inside the switch.
  Now the command options are working.
  
  Revision  Changes    Path
  1.3       +10 -5     jakarta-tomcat-connectors/jk/native2/server/isapi/install4iis.js
  
  Index: install4iis.js
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/server/isapi/install4iis.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- install4iis.js	13 Mar 2004 10:38:32 -0000	1.2
  +++ install4iis.js	26 Apr 2004 17:41:46 -0000	1.3
  @@ -327,15 +327,14 @@
   
       this.program = WScript.FullName.toLowerCase();
       this.program = this.program.substr(this.program.lastIndexOf("\\") + 1);
  -//    if (this.program.indexOf("wscript.exe") == -1)
  -//        _DEBUG = false;
  +    if (this.program.indexOf("wscript.exe") == -1)
  +        _DEBUG = false;
       this.script = WScript.ScriptName;
   }
   
   function getopt(args, ostr)
   {
       if (args.optind >= args.argc) {
  -        
           return null;    
       }
       try {
  @@ -422,19 +421,25 @@
       while ((opt = getopt(args, "s:f:d:v:l:h"))) {
           switch (opt) {
               case "s":
  -                params.ServerName = args.optarg;                        
  +                params.ServerName = args.optarg;   
  +                break;                                     
               case "f":
                   params.FilterName = args.optarg;                        
  +                break;                                     
               case "d":
                   params.FilterDesc = args.optarg;                        
  +                break;                                     
               case "l":
                   params.FilterLib  = args.optarg;                        
  +                break;                                     
               case "v":
                   params.WebName    = args.optarg;                        
  +                break;                                     
               case "h":
  +            default:
                   Usage(args);
                   return 0;                        
  -            
  +                break;                                                 
           }        
       }
       TRACE("argc " + args.argc + " optind " + args.optind);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message