maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Walding <...@walding.com>
Subject Re: Bug in Jelly ?
Date Tue, 27 Jan 2004 05:34:08 GMT
size is a reserved word in jexl

I think you can do

size($pom.artifacts) or something like that

Incze Lajos wrote:

>On Mon, Jan 26, 2004 at 10:57:22PM +0100, Stoffels, Ralf (FWI-AW2) wrote:
>  
>
>>Hi,
>>
>>what is wrong with ${pom.artifacts.size()} ?
>>[JellyException: Unable to create expression]
>>
>>E.g. ${pom.artifacts.clear()} does work.
>>
>>
>>Ralf
>>    
>>
>
>Maybe you have the same problem that I had. Try this:
>
>    <j:set var="paSizeLong" value="${pom.artifacts.size()}" />
>    <j:set var="paSizeInt" value="${paSizeLong.intValue()}" />
>
>Many times you can't use directly the long values returned from
>the various "length", "size" etc. operations, as the underlying
>language is strongly typed.
>
>incze
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
>For additional commands, e-mail: dev-help@maven.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message