[ http://jira.codehaus.org/browse/MNG-2410?page=comments#action_68572 ] 

Olivier Lamy commented on MNG-2410:
-----------------------------------

Hi,
I would like to add some comments on this.
First : sorry if it looks stupid, I'm just a user and not very familiar with 
all maven apis.
But "I have a dream" :-)
I would like to generate some pdf files in my mojo report (for legacy reason I 
need to send pdf files to company/partners how use our apis and I can't expose 
our maven site in public www. Actually I do this with forrest)
For this I image something like SinkFactory.newSink(FileWriter, String 
role-hint).
Using sinkFactory.newSink(FileWriter, "pdf").
SinkFactory could be a component (trouble will break backward compatibilty with 
changing class to interface) with this could be easily reused
Or what I want as role, this could be injected by plexus ? (like text, html 
etc...)

For better use this could be sinkFactory.newSink(FileWriter, String role-hint, 
Artifact skin, Properties).

I think skin is defined as an artifact ?
pros :
- users can easily defined their own way to write documentation
- probably could use be in site generation (<item name="" href="" 
generatePdf="true"/> this generate pdf file and add a simple link to it in the 
html view.
cons :
- nothing :-)
- As I'm not familiar with doxia apis I can't image all jobs to do

It's just a user idea, you can add comment and explain to me why it's crasy or 
give some pointers to explain how it's possible to do this 

--
Olivier

> adding a method in AbstractMavenReport to obtain newSink()
> ----------------------------------------------------------
>
>          Key: MNG-2410
>          URL: http://jira.codehaus.org/browse/MNG-2410
>      Project: Maven 2
>         Type: New Feature

>   Components: Sites & Reporting
>     Versions: 2.0.4
>  Environment: all
>     Reporter: Olivier Lamy

>
>
> Actually when extending AbstractMavenReport, I can get a Sink for write only 
> one page.
> For report, I need to create some pages.
> I like to have a new method called newSink(FileWriter) to write some other 
> pages.
> Or could we have a SinkFactory object injected in AbstractMavenReport ?
> Note, I need a Sink with the current site skin.
> Thanks,
> --
> Olivier

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to