Gert, I don't mind if it's deprecated ... however, I would like to know what the <ifnot> task is replaced with. My post also talked about updating the docs. I know you are busy but please add that to the list of "to-dos".
Felice -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Gert Driesen Sent: Thursday, June 16, 2005 8:24 AM To: Felice Vittoria; Matthias Reuß; [email protected] Subject: Re: [Nant-users] if and ifnot tasks Felice, I did mark the <ifnot> task itself deprecated recently, but if there's strong opposition I'll reconsider this. Gert ----- Original Message ----- From: "Felice Vittoria" <[EMAIL PROTECTED]> To: "Matthias Reuß" <[EMAIL PROTECTED]>; <[email protected]> Sent: Thursday, June 16, 2005 3:19 PM Subject: RE: [Nant-users] if and ifnot tasks Matthias (and all), I understand that. In fact, here's my code: <if test="${today.month=='1'}"> <property name="yesterday.month" value="12" /> <property name="yesterday.day" value="31" /> <property name="yesterday.year" value="${int::parse(today.year)-1}" /> </if> <ifnot test="${today.month=='1'}"> <property name="yesterday.month" value="${int::parse(today.month)-1}" /> <property name="yesterday.day" value="${days.last.month}" /> <property name="yesterday.year" value="${today.year}" /> </ifnot> This works but I never received a warning before. Felice -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Matthias Reuß Sent: Thursday, June 16, 2005 3:15 AM To: [email protected] Subject: Re: [Nant-users] if and ifnot tasks > I"ve been away for a while and now I"m back into using Nant. I downloaded the latest >version [ NAnt 0.85 (Build 0.85.1986.0; nightly; 6/9/2005) ] and noticed a difference in >behavior when using the if and ifnot tasks. If I use the ifnot task, I get the >following message: "Task <ifnot> is deprecated. Use the <if> task instead." >That"s fine. But how do I use it? I looked at the if,ifnot documentation and noticed >the examples show how to use those tasks using deprecated information. Most attributes of the if and ifnot tasks are marked as deprecated. This is because they can now be replaced by NAnt's expressions and functions. E.g. instead of <if propertyexists="myProp"> you can (and should) now write <if test="property::exists('myProp')"> Regards, Matthias ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nant-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick _______________________________________________ Nant-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick _______________________________________________ Nant-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nant-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users
