Bugs item #1077318, was opened at 2004-12-02 05:56
Message generated for change (Comment added) made by drieseng
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1077318&group_id=31650
Category: Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Ian MacLean (ianm74)
Assigned to: Nobody/Anonymous (nobody)
Summary: if attribute on target should control dependencies as well
Initial Comment:
If the "if" attribute of a target evaluates to false it
will not be executed but all its depedencies will. The
dependencies should also be skipped.
----------------------------------------------------------------------
>Comment By: Gert Driesen (drieseng)
Date: 2004-12-02 06:05
Message:
Logged In: YES
user_id=707851
I'm pretty sure this is "by design", and I think Ant also has
the same behavior.
The reason is that you might want to determine whether a
given target should be executed, in one of its dependencies.
eg.
<target name="build" depends="check-uptodate" unless="${is-
uptodate}">
...
</target>
<target name="check-uptodate">
<!-- dependending on whether output is up-to-date, set
property to true or false -->
<property name="is-uptodate" value="true" />
</target>
I'll double-check this later (but not today, I think)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1077318&group_id=31650
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers