* MSBuild.cs (Execute): Log error if the file doesn't exist.
authorAnkit Jain <radical@corewars.org>
Thu, 30 Jul 2009 21:23:56 +0000 (21:23 -0000)
committerAnkit Jain <radical@corewars.org>
Thu, 30 Jul 2009 21:23:56 +0000 (21:23 -0000)
svn path=/trunk/mcs/; revision=139125

mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/ChangeLog
mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/MSBuild.cs

index ab74ea065c634543417ecae45773756b9a0e7713..bd19aed0891a187c93337bb1b1e6db62ce0f0e50 100644 (file)
@@ -1,3 +1,7 @@
+2009-07-31  Ankit Jain  <jankit@novell.com>
+
+       * MSBuild.cs (Execute): Log error if the file doesn't exist.
+
 2009-07-30  Ankit Jain  <jankit@novell.com>
 
        * ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
index 3f8ed19352a6c743cf67236a05ecc2cb18f80137..b953b28f2c5c75ed8d07c2fc95c2244648c91629 100644 (file)
@@ -65,6 +65,13 @@ namespace Microsoft.Build.Tasks {
 
                        foreach (ITaskItem project in projects) {
                                filename = project.GetMetadata ("FullPath");
+                               if (!File.Exists (filename)) {
+                                       Log.LogError ("Could not find the project file '{0}'", filename);
+                                       if (stopOnFirstFailure)
+                                               break;
+
+                                       continue;
+                               }
 
                                Directory.SetCurrentDirectory (Path.GetDirectoryName (filename));
                                outputs = new Hashtable ();