You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by je...@bnpparibas.com on 2005/06/29 17:06:41 UTC
Réf. : plugin junit report - junit.jsl
Hi all,
I finally find a way to use the tag <doc:formatAsNumber string="${myVar}"
pattern="0"/> with my own variable.
For an obscure reason if I do:
<j:set var="myVar"
value="${context.getVariable('myVar')+context.getVariable('testCount')}"/>
<j:set var="myVar">${myVar}</j:set>
<doc:formatAsNumber string="${myVar}" pattern="0"/>
The method formatAsNumber will correctly format my value.
However this will not:
<j:set var="myVar"
value="${context.getVariable('myVar')+context.getVariable('testCount')}"/>
<doc:formatAsNumber string="${myVar}" pattern="0"/>
Does anybody have an idea because I miss the point.
Jean-Marc
29/06/2005 10:56 Jean-Marc BOTTIN
Assistant extérieur
tel : 01 55 74 47 66
------------------------------------------------------------
Pour : users
cc :
Objet : plugin junit report - junit.jsl
Hi,
I am currently working on modified version of the junit-report plugin in
order to match our specific needs.
i am modifing the junit.jsl and a tried to have some of my variables
formatted using the syntax which is already in the jsl.
<doc:formatAsNumber string="${timeCount}" pattern="0.00"/>
I tried to replace "timeCount" by one of my varaible. The funny thing is if
I do:
<td>
<doc:formatAsNumber string="${myVar}" pattern="0"/>
</td>
It will not work, it doesn't output anything, if I do:
<td>myVar</td> I get my variable displayed in the HTLM report generated.
Could someone explain to me why the tag doc:formatAsNumber doesn't work
with the variables I just created?
Thanks,
Jean-Marc
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
---------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org