Gert Driesen wrote:

Tom,

That is indeed the expected behaviour. If you want to avoid specific targets
from being executed more than once, you could use the
target::has-executed(name) function.

<target name="A" unless="${target::has-executed('A')}" />

<target name="B" depends="A"> <call target="C"/> </target>

<target name="C" depends="A" />

I'm not saying this is perfect, but the old behaviour did not allow
dependencies to be re-evaluated at all.



I wonder if a "dependencies" attribute would be a good idea for the call task. It would be nice to be able to call a target by itself without triggering its dependencies and without the unless= workaround. We could get a feel for what the most common use-case is - evaluating dependencies or not and make that the default value. So:

<target name="A" />

<target name="B" depends="A"> <call target="C" dependencies="false"/> </target>

<target name="C" depends="A" />

Ian



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to