2009-01-21 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Wed, 21 Jan 2009 07:21:21 +0000 (07:21 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Wed, 21 Jan 2009 07:21:21 +0000 (07:21 -0000)
* Driver.cs : handle relative file path.

svn path=/trunk/mcs/; revision=124003

mcs/tools/svcutil/ChangeLog
mcs/tools/svcutil/Driver.cs

index e6276385c583387c3389362311a761757c4c026e..90a0f4d75a03dba31d8331fd223a7bf1baf6f5bf 100644 (file)
@@ -1,3 +1,7 @@
+2009-01-21  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Driver.cs : handle relative file path.
+
 2006-10-19  Ankit Jain  <jankit@novell.com>
 
        * Driver.cs: Try to use HTTP GET to get wsdl, if it fails then try
index af22f105696030c74efe96dc4b3b2dac3e5d9f26..63da69d31f8c7ae524a0c8078a6867c04e6d1a06 100644 (file)
@@ -53,7 +53,8 @@ namespace Mono.ServiceContractTool
                        MetadataSet metadata = null;
 
                        // For now only assemblyPath is supported.
-                       foreach (string arg in co.RemainingArguments) {
+                       foreach (string arg_ in co.RemainingArguments) {
+                               string arg = File.Exists (arg_) ? Path.GetFullPath (arg_) : arg_;
                                Uri uri = null;
                                if (Uri.TryCreate (arg, UriKind.Absolute, out uri)) {
                                        metadata = ResolveWithDisco (arg);