Bugs item #968278, was opened at 2004-06-07 18:32 Message generated for change (Comment added) made by drieseng You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=968278&group_id=31650
Category: Tasks Group: 0.85 Status: Open Resolution: None Priority: 5 Submitted By: Dennis Homann (dhomann) Assigned to: Nobody/Anonymous (nobody) Summary: Output redirection of <exec> Initial Comment: The <exec> task has the ability to redirect its output to a file. Apparently, only the last 4kB (exactly 4096 bytes) are written to the file and everything else is lost. ---------------------------------------------------------------------- >Comment By: Gert Driesen (drieseng) Date: 2004-07-08 20:11 Message: Logged In: YES user_id=707851 I'm not able to reproduce this issue here. Can you attach a full repro, meaning a build file and a console app that outputs data to the console (which you execute using the <exec> task) ? ---------------------------------------------------------------------- Comment By: Dennis Homann (dhomann) Date: 2004-06-08 09:59 Message: Logged In: YES user_id=724887 Gert, thanks for your response. The issue is reproducible with nant- 0.84. The final size of the output varies from run to run, but it's always sth like 4kB. I guess that's due to the file system cache. The command executed is "nunit-console.exe". Dennis ---------------------------------------------------------------------- Comment By: Gert Driesen (drieseng) Date: 2004-06-07 20:05 Message: Logged In: YES user_id=707851 Dennis, Can you also reproduce this issue using an older version of NAnt (eg. NAnt 0.84) ? ---------------------------------------------------------------------- Comment By: Dennis Homann (dhomann) Date: 2004-06-07 18:50 Message: Logged In: YES user_id=724887 A look at the source code revealed that the error and output stream writers write to the same file. This *can* lead to the described behavior, if append=false (default value). In that case it might happen that the first write to stderr erases all output that was written to stdout before. If append=true, all output is preserved. Btw, is it necessary to open/close the output file for each line of text? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=968278&group_id=31650 ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers