Hi,

I am using the APT documentation tool to add a page for my project.
I tried to add the following snippet of xml into my .apt source file inside
a 'verbatim' block.

--------------------------------------------------------------------------------------------
<configuration>
        <property>
            <name>mapred.job.queue.name</name>
            <value>${queueName}</value>
        </property>
        <property>
            <name>error.message</name>
            <value>Something went wrong:
${wf:errorCode('wordcount')}</value>
        </property>
</configuration>
--------------------------------------------------------------------------------------------

On trying to build the maven project for the site documentation,
$ mvn site

I get the following error:

[ERROR] org.apache.velocity.runtime.parser.ParseException: Encountered
":errorCode(\'wordcount\')}</message>\n    </kill/>\n    <end
name=\'end\'/>\n</workflow-app>\n----------------------------------------------------------------------------------\n\n
 
<<Notes:>>\n\n  <<" at line 134, column 44.
Was expecting one of:
    "}" ...
    <DOT> ...


Observations:
1) It appears that whenever I use any text of the format: 
${wf:errorCode('wordcount')}
APT throws a parse exception (even if its contained in the verbatim block).

2) Other text like ${queueName} seems to work well.

3) I tried escaping the characters - {, $, :, etc.. but it doesnt work
either.

4) I tried using the APT Editor (Eclipse plugin). It does not give any
errors on preview, but publishing the .apt using a 'mvn site' still fails.

Any help with this will be greatly appreciated.

--
Thanks,
Params

--
View this message in context: 
http://maven.40175.n5.nabble.com/APT-Issue-with-adding-xml-code-snippets-as-Verbatim-tp4831524p4831524.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]

Reply via email to