Author: henning
Date: Sun Oct 30 10:49:26 2005
New Revision: 329600
URL: http://svn.apache.org/viewcvs?rev=329600&view=rev
Log:
Sigh. Make gump happy and compile dvsl with both old (1.3, 1.4) and
new (1.5-dev) Velocity core.
Modified:
jakarta/velocity/dvsl/trunk/src/java/org/apache/tools/dvsl/directive/MatchDirective.java
Modified:
jakarta/velocity/dvsl/trunk/src/java/org/apache/tools/dvsl/directive/MatchDirective.java
URL:
http://svn.apache.org/viewcvs/jakarta/velocity/dvsl/trunk/src/java/org/apache/tools/dvsl/directive/MatchDirective.java?rev=329600&r1=329599&r2=329600&view=diff
==============================================================================
---
jakarta/velocity/dvsl/trunk/src/java/org/apache/tools/dvsl/directive/MatchDirective.java
(original)
+++
jakarta/velocity/dvsl/trunk/src/java/org/apache/tools/dvsl/directive/MatchDirective.java
Sun Oct 30 10:49:26 2005
@@ -92,13 +92,13 @@
* what is our arg?
*/
- Node n = node.jjtGetChild(0);
+ Node n = (SimpleNode) node.jjtGetChild(0);
if ( n.getType() == ParserTreeConstants.JJTSTRINGLITERAL)
{
try
{
- String element =(String) node.jjtGetChild(0).value( context );
+ String element =(String)((SimpleNode)
node.jjtGetChild(0)).value( context );
TemplateHandler th = (TemplateHandler)
rsvc.getApplicationAttribute("org.apache.tools.dvsl.TemplateHandler");
th.registerMatch( element, (SimpleNode) node.jjtGetChild(
node.jjtGetNumChildren() - 1 ) );
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]