maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Incze Lajos <in...@mail.matav.hu>
Subject Re: Bug in Jelly ?
Date Tue, 27 Jan 2004 04:47:29 GMT
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


Mime
View raw message