Share

NAnt - A .NET Build Tool

Tracker: Bugs

5 Solution task tries to validate file before checking conds - ID: 1178810
Last Update: Comment added ( drieseng )

The solution task is checking for the existence of the
solutionfile before it has evaluated the conditional
controls, and thus fails if the doesn't exist, even if
there is an if attribute to prevent the failure.

Example, assuming "foo.bar" doesn't exist:

<target name="all">
<!-- This task is skipped correctly with no messages -->
<copy file="foo.bar" tofile="bar.foo"
if="${file::exists('foo.bar')}" />
<!-- This task causes the build to fail -->
<solution solutionfile="foo.bar"
if="${file::exists('foo.bar')}"
configuration="Release" />
</target>

I've tried this with 0.85.1865.0; nightly; 2/8/2005.

Gary


Gary Feldman ( garyfx ) - 2005-04-07 19:50

5

Closed

Fixed

Gert Driesen

Tasks

0.85

Public


Comment ( 1 )

Date: 2005-04-08 16:11
Sender: driesengProject AdminAccepting Donations

Logged In: YES
user_id=707851

This is now fixed in cvs.

Thanks for the report !


Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
resolution_id None 2005-04-08 16:11 drieseng
assigned_to nobody 2005-04-08 16:11 drieseng
close_date - 2005-04-08 16:11 drieseng
status_id Open 2005-04-08 16:11 drieseng