maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Params <parame...@gmail.com>
Subject RE: APT: Issue with adding xml code snippets as Verbatim
Date Thu, 22 Sep 2011 21:53:55 GMT
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message