Hi,

I test for a condition within a loop using the <ant:available tag

<j:forEach var="lib" items="${pom.artifacts}">
   <j:set var="dep" value="${lib.dependency}"/>
   <j:set var="junitejb.test.jar" value="${dep....}"/>
   <ant:available property="junitejb.test.jar.available"
        file="${junitejb.test.jar}"/>
   <j:if test="${junitejb.test.jar.available}">
        do something with the file
   </j:if>
</j:forEach>

if junit.test.jar.available is set to true it is never reset to false or null. If the available is false, the property is left in whatever state it is currently in.

any ideas for a workaround as I guess I'm stuck with how ant works.

cheers
Nathan





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



Reply via email to