ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack J. Woehr" <>
Subject Target executes despite 'unless'
Date Fri, 29 Aug 2003 18:18:37 GMT
[Apache Ant version 1.5]

In an overly complex build.xml authored by another, I have a target init of the form:

         <target description="Initialize the build process" name="init" unless="was.inited">
             <echo message="value of was.inited is ${was.inited}"/>
             <property name="was.inited" value="true"/>
             <echo message="value of was.inited after setting is ${was.inited}"/>

This target always seems to execute every time it's referenced in a dependency despite the
(echo'ed) setting of was.inited.

PMI, what have I misuderstood here, please?

Jack J. Woehr      # You measure democracy by the freedom it
Senior Consultant  # gives its dissidents, not the freedom
Purematrix, Inc.   # it gives its assimilated conformists. #         - Abbie Hoffman

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message