Re: APT: Issue with adding xml code snippets as Verbatim

2011-09-22 Thread Lukas Theussl
Try to only escape the '$' character, see http://velocity.apache.org/engine/devel/user-guide.html#escapinginvalidvtlreferences HTH, -Lukas On 09/23/2011 12:12 AM, Params wrote: Thanks Robert, I tried couple of combinations and found this to work: #set($varline = '${wf:errorCode("wordcount")

RE: APT: Issue with adding xml code snippets as Verbatim

2011-09-22 Thread Params
Thanks Robert, I tried couple of combinations and found this to work: #set($varline = '${wf:errorCode("wordcount")}') ${varline} However, the display text I now get as html is: ${wf:errorCode("wordcount")} Is there a way, I can get the wordcount inside single quotes? Following three combinati

RE: APT: Issue with adding xml code snippets as Verbatim

2011-09-22 Thread Robert Scholte
The inner or outer single quotes should be double quotes or escape the inner ones.Now it's $varline = '${wf:errorCode('followed by noise -Robert > Date: Thu, 22 Sep 2011 14:53:55 -0700 > From: parame...@gmail.com > To: users@maven.apache.org > Subject: RE: APT:

RE: APT: Issue with adding xml code snippets as Verbatim

2011-09-22 Thread Params
Hi Robert, I tried storing the value of the function into a variable and print it (following the example diff file you had posted). Below is my .apt snippet. -- mapred.job.queue.name

RE: APT: Issue with adding xml code snippets as Verbatim

2011-09-22 Thread Robert Scholte
Hi, I had to do a trick to resolve this for the maven-eclipse-plugin documentation [1]It's related to VELOCITY-743 The idea is to assign the "complex" value to a variable, next print that variable. -Robert [1] http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/site/apt/ex