commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <>
Subject Re: [Jelly/Jexl] How to add two int values?
Date Thu, 05 Aug 2004 09:18:54 GMT
I agree sometimes casting is surprising in jexl and jelly... making 
this clear would be a strong contribution for the maturity of both.
When I get stuck with these, I solve it using another annoyance: the 
minus sign.

It's as simple as that: ${x+y-0} will always be a number or throw if x 
or y cannot be made to a number.
Do note that "null" may be made into "0", I fear.


Le 1 août 04, à 14:27, Peter Nabbefeld a écrit :
> I'm trying to write a Jelly script for Maven. I've tried "${x + y}" 
> and "${x} + ${y}" as the value argument, both don't work for me. I 
> don't know, if this is a problem with the archaic versions, Maven uses 
> (e.g. ant 1.5.3), or if it is a problem with Jelly/Jexl. If it is a 
> solved problem, please give me the right syntax, so I can file a bug 
> for Maven.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message