nant / nant

NAnt is a free .NET build tool. In theory it is kind of like make without make's wrinkles.
nant.sourceforge.net
GNU General Public License v2.0
260 stars 124 forks source link

Conditions are evaluated too late for the defined tasks #108

Closed MoonStorm closed 9 years ago

MoonStorm commented 11 years ago

It seems an element gets fully constructed prior to evaluating the condition that allows the task to execute. This is causing problems for tasks which otherwise seem to be properly defined.

For example, the next task fails with a "Property evaluation failed" error:

<arg value ="-exclude:${tests.exclude}" if="${property::exists('tests.exclude')}"/>
rmboggs commented 9 years ago

Is this specific to the arg type or are there other types/tasks that exhibit this behavior?

rmboggs commented 9 years ago

Confirmed that this is working as expected in master branch as of now. Closing.