On Monday 25 August 2003 13:19, O'Fallon, Paul (MAN-Corporate) wrote:
> I'll bet that your "false" and "true" <j:set>'s are just setting the
> variable to the string "false" or the string "true".  Try testing for that
> (i.e. <j:if test="${idl.already.generated == 'false'}">)

Already done, dosen't work, but thanks

> HTH,
> Paul
>
> > -----Original Message-----
> > From: Nelson Arap� [mailto:[EMAIL PROTECTED]
> > Sent: Monday, August 25, 2003 12:35 PM
> > To: [EMAIL PROTECTED]
> > Subject: Jelly if problem
> >
> >
> > Hello
> >
> > In a maven.xml, I have the following code:
> >
> >        <j:set var="idl.already.generated" value="false"/>
> >        <u:available file="${idl.generated}">
> >          <j:set var="idl.already.generated" value="true"/>
> >        </u:available>
> >
> >        <ant:echo message="${idl.already.generated}"/>
> >        <!-- the following line allways prints true-->
> >        <ant:echo message="${!idl.already.generated}"/>
> >        <j:if test="${!idl.already.generated}">
> >          <ant:echo message="generating idl bindings"/>
> >          <!-- idl compiling goes here-->
> >        </j:if>
> >
> > The second echo always prints true, so maven always compile
> > my idl's. I've
> > tried a lot of severals combinations (ant:available,
> > ${idl.already.generated
> > == null}, ${idl.already.generated != null}, etc) but I can't
> > make it work.
> >
> > Somebody can help me?
> >
> > Thanks in advance
> > Nelson Arap�
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to