Share

NAnt - A .NET Build Tool

Tracker: Bugs

5 cascade attribute doesn't work with dynamic targets - ID: 1906308
Last Update: Comment added ( drieseng )

In 0.85 this worked:

<call target="${generator.target}" cascade="false" />

but in 0.86-beta1 does not work so I need to do this to make it work:

<call target="${generator.target}" cascade="false"
unless="${target::has-executed(generator.target)}"/>

which is a bit of a pain in the ass since I need to go in and change all my
scripts.


Tomasz Kaszuba ( tkaszuba ) - 2008-03-03 15:07

5

Open

None

Gert Driesen

Tasks

0.86

Public


Comment ( 1 )

Date: 2008-03-03 19:27
Sender: driesengProject AdminAccepting Donations


Tomasz, this was actually a bug in NAnt 0.85. The fix is documented in the
release notes for 0.86 Beta 1.

The documentation clearly states that the target will be re-executed:

"When the <call> task is used to execute a target, both that target and
all its dependent targets will be re-executed."

The "cascade" attribute only affects whether dependent targets will be
re-executed.

Sorry for the trouble this causes for you, but I hope you understand that
this fix was necessary.



Attached File

No Files Currently Attached

Change ( 1 )

Field Old Value Date By
assigned_to nobody 2008-03-03 19:27 drieseng