[prev in list] [next in list] [prev in thread] [next in thread] 

List:       maven-dev
Subject:    Re: multi-page reports
From:       Steffen Pingel <steffenp () gmx ! de>
Date:       2005-12-06 23:36:42
Message-ID: 200512070036.42790.steffenp () gmx ! de
[Download RAW message or body]

Hi,

> I never used it but a class already exist in the API to support multi
> page report:
> AbstractMavenMultiPageReport

We tried using the class but it requires a SinkFactory object that only 
site-plugin could provide but currently does not. Have a look at  
SiteMojo.generateReportsPages() where the sink is initialized, this needs to 
be done for each page that is generated.

Defining a MavenMultiPageReport interface would help:

 void generate( SinkFactory sinkFactory, Locale locale )
        throws MavenReportException;

That way report plugins could create as many sinks (and pages) as required.

Another possibility that comes to mind is to create a bunch of xdocs files and 
tell the site-plugin about their location (similar to the maven1 
target/generated-xdocs directory).

Comments?

Steffen

-- 
Steffen Pingel - steffenp@gmx.de - http://steffenpingel.de

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic