You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ju...@national.com.au on 2005/05/26 03:11:16 UTC
using maven properties/variables in xdocs
Hi all,
I having issues using maven properties/variables in my xdocs. I've created
an xdocs/index.xml that I want to customise based on property values, eg.
<document>
<properties>
<title>About ${myProperty}</title>
</properties>
<body>
<section name="About ${myProperty}">
</section>
</body>
</document>
I would like ${myProperty} to be replaced with the property value, but
instead I see ${myProperty} on the generated html page. Is there a way I
can acheive this?
cheers,
Justin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: using maven properties/variables in xdocs
Posted by Kenney Westerhof <fo...@neonics.com>.
On Thu, 26 May 2005 Justin_Freitag@national.com.au wrote:
You could create a maven.xml task that uses ant copy using filtering
to copy the xdocs/ dir to target/generated-docs (or something)
and possibly setting the xdoc document location to the new location.
If you use ant filtering you should use @token@ style variables in the
document, or create a jelly script that reads the xml document as a script
while filling in the ${variables} and write it somewhere (i've done it so
it's possible)..
-- Kenney
> Hi all,
>
> I having issues using maven properties/variables in my xdocs. I've created
> an xdocs/index.xml that I want to customise based on property values, eg.
>
> <document>
> <properties>
> <title>About ${myProperty}</title>
> </properties>
>
> <body>
> <section name="About ${myProperty}">
> </section>
> </body>
> </document>
>
>
> I would like ${myProperty} to be replaced with the property value, but
> instead I see ${myProperty} on the generated html page. Is there a way I
> can acheive this?
>
> cheers,
> Justin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: using maven properties/variables in xdocs
Posted by Jamie Bisotti <jb...@gmail.com>.
This can't currnetly be done. Search JIRA, there's an issue filed
somewhere; probably agains xdoc plugin.
On 5/25/05, Justin_Freitag@national.com.au
<Ju...@national.com.au> wrote:
> Hi all,
>
> I having issues using maven properties/variables in my xdocs. I've created
> an xdocs/index.xml that I want to customise based on property values, eg.
>
> <document>
> <properties>
> <title>About ${myProperty}</title>
> </properties>
>
> <body>
> <section name="About ${myProperty}">
> </section>
> </body>
> </document>
>
>
> I would like ${myProperty} to be replaced with the property value, but
> instead I see ${myProperty} on the generated html page. Is there a way I
> can acheive this?
>
> cheers,
> Justin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Jamie Bisotti
Software Engineer
Lexmark International, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org