jon         00/12/17 14:10:58

  Modified:    src/java/org/apache/velocity/runtime Runtime.java
  Log:
  lowercase things so that case isn't an issue
  
  Revision  Changes    Path
  1.71      +4 -4      
jakarta-velocity/src/java/org/apache/velocity/runtime/Runtime.java
  
  Index: Runtime.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/Runtime.java,v
  retrieving revision 1.70
  retrieving revision 1.71
  diff -u -r1.70 -r1.71
  --- Runtime.java      2000/12/17 22:05:42     1.70
  +++ Runtime.java      2000/12/17 22:10:57     1.71
  @@ -154,7 +154,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Jeff Bowden</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Geir Magusson Jr.</a>
  - * @version $Id: Runtime.java,v 1.70 2000/12/17 22:05:42 jon Exp $
  + * @version $Id: Runtime.java,v 1.71 2000/12/17 22:10:57 jon Exp $
    */
   public class Runtime implements RuntimeConstants
   {    
  @@ -604,9 +604,9 @@
                    * template.loader.1.template.path and the translated
                    * name would be used to set the property.
                    */
  -                if (property.equals("public.name"))
  +                if (property.equalsIgnoreCase("public.name"))
                   {
  -                    sourceInitializerMap.put(value, sourceInitializer);
  +                    sourceInitializerMap.put(value.toLowerCase(), 
sourceInitializer);
                   }
               }    
               sourceInitializerList.add(sourceInitializer);
  @@ -699,7 +699,7 @@
       {
           String publicName = key.substring(0, key.indexOf("."));
           String property = key.substring(key.indexOf(".") + 1);
  -        ((Map)sourceInitializerMap.get(publicName)).put(property, value);
  +        ((Map)sourceInitializerMap.get(publicName.toLowerCase())).put(property, 
value);
       }
   
       /**
  
  
  

Reply via email to