|
From: wolfgang h. <no....@ha...> - 2005-08-21 13:30:57
|
Greetings,
I'm writing a plugin which, amongst other things, shall map
Maven properties into a "Java"-style property file.
For example:
<project>
..
<artifactId>hello-maven-plugin</artifactId>
..
</project>
shall be mapped into
# project's artifact name
project.artifact = hello-maven-plugin
Now I'm a bit stuck since I can't tell my Jelly scripts to put
the "newline" character where I want to have it.
For example,
<j:jelly
xmlns:j="jelly:core"
xmlns:x="jelly:xml"
>
# project name
project.name = ${pom.artifactId}
</j:jelly>
just produces ..
# project name project.name = ${pom.artifactId}
A kind of workaround would be to put artificial 'newline chars'
into the output stream and replace them in a second run by '\n'.
However, is there a better way to generate a non-XML document
in Jelly?
Cheers,
Wolfgang.
|