* BuildItemGroup.cs (Clone): Throw exception.
* Project.cs (Load): Throw InvalidProjectFileException if anything
goes wrong.
svn path=/trunk/mcs/; revision=69688
[MonoTODO]
public BuildItemGroup Clone (bool deepClone)
{
- BuildItemGroup big = new BuildItemGroup ();
- // FIXME: add copying of items
- return big;
+ if (deepClone) {
+ if (FromXml)
+ throw new NotImplementedException ();
+ else
+ throw new NotImplementedException ();
+ } else {
+ if (FromXml)
+ throw new InvalidOperationException ("A shallow clone of this object cannot be created.");
+ else
+ throw new NotImplementedException ();
+ }
}
public IEnumerator GetEnumerator ()
+2006-12-18 Marek Sieradzki <marek.sieradzki@gmail.com>
+
+ * BuildItemGroup.cs (Clone): Throw exception.
+
+ * Project.cs (Load): Throw InvalidProjectFileException if anything
+ goes wrong.
+
2006-12-16 Marek Sieradzki <marek.sieradzki@gmail.com>
* ItemReference.cs: Avoid KeyNotFoundException in ConvertToString ()
this.fullFileName = Path.GetFullPath (projectFileName);
try {
DoLoad (new StreamReader (projectFileName));
- } catch {
- Console.WriteLine ("Failure to load: {0}", projectFileName);
+ } catch (Exception e) {
+ throw new InvalidProjectFileException (e.Message, e);
}
}