You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nicolas De Loof <ni...@cgey.com> on 2004/01/05 16:49:04 UTC
jelly expression
I'm writing a maven plugin, and I need in the jelly script to test two variables to be empty :
<j:if test="${empty(var1) && empty(var2)}">
...
But I need to escape the "&". If I use "&" it doesn't works.
How can I set an AND operator in jelly expression language ?
Nico.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: jelly expression
Posted by Gilles Dodinet <rh...@free.fr>.
Nicolas,
i think that the 'and' operator (lower case) does work also :
<j:if test =${cond1 and cond2}">...</j:if>
-- gd
Nicolas De Loof wrote:
>Sorry, it works with &&
>
>I got some errors elsewhere.
>
>Nico.
>
>
>
>----- Original Message -----
>From: "Nicolas De Loof" <ni...@cgey.com>
>To: "Maven Users List" <us...@maven.apache.org>
>Sent: Monday, January 05, 2004 4:49 PM
>Subject: jelly expression
>
>
>
>
>>I'm writing a maven plugin, and I need in the jelly script to test two variables to be empty :
>>
>><j:if test="${empty(var1) && empty(var2)}">
>> ...
>>
>>
>>But I need to escape the "&". If I use "&" it doesn't works.
>>
>>How can I set an AND operator in jelly expression language ?
>>
>>Nico.
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: jelly expression
Posted by Nicolas De Loof <ni...@cgey.com>.
Sorry, it works with &&
I got some errors elsewhere.
Nico.
----- Original Message -----
From: "Nicolas De Loof" <ni...@cgey.com>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Monday, January 05, 2004 4:49 PM
Subject: jelly expression
> I'm writing a maven plugin, and I need in the jelly script to test two variables to be empty :
>
> <j:if test="${empty(var1) && empty(var2)}">
> ...
>
>
> But I need to escape the "&". If I use "&" it doesn't works.
>
> How can I set an AND operator in jelly expression language ?
>
> Nico.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: jelly expression
Posted by di...@multitask.com.au.
Use 'and'
--
dIon Gillard, Multitask Consulting
Blog: http://blogs.codehaus.org/people/dion/
"Nicolas De Loof" <ni...@cgey.com> wrote on 06/01/2004 02:49:04
AM:
> I'm writing a maven plugin, and I need in the jelly script to test two
> variables to be empty :
>
> <j:if test="${empty(var1) && empty(var2)}">
> ...
>
>
> But I need to escape the "&". If I use "&" it doesn't works.
>
> How can I set an AND operator in jelly expression language ?
>
> Nico.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org