You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Olivier Lamy <ol...@accor.com> on 2005/11/21 13:29:42 UTC

[m2] mojo report (sink mandatory content ?)

Hi,
I have a question concerning doxia Sink in report Mojo.
Is there any mandatory content in Sink ?
Actually I try the very simple :
Sink sink = getSink();
sink.head();
sink.text("Test Report");
sink.head_();
sink.body();
sink.text("test");
sink.body_();
sink.flush();
sink.close();	

As I understand the html page will be getOutputName() . html ?
Or I have probably forgot content in the sink.

My pom has dependency :
    <dependency>
      <groupId>doxia</groupId>
      <artifactId>doxia-sink-api</artifactId>
      <version>1.0-alpha-4</version>
    </dependency> 

Thanks for help,
- Olivier



This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
********************************************************************** 
Ce message electronique et tous les fichiers joints ainsi que  les informations contenues dans ce message ( ci apres "le message" ), sont confidentiels et destines exclusivement a l'usage de la  personne a laquelle ils sont adresses. Si vous avez recu ce message par erreur, merci  de le renvoyer a son emetteur et de le detruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressement autorisees de ce message, sont interdites.
********************************************************************** 


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


RE : [m2] mojo report (sink mandatory content ?)

Posted by Olivier Lamy <ol...@accor.com>.
Ok sorry.
I didn't know what made isExternalReport().
Now I'm really sure ;-)

- Olivier

-----Message d'origine-----
De : Olivier Lamy [mailto:olivier.lamy@accor.com] 
Envoyé : lundi 21 novembre 2005 13:30
À : Maven Users List
Objet : [m2] mojo report (sink mandatory content ?)


Hi,
I have a question concerning doxia Sink in report Mojo.
Is there any mandatory content in Sink ?
Actually I try the very simple :
Sink sink = getSink();
sink.head();
sink.text("Test Report");
sink.head_();
sink.body();
sink.text("test");
sink.body_();
sink.flush();
sink.close();	

As I understand the html page will be getOutputName() . html ? Or I have
probably forgot content in the sink.

My pom has dependency :
    <dependency>
      <groupId>doxia</groupId>
      <artifactId>doxia-sink-api</artifactId>
      <version>1.0-alpha-4</version>
    </dependency> 

Thanks for help,
- Olivier



This e-mail, any attachments and the information contained therein
("this message") are confidential and intended solely for the use of the
addressee(s). If you have received this message in error please send it
back to the sender and delete it. Unauthorized publication, use,
dissemination or disclosure of this message, either in whole or in part
is strictly prohibited.
********************************************************************** 
Ce message electronique et tous les fichiers joints ainsi que  les
informations contenues dans ce message ( ci apres "le message" ), sont
confidentiels et destines exclusivement a l'usage de la  personne a
laquelle ils sont adresses. Si vous avez recu ce message par erreur,
merci  de le renvoyer a son emetteur et de le detruire. Toutes
diffusion, publication, totale ou partielle ou divulgation sous quelque
forme que se soit non expressement autorisees de ce message, sont
interdites.
********************************************************************** 


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


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


Re: [m2] mojo report (sink mandatory content ?)

Posted by David Sag <ds...@epo.org>.
Or, as I have just discovered, (thanks brett), if your report implements 
isExternalReport() by returning true then you need not use the sink at 
all, but can generate the whole page / pages you want directly.

You are right tho - the page will be named getOutputName() + ".html"

Kind regards,
Dave Sag 




 

"Olivier Lamy" <ol...@accor.com> wrote on 21-11-2005 13:29:42:

> Hi,
> I have a question concerning doxia Sink in report Mojo.
> Is there any mandatory content in Sink ?
> Actually I try the very simple :
> Sink sink = getSink();
> sink.head();
> sink.text("Test Report");
> sink.head_();
> sink.body();
> sink.text("test");
> sink.body_();
> sink.flush();
> sink.close(); 
> 
> As I understand the html page will be getOutputName() . html ?
> Or I have probably forgot content in the sink.
> 
> My pom has dependency :
>     <dependency>
>       <groupId>doxia</groupId>
>       <artifactId>doxia-sink-api</artifactId>
>       <version>1.0-alpha-4</version>
>     </dependency> 
> 
> Thanks for help,
> - Olivier
> 
> 
> 
> This e-mail, any attachments and the information contained therein 
> ("this message") are confidential and intended solely for the use of
> the addressee(s). If you have received this message in error please 
> send it back to the sender and delete it. Unauthorized publication, 
> use, dissemination or disclosure of this message, either in whole or
> in part is strictly prohibited.
> ********************************************************************** 
> Ce message electronique et tous les fichiers joints ainsi que  les 
> informations contenues dans ce message ( ci apres "le message" ), 
> sont confidentiels et destines exclusivement a l'usage de la 
> personne a laquelle ils sont adresses. Si vous avez recu ce message 
> par erreur, merci  de le renvoyer a son emetteur et de le detruire. 
> Toutes diffusion, publication, totale ou partielle ou divulgation 
> sous quelque forme que se soit non expressement autorisees de ce 
> message, sont interdites.
> ********************************************************************** 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>