remm        2004/07/28 03:30:10

  Modified:    catalina/src/share/org/apache/catalina/startup
                        HostConfig.java
  Log:
  - Add a filter to only remove .xml files from configBase (the default config is there
    as well).
  - I think I'll rework this and add a third hashmap, containing the resources which 
are
    actually controlled by Tomcat (it's a slightly different set than the resources 
which
    should cause a redeployment).
  
  Revision  Changes    Path
  1.42      +3 -2      
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/HostConfig.java
  
  Index: HostConfig.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/HostConfig.java,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- HostConfig.java   27 Jul 2004 17:53:15 -0000      1.41
  +++ HostConfig.java   28 Jul 2004 10:30:10 -0000      1.42
  @@ -987,7 +987,8 @@
                           File current = new File(resources2[j]);
                           current = current.getCanonicalFile();
                           if 
((current.getAbsolutePath().startsWith(appBase().getAbsolutePath()))
  -                            || 
(current.getAbsolutePath().startsWith(configBase().getAbsolutePath()))) {
  +                            || 
((current.getAbsolutePath().startsWith(configBase().getAbsolutePath())
  +                                 && (current.getAbsolutePath().endsWith(".xml"))))) 
{
                               if (log.isDebugEnabled())
                                   log.debug("Delete " + current);
                               ExpandWar.delete(current);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to