Angeshwar Deepak wrote:
> Hi,
>
> Is there any way to pass a value of property
> to a site.xml file.
>
> Something like
>
> <site label="ForrestArticle" href=""
> xmlns="http://apache.org/forrest/linkmap/1.0" tab="">
> <about label="Juna">
> <level2 label="${component}">
> <logmessages label="Logmessages"
> href="messages/logmessages.html"
> ....
> ....
>
> Instead of
>
> <site label="ForrestArticle" href=""
> xmlns="http://apache.org/forrest/linkmap/1.0" tab="">
> <about label="Juna">
> <level2 label="logging">
> <logmessages label="Logmessages"
> href="messages/logmessages.html"
> ....
> ....
>
> The value of property component is in my build file
> and I want
> to pass that value to the site instead of explicitly
> specifying it.
> In short I want my site.xml to behave like a build
> file.
> Is it possible to do such an approch?
>
> bye,
> with regards,
> Deepak.
>
>
You can have a preprocessing step that copies the file using ant's copy
task and replacing tokens (eg @FOOBAR@) or use an XSLT stylesheet to
transform the file.
--
Dave Brondsema : dave@brondsema.net
http://www.splike.com : programming
http://csx.calvin.edu : student org
http://www.brondsema.net : personal
|