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: [email protected]
> To: [email protected]
> Subject: RE: APT: Issue with adding xml code snippets as Verbatim
>
> 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.
>
> --------------------------------------------------------------------------------------
> <configuration>
> <property>
> <name>mapred.job.queue.name</name>
> <value>${queueName}</value>
> </property>
> <property>
> <name>error.message</name>
> <value>#set($varline = '${wf:errorCode('wordcount')}')
> ${varline}</value>
> </property>
> </configuration>
> --------------------------------------------------------------------------------------
>
>
>
> I still get the parse exception, this time it says:
>
> [ERROR] org.apache.velocity.runtime.parser.ParseException: Encountered
> "wordcount" at line 11, column 53.
> Was expecting one of:
> <RPAREN> ...
> <WHITESPACE> ...
> "-" ...
> "+" ...
> "*" ...
> "/" ...
> "%" ...
> <LOGICAL_AND> ...
> <LOGICAL_OR> ...
> <LOGICAL_LT> ...
> <LOGICAL_LE> ...
> <LOGICAL_GT> ...
> <LOGICAL_GE> ...
> <LOGICAL_EQUALS> ...
> <LOGICAL_NOT_EQUALS> ...
>
> Thanks,
> Params
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/APT-Issue-with-adding-xml-code-snippets-as-Verbatim-tp4831524p4831623.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>