velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: Escaping invalid references?
Date Wed, 09 May 2007 16:06:25 GMT
#set( $d = '$' )

<j:if test="${d}{dep.getProperty('explode') == 'true'}">

On 5/9/07, Aaron Zeckoski <aaronz@vt.edu> wrote:
> 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
>
>

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


Mime
View raw message