daveb 00/11/16 18:26:52
Modified: src/java/org/apache/velocity/runtime/directive Parse.java
Log:
Replaced calls to Runtime.getString()
Revision Changes Path
1.3 +3 -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.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Parse.java 2000/11/16 01:57:28 1.2
+++ Parse.java 2000/11/17 02:26:51 1.3
@@ -59,6 +59,7 @@
import org.apache.velocity.runtime.parser.*;
import org.apache.velocity.Context;
import org.apache.velocity.Template;
+import org.apache.velocity.runtime.configuration.*;
import org.apache.velocity.runtime.Runtime;
import org.apache.velocity.runtime.parser.node.Node;
import org.apache.velocity.runtime.parser.node.SimpleNode;
@@ -82,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.2 2000/11/16 01:57:28 jvanzyl Exp $
+ * @version $Id: Parse.java,v 1.3 2000/11/17 02:26:51 daveb Exp $
*/
public class Parse extends Directive
{
@@ -219,7 +220,7 @@
* see if we have exceeded the configured depth. If it isn't configured,
put a stop at 20 just in case.
*/
- if (iParseDepth_ >= Runtime.getInt("parse_directive.maxdepth", 20))
+ if (iParseDepth_ >= VelocityResources.getInt("parse_directive.maxdepth",
20))
throw new ParseDirectiveException("Max recursion depth reached.",
iParseDepth_);
return;