[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-dev
Subject:    cvs commit: jakarta-velocity/src/java/org/apache/velocity/runtime Runtime.java
From:       jvanzyl () apache ! org
Date:       2001-03-26 4:18:52
[Download RAW message or body]

jvanzyl     01/03/25 20:18:52

  Modified:    src/java/org/apache/velocity/app Velocity.java
               src/java/org/apache/velocity/runtime Runtime.java
  Log:
  - adding clearProperty() to both the runtime and velocity helper class.
  
  Revision  Changes    Path
  1.11      +11 -1     jakarta-velocity/src/java/org/apache/velocity/app/Velocity.java
  
  Index: Velocity.java
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/app/Velocity.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Velocity.java	2001/03/25 22:58:19	1.10
  +++ Velocity.java	2001/03/26 04:18:51	1.11
  @@ -102,7 +102,7 @@
    * @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>
    * @author <a href="Christoph.Reck@dlr.de">Christoph Reck</a>
    * @author <a href="jvanzyl@apache.org">Jason van Zyl</a>
  - * @version $Id: Velocity.java,v 1.10 2001/03/25 22:58:19 jvanzyl Exp $
  + * @version $Id: Velocity.java,v 1.11 2001/03/26 04:18:51 jvanzyl Exp $
    */
   
   public class Velocity implements RuntimeConstants
  @@ -170,6 +170,16 @@
       {
           Runtime.addProperty(key,value);
       }
  +
  +    /**
  +     * Clear a Velocity Runtime property.
  +     *
  +     * @param key of property to clear
  +     */
  +    public static void clearProperty(String key)
  +    {
  +        Runtime.clearProperty(key);
  +    }        
   
       /**
        * Set an entire configuration at once. This is
  
  
  
  1.105     +15 -1     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.104
  retrieving revision 1.105
  diff -u -r1.104 -r1.105
  --- Runtime.java	2001/03/25 22:57:55	1.104
  +++ Runtime.java	2001/03/26 04:18:52	1.105
  @@ -142,7 +142,7 @@
    * @author <a href="mailto:jvanzyl@periapt.com">Jason van Zyl</a>
    * @author <a href="mailto:jlb@houseofdistraction.com">Jeff Bowden</a>
    * @author <a href="mailto:geirm@optonline.net">Geir Magusson Jr.</a>
  - * @version $Id: Runtime.java,v 1.104 2001/03/25 22:57:55 jvanzyl Exp $
  + * @version $Id: Runtime.java,v 1.105 2001/03/26 04:18:52 jvanzyl Exp $
    */
   public class Runtime implements RuntimeConstants
   {    
  @@ -347,6 +347,20 @@
           }            
               
           overridingProperties.addProperty( key, value );
  +    }
  +    
  +    /**
  +     * Clear the values pertaining to a particular
  +     * property.
  +     *
  +     * @param String key of property to clear
  +     */
  +    public static void clearProperty(String key)
  +    {
  +        if (overridingProperties != null)
  +        {
  +            overridingProperties.clearProperty(key);
  +        }            
       }
       
       /**
  
  
  

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic