forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: How to use a conditional/loop within site.xml?
Date Thu, 05 Aug 2004 09:00:00 GMT
Angeshwar Deepak wrote:
> Hi,
> 
> In my site.xml I have something like this
> 
> ....
> ....
> <about label="Juna">
> <level2 label="component">
> 	<checkstyle label="Checkstyle Report"
> href="checkstylereport/checkstylereport.html"
> description="Checkstyle Report"/>
> 	<coverage label="Coverage Report"
> href="jcoverage/index.html" 
> 	description="Coverage Report"/>
>         <logmessages label="Logmessages"
> href="messages/logmessages.html"
> description="LogMessage Report"/>
> ....
> ....
> However I may/may not have
> directories/folders-jcoverage or messages etc. i.e I
> will know their presence only at the run time.
> 
> So is there any way to check the presence of a
> directory or file and then follow up the site.xml
> file.

There are two options:

1 - if the report is not done, add a page in it's plac eindicating it 
was not generated

2 - generate site.xml before running Forrest with only the needed items

3 - use a book.xml file in the report dir that contains only the 
generated reports

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Mime
View raw message