tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/util ExtensionValidator.java
Date Sat, 02 Aug 2003 17:40:31 GMT
remm        2003/08/02 10:40:31

  Modified:    catalina/src/share/org/apache/catalina/util
                        ExtensionValidator.java
  Log:
  - Tomcat will now ignore a non existent classpath JAR.
  
  Revision  Changes    Path
  1.7       +17 -8     jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/util/ExtensionValidator.java
  
  Index: ExtensionValidator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/util/ExtensionValidator.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ExtensionValidator.java	31 Jul 2003 20:56:25 -0000	1.6
  +++ ExtensionValidator.java	2 Aug 2003 17:40:30 -0000	1.7
  @@ -119,8 +119,12 @@
       private static HashMap containerAvailableExtensions = null;
       private static ArrayList containerManifestResources = null;
       private static ResourceBundle messages = null;
  -    
  -    /*
  +
  +
  +    // ----------------------------------------------------------- Constructors
  +
  +
  +    /**
        *  Access to this class can only be made through the factory method
        *  getInstance()
        *
  @@ -144,7 +148,10 @@
           while (strTok.hasMoreTokens()) {
               String classpathItem = strTok.nextToken();
               if (classpathItem.toLowerCase().endsWith(".jar")) {
  -                addSystemResource(new File(classpathItem));
  +                File item = new File(classpathItem);
  +                if (item.exists()) {
  +                    addSystemResource(item);
  +                }
               }
           }
   
  @@ -168,8 +175,10 @@
           }
       }
   
  +
       // --------------------------------------------------------- Public Methods
  -        
  +
  +
       /**
        * Runtime validation of a Web Applicaiton.
        *
  
  
  

Mime
View raw message