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/common jk_config.c
Date Mon, 28 Oct 2002 19:09:26 GMT
mturk       2002/10/28 11:09:26

  Modified:    jk/native2/common jk_config.c
  Log:
  Simple patch that allows setting quasi-environment variables that
  will be resolved later in the config.
  If the option name starts with $ like $TOMCAT_HOME=/some/path
  then that will be set to the cfg->map and resolved later in the config.
  Keeps the config smaller and requires no reboot.
  
  Revision  Changes    Path
  1.28      +7 -2      jakarta-tomcat-connectors/jk/native2/common/jk_config.c
  
  Index: jk_config.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_config.c,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- jk_config.c	8 Jul 2002 13:40:54 -0000	1.27
  +++ jk_config.c	28 Oct 2002 19:09:25 -0000	1.28
  @@ -157,10 +157,15 @@
           strcat( pname, "." );
           strcat( pname, name );
       }
  -
  +    
       name= cfg->pool->pstrdup( env, cfg->pool, name );
       val= cfg->pool->pstrdup( env, cfg->pool, val );
  -    
  +
  +    if (strlen(name) && *name == '$') {
  +        cfg->map->put(env, cfg->map, name + 1, val, NULL);
  +        return JK_OK;
  +    }
  +
       /** Save it on the config. XXX no support for deleting yet */
       /* The _original_ value. Will be saved with $() in it */
       if( mbean->settings == NULL )
  
  
  

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


Mime
View raw message