maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nelson Arapé <nar...@ica.luz.ve>
Subject Jelly if problem
Date Mon, 25 Aug 2003 16:35:29 GMT
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message