Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 65371 invoked from network); 5 Aug 2004 09:19:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 5 Aug 2004 09:19:10 -0000 Received: (qmail 27557 invoked by uid 500); 5 Aug 2004 09:19:02 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 27510 invoked by uid 500); 5 Aug 2004 09:19:02 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 27495 invoked by uid 99); 5 Aug 2004 09:19:02 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [134.96.188.10] (HELO corp-200.dfki.uni-sb.de) (134.96.188.10) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 05 Aug 2004 02:18:59 -0700 Received: from corp-200.dfki.uni-sb.de (IDENT:root@localhost [127.0.0.1]) by corp-200.dfki.uni-sb.de (8.12.10/8.12.9) with ESMTP id i759IuOn001885 for ; Thu, 5 Aug 2004 11:18:56 +0200 (MET DST) Received: from [IPv6:::1] (hal.dfki.uni-sb.de [134.96.184.85]) by corp-200.dfki.uni-sb.de (8.12.10/8.12.6) with ESMTP id i759ItAD001881 for ; Thu, 5 Aug 2004 11:18:56 +0200 (MET DST) Mime-Version: 1.0 (Apple Message framework v618) In-Reply-To: References: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Message-Id: <78B3F9D3-E6C0-11D8-845F-000A95C50B1C@activemath.org> Content-Transfer-Encoding: quoted-printable From: Paul Libbrecht Subject: Re: [Jelly/Jexl] How to add two int values? Date: Thu, 5 Aug 2004 11:18:54 +0200 To: "Jakarta Commons Users List" X-Mailer: Apple Mail (2.618) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I agree sometimes casting is surprising in jexl and jelly... making=20 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=20 minus sign. It's as simple as that: ${x+y-0} will always be a number or throw if x=20= or y cannot be made to a number. Do note that "null" may be made into "0", I fear. paul Le 1 ao=FBt 04, =E0 14:27, Peter Nabbefeld a =E9crit : > I'm trying to write a Jelly script for Maven. I've tried "${x + y}"=20 > and "${x} + ${y}" as the value argument, both don't work for me. I=20 > don't know, if this is a problem with the archaic versions, Maven uses=20= > (e.g. ant 1.5.3), or if it is a problem with Jelly/Jexl. If it is a=20 > solved problem, please give me the right syntax, so I can file a bug=20= > for Maven. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org