velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Zeckoski" <aar...@vt.edu>
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?

Thanks
-AZ


-- 
Aaron Zeckoski (aaronz@vt.edu)
Senior Research Engineer - CARET - Cambridge University
[http://bugs.sakaiproject.org/confluence/display/~aaronz/]
Sakai Fellow - [http://aaronz-sakai.blogspot.com/]

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message