Author: msierad
Date: 2006-12-04 11:09:51 -0500 (Mon, 04 Dec 2006)
New Revision: 68960

Modified:
   
trunk/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildItemGroupCollection.cs
   trunk/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/ChangeLog
   trunk/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Import.cs
Log:
2006-12-04  Marek Sieradzki  <[EMAIL PROTECTED]>

        * Import.cs: Check for project.FullFileName (Path.DirectoryName would
        throw an exception).
        * BuildItemGroupCollection.cs: Changed exception types.



Modified: 
trunk/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildItemGroupCollection.cs
===================================================================
--- 
trunk/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildItemGroupCollection.cs
      2006-12-04 16:04:23 UTC (rev 68959)
+++ 
trunk/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildItemGroupCollection.cs
      2006-12-04 16:09:51 UTC (rev 68960)
@@ -50,11 +50,12 @@
                        if (array == null)
                                throw new ArgumentNullException ("array");
                        if (index < 0)
-                               throw new ArgumentOutOfRangeException ("index");
+                               throw new 
+                                       IndexOutOfRangeException ("Index was 
outside the bounds of the array.");
                        if (array.Rank > 1)
                                throw new ArgumentException ("array is 
multidimensional");
                        if ((array.Length > 0) && (index >= array.Length))
-                               throw new ArgumentException ("index is equal or 
greater than array.Length");
+                               throw new IndexOutOfRangeException ("Index was 
outside the bounds of the array.");
                        if (index + this.Count > array.Length)
                                throw new ArgumentException ("Not enough room 
from index to end of array for this BuildItemGroupCollection");
                
@@ -96,4 +97,4 @@
        }
 }
 
-#endif
\ No newline at end of file
+#endif

Modified: 
trunk/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/ChangeLog
===================================================================
--- 
trunk/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/ChangeLog    
    2006-12-04 16:04:23 UTC (rev 68959)
+++ 
trunk/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/ChangeLog    
    2006-12-04 16:09:51 UTC (rev 68960)
@@ -1,3 +1,9 @@
+2006-12-04  Marek Sieradzki  <[EMAIL PROTECTED]>
+
+       * Import.cs: Check for project.FullFileName (Path.DirectoryName would
+       throw an exception).
+       * BuildItemGroupCollection.cs: Changed exception types.
+
 2006-10-14  Marek Sieradzki  <[EMAIL PROTECTED]>
 
        * Engine.cs: Removed redundant cast.

Modified: 
trunk/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Import.cs
===================================================================
--- 
trunk/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Import.cs    
    2006-12-04 16:04:23 UTC (rev 68959)
+++ 
trunk/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/Import.cs    
    2006-12-04 16:09:51 UTC (rev 68960)
@@ -63,7 +63,7 @@
                        
                        file = evaluatedProjectPath = (string) exp.ConvertTo 
(typeof (string));
 
-                       if (Path.IsPathRooted (EvaluatedProjectPath) == false) {
+                       if (!Path.IsPathRooted (EvaluatedProjectPath) && 
project.FullFileName != String.Empty) {
                                string dir;
                                if (originalProject == null)
                                        dir = Path.GetDirectoryName 
(project.FullFileName);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to