Bug!
--
dIon Gillard, Multitask Consulting
Blog: http://blogs.codehaus.org/people/dion/
Semir Patel <[EMAIL PROTECTED]> wrote on 03/10/2003 03:51:20 PM:
>
>
>
>
> Coming from an Ant background, I've got a tendency to use java package
> naming conventions for my variables/properties.
> Example: widget.color.hue
>
> Now, I've been using Maven alot and so far it has worked pretty well.
> However, there seems to be a particular case where expression evaluation
is
> not as expected:
>
> <goal name="jelly-error">
>
> <!-- if expression with a non-dotted variable: abc -->
> <j:set var="abc" value="123"/>
> <echo>abc=${abc}</echo>
> <j:if test="${abc != null}">
> <echo>Recognized abc is not null</echo>
> </j:if>
>
> <!-- if expression with a dotted varible: a.b.c -->
> <j:set var="a.b.c" value="456"/>
> <echo>a.b.c=${a.b.c}</echo>
> <j:if test="${a.b.c != null}">
> <!-- expression evaluates to false and never gets here -->
> <echo>Recognized a.b.c is not null"</echo>
> </j:if>
> </goal>
>
>
> Output:
>
> [echo] abc=123
> [echo] Recognized abc is not null
> [echo] a.b.c=456
>
> As you can see, a.b.c != null did not evaluate to true.
>
> Bug or feature?
>
> BTW, I'm using jelly/jext shipped with Maven Beta 10.
>
> Thanks,
>
> Semir
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]