[NAnt-users] How to suppress exec errors?
One of the things I do in my script is to disconnect a network drive, regardless is it's connected or not, and of course if it's not already connected I get an error. I ignore the error via failonerror=false, but I want to go one step further and suppress the error generated. ***This e-mail message is intended only for the above named recipient(s) and may contain information that is sensitive or proprietary. If you have received this message in error or are not the named recipient(s), please immediately notify the sender, delete this e-mail message without making a copy and do not disclose or relay this e-mail message to anyone.*** -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] How to suppress exec errors?
I think the best/only way you can do this is to create a batch file to do the disconnect and have it always return a success return code. I have a similar issues with a command line app that doesn't return 0 for success and there is no way to tell Nant what return code signifies success/failure. BOb From: Chris Fouts [mailto:chris.fo...@caemilusa.com] Sent: Thursday, February 23, 2012 9:42 AM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] How to suppress exec errors? One of the things I do in my script is to disconnect a network drive, regardless is it's connected or not, and of course if it's not already connected I get an error. I ignore the error via failonerror=false, but I want to go one step further and suppress the error generated. ***This e-mail message is intended only for the above named recipient(s) and may contain information that is sensitive or proprietary. If you have received this message in error or are not the named recipient(s), please immediately notify the sender, delete this e-mail message without making a copy and do not disclose or relay this e-mail message to anyone.*** -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] How to suppress exec errors?
Ok thanks! From: Bob Archer [mailto:bob.arc...@amsi.com] Sent: Thursday, February 23, 2012 9:46 AM To: Chris Fouts; nant-users@lists.sourceforge.net Subject: RE: How to suppress exec errors? I think the best/only way you can do this is to create a batch file to do the disconnect and have it always return a success return code. I have a similar issues with a command line app that doesn't return 0 for success and there is no way to tell Nant what return code signifies success/failure. BOb From: Chris Fouts [mailto:chris.fo...@caemilusa.com] Sent: Thursday, February 23, 2012 9:42 AM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] How to suppress exec errors? One of the things I do in my script is to disconnect a network drive, regardless is it's connected or not, and of course if it's not already connected I get an error. I ignore the error via failonerror=false, but I want to go one step further and suppress the error generated. ***This e-mail message is intended only for the above named recipient(s) and may contain information that is sensitive or proprietary. If you have received this message in error or are not the named recipient(s), please immediately notify the sender, delete this e-mail message without making a copy and do not disclose or relay this e-mail message to anyone.*** -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] Various NAnt Updates
Looks like some good changes. Is the nunit stuff going to be version specific? Or, is it chaining out to whatever version of nunit you have or point to in your project? You might want to update the readme with the versions that are supported: Windows --- * A version of the Microsoft .NET Framework Available from http://msdn.microsoft.com/netframework/ You will need the .NET Framework SDK as well as the runtime components if you intend to compile programs. Note: NAnt currently supports versions 1.0, 1.1 and 2.0 of the Microsoft .NET Framework. or * Mono for Windows (version 1.0 or higher) Available from http://www.mono-project.com/downloads/ BOb -Original Message- From: Ryan Boggs [mailto:rmbo...@gmail.com] Sent: Wednesday, February 22, 2012 11:31 PM To: nant-develop...@lists.sourceforge.net; nant-users@lists.sourceforge.net Subject: [NAnt-users] Various NAnt Updates Hi all, Just checking in with some progress that has been occurring in NAnt's development. It's not a complete list but there are a few big ones that I think are worth highlighting. * The VS project solution files for both NAnt and NAntContrib projects have been updated to VS2010 format. * .NET/Mono 1.* runtime support for NAnt has been dropped. Target support for .NET/Mono 1.* still exists, however. * The style/ task has been updated to use xslCompiledTransform, which should address the issue described here on Stackoverflow: http://stackoverflow.com/questions/5032347/xslt-stylesheet-replaces-self- closing-tags-with-empty-paired-tags Thanks to Michael Tutty for the contribution via pull request for this item. * The mail/ task has been updated to use System.Net.Mail instead of System.Web.Mail. During the process of updating this task, additional features were added that we thought to be very helpful (such as specifying a reply to address, specifying the port number to send mail to, indicating whether or not to use an ssl connection, etc). * More work has gone into the msbuild/ with the help from Dominik Guder and Martin Aliger. From what I understand, there are still a couple of outstanding issues with this item but the task is working better with recent versions of msbuild scripts. This is still a high priority. * Quite a bit of work has been put into upgrading the nunit2/ task to reference the latest version of NUnit. I'm happy to say that these changes are currently in review to be imported into nant/master. The version of NUnit being used for this upgrade is 2.6 final (which was released just a few days ago). I'm hoping that this will go into master soon. I want to say thanks to Charles Poole and the rest of the NUnit dev team for their help and insight to get the nunit2/ up to speed. They were very helpful in this process. Anyone interested in viewing these changes can see them here: https://github.com/nant/nant/tree/nunitupdates * The nightly process for both NAnt and NAntContrib projects have started up again. This time, an automated process has been setup with extensive help from Dominik Guder to make sure that new nightly files are generated whenever changes occur on the master branches of either project. The last nightly was built on 2/19/2012 and includes all the changes listed above except for the nunit changes. The nightly files can be found in the following locations: NAnt Nightlys: https://sourceforge.net/projects/nant/files/nant/nightly/ NAntContrib Nightlys: https://sourceforge.net/projects/nantcontrib/files/nantcontrib/nightly/ We are still trying to nail down release dates and should be announcing them as soon as they are finalized. The next version number being targeted for NAnt/NAntContrib is currently 0.92. It seems like the natural progression but we are curious if you have any reasons to use a different version number (ie: should we skip 0.92 and go to 0.95, etc). That's all I have for now. I will try to send out these kinds of notices more often as progress continues. Thanks, Ryan -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/
Re: [NAnt-users] How to suppress exec errors?
Could you put it inside a try-catch and just don't do anything with the error? Brian Wilson Email: brian.wil...@dhr.alabama.govmailto:brian.wil...@dhr.alabama.gov [cid:image001.png@01CCF208.63C225F0] From: Chris Fouts [mailto:chris.fo...@caemilusa.com] Sent: Thursday, February 23, 2012 8:42 AM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] How to suppress exec errors? One of the things I do in my script is to disconnect a network drive, regardless is it's connected or not, and of course if it's not already connected I get an error. I ignore the error via failonerror=false, but I want to go one step further and suppress the error generated. ***This e-mail message is intended only for the above named recipient(s) and may contain information that is sensitive or proprietary. If you have received this message in error or are not the named recipient(s), please immediately notify the sender, delete this e-mail message without making a copy and do not disclose or relay this e-mail message to anyone.*** inline: image001.png-- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] Various NAnt Updates
Hi, On Thu, Feb 23, 2012 at 6:53 AM, Bob Archer bob.arc...@amsi.com wrote: Looks like some good changes. Is the nunit stuff going to be version specific? Or, is it chaining out to whatever version of nunit you have or point to in your project? I am hoping that people using a certain version of NUnit for their tasks will not have to touch their setup but if anyone wants to use features from the latest NUnit version, they will be able to through the NAnt task. You might want to update the readme with the versions that are supported: There is no might about it. The readme needs updating. :) Thanks, Ryan Windows --- * A version of the Microsoft .NET Framework Available from http://msdn.microsoft.com/netframework/ You will need the .NET Framework SDK as well as the runtime components if you intend to compile programs. Note: NAnt currently supports versions 1.0, 1.1 and 2.0 of the Microsoft .NET Framework. or * Mono for Windows (version 1.0 or higher) Available from http://www.mono-project.com/downloads/ BOb -Original Message- From: Ryan Boggs [mailto:rmbo...@gmail.com] Sent: Wednesday, February 22, 2012 11:31 PM To: nant-develop...@lists.sourceforge.net; nant-users@lists.sourceforge.net Subject: [NAnt-users] Various NAnt Updates Hi all, Just checking in with some progress that has been occurring in NAnt's development. It's not a complete list but there are a few big ones that I think are worth highlighting. * The VS project solution files for both NAnt and NAntContrib projects have been updated to VS2010 format. * .NET/Mono 1.* runtime support for NAnt has been dropped. Target support for .NET/Mono 1.* still exists, however. * The style/ task has been updated to use xslCompiledTransform, which should address the issue described here on Stackoverflow: http://stackoverflow.com/questions/5032347/xslt-stylesheet-replaces-self- closing-tags-with-empty-paired-tags Thanks to Michael Tutty for the contribution via pull request for this item. * The mail/ task has been updated to use System.Net.Mail instead of System.Web.Mail. During the process of updating this task, additional features were added that we thought to be very helpful (such as specifying a reply to address, specifying the port number to send mail to, indicating whether or not to use an ssl connection, etc). * More work has gone into the msbuild/ with the help from Dominik Guder and Martin Aliger. From what I understand, there are still a couple of outstanding issues with this item but the task is working better with recent versions of msbuild scripts. This is still a high priority. * Quite a bit of work has been put into upgrading the nunit2/ task to reference the latest version of NUnit. I'm happy to say that these changes are currently in review to be imported into nant/master. The version of NUnit being used for this upgrade is 2.6 final (which was released just a few days ago). I'm hoping that this will go into master soon. I want to say thanks to Charles Poole and the rest of the NUnit dev team for their help and insight to get the nunit2/ up to speed. They were very helpful in this process. Anyone interested in viewing these changes can see them here: https://github.com/nant/nant/tree/nunitupdates * The nightly process for both NAnt and NAntContrib projects have started up again. This time, an automated process has been setup with extensive help from Dominik Guder to make sure that new nightly files are generated whenever changes occur on the master branches of either project. The last nightly was built on 2/19/2012 and includes all the changes listed above except for the nunit changes. The nightly files can be found in the following locations: NAnt Nightlys: https://sourceforge.net/projects/nant/files/nant/nightly/ NAntContrib Nightlys: https://sourceforge.net/projects/nantcontrib/files/nantcontrib/nightly/ We are still trying to nail down release dates and should be announcing them as soon as they are finalized. The next version number being targeted for NAnt/NAntContrib is currently 0.92. It seems like the natural progression but we are curious if you have any reasons to use a different version number (ie: should we skip 0.92 and go to 0.95, etc). That's all I have for now. I will try to send out these kinds of notices more often as progress continues. Thanks, Ryan -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net
Re: [NAnt-users] Various NAnt Updates
On 2/23/2012 9:07 PM, Ryan Boggs wrote: Hi, On Thu, Feb 23, 2012 at 6:53 AM, Bob Archerbob.arc...@amsi.com wrote: Looks like some good changes. Is the nunit stuff going to be version specific? Or, is it chaining out to whatever version of nunit you have or point to in your project? I am hoping that people using a certain version of NUnit for their tasks will not have to touch their setup but if anyone wants to use features from the latest NUnit version, they will be able to through the NAnt task. Hi! Sorry, somehow I can't make heads or tails of that sentence :D Are you saying that NAnt is integrating parts of NUnit, but it will be able to run tests from any future NUnit version (at least NUnit appears to employ some magic here -- I'm running my 2.5.10 tests in a 2.5.5 test runner). Or will it work differently? Way, way in the past when .NET 2.0 was still cutting edge and NAnt's nunit / task had just been replaced by the nunit2 / task, there was talk about just calling nunit-console.exe because NAnt was having trouble keeping up with NUnit's updates. But it seems NUnit has found mechanisms to avoid requiring a specific version since then, making that rather undesirable external executable scenario unnecessary :) -Markus- -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users
Re: [NAnt-users] Various NAnt Updates
Hi, On Thu, Feb 23, 2012 at 2:39 PM, Markus Ewald cy...@nuclex.org wrote: On 2/23/2012 9:07 PM, Ryan Boggs wrote: Hi, On Thu, Feb 23, 2012 at 6:53 AM, Bob Archerbob.arc...@amsi.com wrote: Looks like some good changes. Is the nunit stuff going to be version specific? Or, is it chaining out to whatever version of nunit you have or point to in your project? I am hoping that people using a certain version of NUnit for their tasks will not have to touch their setup but if anyone wants to use features from the latest NUnit version, they will be able to through the NAnt task. Hi! Sorry, somehow I can't make heads or tails of that sentence :D Are you saying that NAnt is integrating parts of NUnit, but it will be able to run tests from any future NUnit version (at least NUnit appears to employ some magic here -- I'm running my 2.5.10 tests in a 2.5.5 test runner). Or will it work differently? Yeah, I need to either learn how to multitask properly or not do it at all. :) What I was trying to say was that the nunit2 task will work as it has in the past. The only difference is that you can now use new features of nunit 2.6 when building with NAnt. The version of NUnit being used by the nunit2 task today is 2.2 I believe, which is quite old. I have received bug reports saying that they couldn't use newer features of nunit with NAnt's task due to the old version. This should no longer be the case. Way, way in the past when .NET 2.0 was still cutting edge and NAnt's nunit / task had just been replaced by the nunit2 / task, there was talk about just calling nunit-console.exe because NAnt was having trouble keeping up with NUnit's updates. But it seems NUnit has found mechanisms to avoid requiring a specific version since then, making that rather undesirable external executable scenario unnecessary :) Right. NAnt isn't using nunit-console.exe, it is actually using the nunit libs themselves to perform the tests. From what I understand from NUnit, test libs compiled with previous versions of NUnit should still work properly with the latest version (ie: tests compiled with NUnit 2.5.9 should work when running the tests with NUnit 2.6). I'm not sure if it'll work the other way around, such as tests compiled in with theoretical NUnit 2.6.2 will work with 2.6.0. One of my personal goals going forward is to make sure that the latest version of NUnit will be incorporated into NAnt so hopefully this won't be much of an issue. Hope this helps. Thanks, Ryan -Markus- -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users