Bugs item #1077318, was opened at 2004-12-02 13:56 Message generated for change (Comment added) made by ianm74 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: Ian MacLean (ianm74) Date: 2004-12-02 14:19 Message: Logged In: YES user_id=321872 In that case NAnt.build is busted. The following : <target name="install" depends="install-windows, install-linux" /> <target name="install-windows" depends="userdoc" if="${platform::is-win32()}"> clearly doesn't intend to execute the userdoc target if the platform isn't Win32. ---------------------------------------------------------------------- Comment By: Gert Driesen (drieseng) Date: 2004-12-02 14: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