forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angeshwar Deepak <angesh...@yahoo.com>
Subject Re: How to use a conditional/loop within site.xml?+slightly complex
Date Thu, 05 Aug 2004 09:35:21 GMT
Hi,

Thanks for the reply. However in my case, I have a set
of directories like
c:\x\logging
c:\x\appintegration
....

c:\y\logging
c:\y\appintegration
....

c:\z\logging
c:\z\appintegration
....

In the end I will be running the forrest from c:\test
and I will have a sites generated at
c:\site\x\index.html
c:\site\y\index.html
c:\site\z\index.html

Under the directory site, I will have subfolders x,
y,z. Under each of the subfolders x,y,z -I will have
the directories - logging, appintegration etc.

In the forrest.build file the directories like x, y, z
are replced by a property ${component} so that forrest
runs generically and there by generating a site for
each folder x, y, z,

In these directories x,y,z some may have logging,
appintegration etc, and some maynot. But still I will
be having only 1 site.xml for all the seperately build
sites. So how can I make it in sch a way that for each
instance of site, a check is made at ${component}
folder for the presence of folders logging,
appintegration etc. If found, then the corresponding
html file will be generated and taken to the
corresponding site\{component}\logging or 
site\{component}\appintegration directory.

bye,
with regards,
Deepak.

--- Nicola Ken Barozzi <nicolaken@apache.org> wrote:

> 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)
>
---------------------------------------------------------------------
> 
> 



	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

Mime
View raw message