Re: increment a value in jelly

2005-06-28 Thread Wim Deblauwe
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 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 ideas?
 
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: increment a value in jelly

2005-06-28 Thread Gisbert Amm
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
j:arg type=java.lang.String value=1/
/j:invokeStatic

Regards,
Gisbert Amm


[EMAIL PROTECTED] wrote:

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 ideas?

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Réf. : Re: increment a value in jelly

2005-06-28 Thread jean-marc . bottin
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):

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
 j:arg type=java.lang.String value=1/
/j:invokeStatic

Regards,
Gisbert Amm


[EMAIL PROTECTED] wrote:
 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 ideas?

 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Réf. : Re: increment a value in jelly

2005-06-28 Thread jean-marc . bottin
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 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 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 ideas?

 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]