jon         00/10/15 14:16:31

  Modified:    src/java/org/apache/velocity/runtime Runtime.java
  Log:
  added getString default value
  added a default content type
  
  Revision  Changes    Path
  1.16      +11 -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.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Runtime.java      2000/10/15 20:28:24     1.15
  +++ Runtime.java      2000/10/15 21:16:30     1.16
  @@ -159,10 +159,13 @@
   
       /** Initial counter value in #foreach directives */
       public static final String COUNTER_NAME = "counter.name";
  -    
  +
       /** Initial counter value in #foreach directives */
       public static final String COUNTER_INITIAL_VALUE = "counter.initial.value";
   
  +    /** Initial counter value in #foreach directives */
  +    public static final String DEFAULT_CONTENT_TYPE = "default.contentType";
  +
       /** How often to check for modified templates. */
       public static final String TEMPLATE_MOD_CHECK_INTERVAL = 
           "template.modificationCheckInterval";
  @@ -341,6 +344,13 @@
       public static String getString(String property)
       {
           return Configuration.getString(property);    
  +    }
  +    /**
  +     * Get a string property. with a default value
  +     */
  +    public static String getString(String property, String defaultValue)
  +    {
  +        return Configuration.getString(property, defaultValue);    
       }
   
       private static void log(String message)
  
  
  

Reply via email to