ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 4884] - Dependant targets fire unnecessarily
Date Thu, 15 Nov 2001 08:28:38 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4884>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4884

Dependant targets fire unnecessarily

donaldp@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From donaldp@apache.org  2001-11-15 00:28 -------
For better or worse that is the way ant is designed to operate. The dependent 
targets (ie "something") are always processed *before* the dependee (ie 
"test") is processed and before dependee checks if/unless attributes. This is 
designed so that the dependent can set up conditions under which dependee may 
use.

ie

<target name="dependee" depends="dependent" if="property.is.set">
  <echo message="This will print"/>
</target>

<target name="dependent" >
  <property name="property.is.set" value="aValue"/>
</target>

dependee will always printout out "this will print"

If you believe this behaviour is wrong you can always make a case for changing 
it on mailing list and we will consider it for ant2.0 when we can break 
backwards compatability.

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message