Bugs item #1015755, was opened at 2004-08-24 23:03 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=474851&aid=1015755&group_id=54790
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Loren Halvorson (lorenh) Assigned to: Nobody/Anonymous (nobody) Summary: tiny tweak to record task Initial Comment: The <record> task currently locks the log file for exclusive writing, I am suggesting a tiny change that allows it to be shared for reading. If the following change could be made to Util\FileLogListener.cs at around Line 340 it would allow someone to open the log file in a text editor while it is being written. This could be used to monitor a long running build's progress. We have an automated build running under CruiseControl.NET that can take 1 hour, and would love to be able to answer the question...how far is the build? With this change we can just start a <record> task at the beginning of the build and open the log in an editor when we want to know how far it is. Current: public void Start() { _stopped = false; if (OutputWriter == null) { OutputWriter = new StreamWriter (File.OpenWrite(Name)); } ((StreamWriter) OutputWriter).AutoFlush = AutoFlush; } Change to: public void Start() { _stopped = false; if (OutputWriter == null) { OutputWriter = new StreamWriter(new FileStream(Name, FileMode.OpenOrCreate, FileAccess.Write, FileShare.Read)); } ((StreamWriter) OutputWriter).AutoFlush = AutoFlush; } Thanks very much ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=474851&aid=1015755&group_id=54790 ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ NAntContrib-Developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nantcontrib-developer