jvanzyl     00/11/27 16:21:07

  Modified:    src/java/org/apache/velocity/runtime/directive Include.java
                        Parse.java
  Log:
  - Removing the direct access to VelocityResources, and make
    use of the Velocity Runtime as the single access point to
    properties.
  
  Revision  Changes    Path
  1.6       +3 -3      
jakarta-velocity/src/java/org/apache/velocity/runtime/directive/Include.java
  
  Index: Include.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/directive/Include.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Include.java      2000/11/27 23:57:38     1.5
  +++ Include.java      2000/11/28 00:21:03     1.6
  @@ -93,7 +93,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Geir Magnusson Jr.</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
  - * @version $Id: Include.java,v 1.5 2000/11/27 23:57:38 jvanzyl Exp $
  + * @version $Id: Include.java,v 1.6 2000/11/28 00:21:03 jvanzyl Exp $
    */
   public class Include extends Directive
   {
  @@ -265,8 +265,8 @@
       private void outputErrorToStream( Writer writer, String msg )
           throws IOException
       {
  -        String strOutputMsgStart = VelocityResources.getString( ERRORMSG_START);
  -        String strOutputMsgEnd = VelocityResources.getString( ERRORMSG_END );
  +        String strOutputMsgStart = Runtime.getString( ERRORMSG_START);
  +        String strOutputMsgEnd = Runtime.getString( ERRORMSG_END );
           
           if ( strOutputMsgStart != null  && strOutputMsgEnd != null)
           {
  
  
  
  1.5       +2 -2      
jakarta-velocity/src/java/org/apache/velocity/runtime/directive/Parse.java
  
  Index: Parse.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/directive/Parse.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Parse.java        2000/11/27 23:57:40     1.4
  +++ Parse.java        2000/11/28 00:21:04     1.5
  @@ -83,7 +83,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Geir Magnusson Jr.</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
  - * @version $Id: Parse.java,v 1.4 2000/11/27 23:57:40 jvanzyl Exp $
  + * @version $Id: Parse.java,v 1.5 2000/11/28 00:21:04 jvanzyl Exp $
    */
   public class Parse extends Directive
   {
  @@ -226,7 +226,7 @@
            *  see if we have exceeded the configured depth.  If it isn't configured, 
put a stop at 20 just in case.
            */
   
  -        if (iParseDepth_ >= VelocityResources.getInt("parse_directive.maxdepth", 
20))
  +        if (iParseDepth_ >= Runtime.getInt("parse_directive.maxdepth", 20))
                   throw new ParseDirectiveException("Max recursion depth reached.", 
iParseDepth_);
   
           return;
  
  
  

Reply via email to