#359 Solution task tries to validate file before checking conds

0.85
closed-fixed
Tasks (408)
5
2005-04-08
2005-04-07
No

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

Discussion

  • Gert Driesen

    Gert Driesen - 2005-04-08
    • status: open --> closed
     
  • Gert Driesen

    Gert Driesen - 2005-04-08
    • assigned_to: nobody --> drieseng
    • status: closed --> closed-fixed
     
  • Gert Driesen

    Gert Driesen - 2005-04-08

    Logged In: YES
    user_id=707851

    This is now fixed in cvs.

    Thanks for the report !

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks