Have you tried putting the +1 in the {} brackets?
2005/6/27, [EMAIL PROTECTED] [EMAIL PROTECTED]
:
Hi all,
I'm trying to increment a value in maven.
I tried the follwoing code:
j:set var=inCL value=1/
j:set var=inCL value=${context.getVariable('inCL')}+1/
But this gives me 1+1 as
There was a posting about that some days ago (a follow-up to a different
subject):
http://www.archivum.info/users@maven.apache.org/2005-06/msg00691.html
You need to invoke the respective method of the Java integer object:
j:invokeStatic var=foo className=java.lang.Integer method=parseInt
Gisbert,
Thank you for your help.
Jean-Marc
Extranet
[EMAIL PROTECTED] - 28/06/2005 09:37
Veuillez répondre à users@maven.apache.org
Pour : users
cc :
Objet : Re: increment a value in jelly
There was a posting about that some days ago (a follow-up to a different
subject
Win,
Thank you for your help.
Jean-Marc
Extranet
[EMAIL PROTECTED] - 28/06/2005 08:15
Veuillez répondre à users@maven.apache.org
Pour : users
cc :
Objet : Re: increment a value in jelly
Have you tried putting the +1 in the {} brackets?
2005/6/27, [EMAIL PROTECTED] [EMAIL
Hi all,
I'm trying to increment a value in maven.
I tried the follwoing code:
j:set var=inCL value=1/
j:set var=inCL value=${context.getVariable('inCL')}+1/
But this gives me 1+1 as a string. I would like to get the 1+1= 2.
I should convert the string to the int but I don't know how.
Any