Hi Jaroslaw,

In my opinion the docs are correct, which means both the implementation and
the testers are wrong.

I fixed this issue and the testers locally, but I'm not sure if I can commit
them as these changes would break backwards compatibily.

But I still think we should fix the issue and make sure the change is well
documented in the release notes.

Ian, what do you think ?

Gert

----- Original Message ----- 
From: "Jaroslaw Kowalski" <[EMAIL PROTECTED]>
To: "NAnt Developers" <[EMAIL PROTECTED]>
Sent: Saturday, August 16, 2003 2:14 PM
Subject: [nant-dev] if uptodatefile


> Hi!
>
> I've just noticed that <if uptodatefile="..." comparefile="..."> behaves
> exactly opposite to what the documentation says - it executes commands
when
> the file is not up to date. Am I missing something?
>
> I have a script file that I want executed whenever it changes. The script
> file "SSS" produces a text file named "ZZZ". So I use:
>
> <ifnot uptodatefile="ZZZ" comparefile="SSS">
>     <exec program="SSS" />
> </ifnot>
>
> but it doesn't work. When I change <ifnot> to <if> it starts to work.
>
> I've tried to analyze IfTask.cs and I have a concern whether
>
> ---------
> ret = ret && bNeedsAnUpdate;
> ---------
>
> should read
>
> ---------
> ret = ret && !bNeedsAnUpdate;
> ---------
>
> instead? (the result should true be when files DON'T need an update)
>
> Jarek
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
>
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> nant-developers mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-developers
>
>



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to