Index: CopyTask.cs
===================================================================
RCS file: /cvsroot/nant/nant/src/NAnt.Core/Tasks/CopyTask.cs,v
retrieving revision 1.2
diff -u -r1.2 CopyTask.cs
--- CopyTask.cs	14 Jan 2003 20:38:39 -0000	1.2
+++ CopyTask.cs	25 Feb 2003 04:22:14 -0000
@@ -20,6 +20,7 @@
 
 using System;
 using System.IO;
+using System.Globalization;
 using System.Xml;
 using System.Text;
 using System.Collections;
@@ -137,6 +138,10 @@
             // http://jakarta.apache.org/ant/manual/CoreTasks/copy.html
         }
 
+        /// <summary>
+        /// Executes the Copy task.
+        /// </summary>
+        /// <exception cref="BuildException">A file that has to be copied does not exist or could not be copied.</exception>
         protected override void ExecuteTask() {
             // NOTE: when working with file and directory names its useful to 
             // use the FileInfo an DirectoryInfo classes to normalize paths like:
@@ -165,7 +170,8 @@
                         FileCopyMap.Add(srcInfo.FullName, dstInfo.FullName);
                     }
                 } else {
-                    Log.WriteLine(LogPrefix + "Could not find file {0} to copy.", SourceFile);
+                    string msg = String.Format(CultureInfo.InvariantCulture, "Could not find file {0} to copy.", srcInfo.FullName);
+                    throw new BuildException(msg, Location);
                 }
             } else {
                 // Copy file set contents.
@@ -184,7 +190,7 @@
                         string dstRelFilePath = srcInfo.FullName.Substring(srcBaseInfo.FullName.Length);
 
                         if(dstRelFilePath.StartsWith("\\")) {
-                            dstRelFilePath = dstRelFilePath.Substring(1);     
+                            dstRelFilePath = dstRelFilePath.Substring(1);
                         }
                         
                         // The full filepath to copy to.
@@ -198,7 +204,8 @@
                             FileCopyMap.Add(srcInfo.FullName, dstFilePath);
                         }
                     } else {
-                        Log.WriteLine(LogPrefix + "Could not find file {0} to copy.", srcInfo.FullName);
+                        string msg = String.Format(CultureInfo.InvariantCulture, "Could not find file {0} to copy.", srcInfo.FullName);
+                        throw new BuildException(msg, Location);
                     }
                 }
             }
