Ah, thanks for the clarification. I'm new to NAnt and I just now
discovered its <if> task, something Ant has desperately needed. Kudos
to the NAnt team for avoiding Ant's shortcomings here.
On Fri, 03 Dec 2004 00:24:11 +0800, Troy Laurin <[EMAIL PROTECTED]> wrote:
> This isn't a malfunction, at least if the behaviour is expected to be
> the same as Ant... Basically, the dependencies of a target are always
> run before testing the target's condition, because the dependencies may
> set up the condition.
>
> This is a legacy of Ant not having expressions or an if statement, so
> the only way to conditionally perform tasks was via this depends/if
> mechanism:
>
> <target name="foo" depends="foo-test" if="${foo-exists}">
> <do-foo />
> </target>
> <target name="foo-test">
> <available file="foo.txt" property="foo-exists" />
> </target>
>
>
> -T
--
J. Christopher Six
-------------------------------------------------------
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-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users