Author: lluis
Date: 2006-09-12 05:37:19 -0400 (Tue, 12 Sep 2006)
New Revision: 65285
Modified:
trunk/mcs/tools/wsdl/ChangeLog
trunk/mcs/tools/wsdl/MonoWSDL.cs
trunk/mcs/tools/wsdl/MonoWSDL2.cs
Log:
2005-09-12 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoWSDL.cs, MonoWSDL2.cs: Return exit code 0 even if there
are warnings.
Modified: trunk/mcs/tools/wsdl/ChangeLog
===================================================================
--- trunk/mcs/tools/wsdl/ChangeLog 2006-09-12 09:36:06 UTC (rev 65284)
+++ trunk/mcs/tools/wsdl/ChangeLog 2006-09-12 09:37:19 UTC (rev 65285)
@@ -1,3 +1,8 @@
+2005-09-12 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * MonoWSDL.cs, MonoWSDL2.cs: Return exit code 0 even if there
+ are warnings.
+
2006-07-24 Atsushi Enomoto <[EMAIL PROTECTED]>
* MonoWSDL2.cs : 2.0 API fixes from beta2 to RTM.
Modified: trunk/mcs/tools/wsdl/MonoWSDL.cs
===================================================================
--- trunk/mcs/tools/wsdl/MonoWSDL.cs 2006-09-12 09:36:06 UTC (rev 65284)
+++ trunk/mcs/tools/wsdl/MonoWSDL.cs 2006-09-12 09:37:19 UTC (rev 65285)
@@ -575,16 +575,19 @@
}
// generate the code
- if (generator.GenerateCode (descriptions,
schemas))
- return 1;
- else
- return 0;
+ generator.GenerateCode (descriptions, schemas);
+ return 0;
}
catch (NullReferenceException e)
{
Console.WriteLine (e);
return 2;
}
+ catch (InvalidCastException e)
+ {
+ Console.WriteLine (e);
+ return 2;
+ }
catch (Exception exception)
{
Console.WriteLine("Error: {0}",
exception.Message);
Modified: trunk/mcs/tools/wsdl/MonoWSDL2.cs
===================================================================
--- trunk/mcs/tools/wsdl/MonoWSDL2.cs 2006-09-12 09:36:06 UTC (rev 65284)
+++ trunk/mcs/tools/wsdl/MonoWSDL2.cs 2006-09-12 09:37:19 UTC (rev 65285)
@@ -149,10 +149,8 @@
return 0;
// generate the code
- if (GenerateCode (references, codeUnit))
- return 1;
- else
- return 0;
+ GenerateCode (references, codeUnit);
+ return 0;
}
catch (Exception exception)
{
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches