Hello Everyone,

I just joined this list.

 

I’m working on a program that will spawn NAnt, and what I really want to do is to be able to capture all of the output from all of the executable programs that NAnt spawns.  The reason why I want to do this is because I want to provide my users will real-time information about what NAnt is doing.

 

Of course, I could set up my NAnt scripts to redirect the output of tasks to one or more files, and when I get control back in my program, I could read all of those output files and send them to my user.  But that technique means I have to want until the NAnt script is completely finished executing.  If the NAnt script is long-running, my user has to wait to get any visual feedback.

 

I don’t think there’s any way to do this currently.  Please tell me if I’m wrong.  If NAnt captured its spawned exec’s output and sent it to its own stdout, then I could capture the output from my program before NAnt finished executing.  I looked at the source briefly, and to me it looks like some sort of change would need to be made to NAnt.Core\Tasks\ExternalProgramBase.cs (at a minimum).  Of course, you’d want to make it an option, either a global option to NAnt itself, or an option on a task-by-task basis, and that would require changes to other files.

 

What is the best course of action for getting this implemented?  Can I become a contributing developer and do it myself, or is someone else willing to do it?

 

Thank you.

- Kevin Dietz

Reply via email to