Hello,

I have started cherry-picking JsonTemplateLayout from master into
release-2.x. There I was welcomed by a big surprise: documentation infra
between master (AsciiDoc) and release-2.x (Xdoc, Markdown, Velocity) are
totally different. Right now I am busy with (manually?) converting
thousands of lines of AsciiDoc to Xdoc. Though I could not make Velocity
Template literals work. Given the following input

200 #[[{
201 "mdc": "${json:mdcfoo}",
...
218 }]]#

"./mvnw site -DskipTests" produces the following error:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-pdf-plugin:1.2:pdf (pdf) on project log4j:
Error during document generation: Error whenn parsing Velocity file
/home/vy/Projects/log4j2/target/pdf/site.tmp/xdoc/manual/layouts.xml.vm:
Encountered ":mdcfoo}\",\n  \"exception\": {\n    \"exception_class\": \""
at line 201, column 17 of
/home/vy/Projects/log4j2/target/pdf/site.tmp/xdoc/manual/layouts.xml.vm
[ERROR] Was expecting one of:
[ERROR] "}" ...
[ERROR] <DOT> ...

Any ideas on how to fix it? (I prefer to avoid replacing every occurence of
a $ with ${dollar}, for obvious reasons.)

Kind regards.

Reply via email to