velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Zeckoski" <>
Subject Escaping invalid references?
Date Wed, 09 May 2007 09:20:55 GMT
I am having trouble with velocity not escaping some references in a
maven.xml file which I am processing with velocity.

Here is the offending bit (there are others like it):
<j:if test="${dep.getProperty('explode') == 'true'}">

I tried escaping it like this:
<j:if test="\${dep.getProperty('explode') == 'true'}">

But I get this error message either way:
org.apache.velocity.exception.ParseErrorException: Encountered " ==
\'true\'}\">\r\n        <j:if test=\"" at line 12, column 48.
Was expecting one of:
    "}" ...
    <DOT> ...
    ERROR: Could not process velocity template: maven.xml

Ideally I want velocity to just ignore this entire line and output it
as is. Is there a way I can get that result?


Aaron Zeckoski (
Senior Research Engineer - CARET - Cambridge University
Sakai Fellow - []

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message