Exactly ! The if and ifnot tasks and their associated unit tests need to be fixed.
- Ants | -----Original Message----- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED] On | Behalf Of Jaroslaw Kowalski | Sent: Saturday, 16 August, 2003 05:15 | To: NAnt Developers | 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
