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

Reply via email to