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
Gert Driesen
Tasks
0.85
Public
|
Date: 2005-04-08 16:11 Logged In: YES |
| 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 |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use