Index: Tasks/ExternalProgramBase.cs
===================================================================
RCS file: /cvsroot/nant/nant/src/NAnt.Core/Tasks/ExternalProgramBase.cs,v
retrieving revision 1.27
diff -u -r1.27 ExternalProgramBase.cs
--- Tasks/ExternalProgramBase.cs	25 May 2003 08:20:25 -0000	1.27
+++ Tasks/ExternalProgramBase.cs	29 May 2003 15:38:00 -0000
@@ -301,6 +301,7 @@
         /// <summary>        /// Reads from the stream until the external program is ended.        /// </summary>
         private void StreamReaderThread_Output() {
             StreamReader reader = (StreamReader) _htThreadStream[Thread.CurrentThread.Name];
+            bool doAppend = OutputAppend;
             while (true) {
                 string strLogContents = reader.ReadLine();
                 if (strLogContents == null)
@@ -312,8 +313,9 @@
                     Log(Level.Info, new string(char.Parse(" "), LogPrefix.Length) + strLogContents);
 
                     if (OutputFile != null && OutputFile.Length != 0) {
-                        StreamWriter writer = new StreamWriter(OutputFile, OutputAppend);
-                        writer.Write(strLogContents);
+                        StreamWriter writer = new StreamWriter(OutputFile, doAppend);
+                        writer.WriteLine(strLogContents);
+                        doAppend = true;
                         writer.Close();
                     }
                 }
