----- Original Message ----- From: "Ian MacLean" <[EMAIL PROTECTED]> To: "Hamza Zeen-Aldin" <[EMAIL PROTECTED]> Cc: "Nant users list" <[EMAIL PROTECTED]> Sent: Friday, July 16, 2004 3:20 AM Subject: Re: [Nant-users] Capture the command line output
> Hamza Zeen-Aldin wrote: > > >Hi all, > > > >How can I capture the string output from a program that I call through > >an <exec task? > >I call perfroce (p4) to get the number of the latest pending changelist > >in my nant script so I can call perforce again to submit that change > >list. > > > > > > > I think you want the output attribute of <exec>. > > from the docs > output: The file to which the standard output will be redirected. > > http://nant.sourceforge.net/nightly/help/tasks/exec.html We also might want to add support for the outputproperty and errorproperty attributes (see http://ant.apache.org/manual/CoreTasks/exec.html). But this is something for after the interim/alpha release of NAnt 0.85. Gert ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
