costin      01/07/26 18:07:34

  Modified:    src/share/org/apache/tomcat/modules/config PathSetter.java
  Log:
  Fix the paths for all contexts that are loaded via explicit config
  when tomcat becomes stable ( i.e. all core modules were loaded, and
  tomcat is ready to start )
  
  Revision  Changes    Path
  1.7       +13 -0     
jakarta-tomcat/src/share/org/apache/tomcat/modules/config/PathSetter.java
  
  Index: PathSetter.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/config/PathSetter.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- PathSetter.java   2001/03/25 21:53:14     1.6
  +++ PathSetter.java   2001/07/27 01:07:34     1.7
  @@ -196,6 +196,19 @@
            log( " work=" + workDir);
       }
   
  +    public void engineState( ContextManager cm , int state )
  +     throws TomcatException
  +    {
  +     if( state!=ContextManager.STATE_CONFIG ) return;
  +     Enumeration ctxsE= cm.getContexts();
  +     while( ctxsE.hasMoreElements() ) {
  +         // Set the paths - we do this in advanced, at this stage we should be
  +         // ready to do so.
  +         Context context=(Context)ctxsE.nextElement();
  +         addContext( cm, context);
  +     }
  +    }
  +    
       /** Adjust paths for a context - make the base and all loggers
        *  point to canonical paths.
        */
  
  
  

Reply via email to