+2004-07-12 Lluis Sanchez Gual <lluis@novell.com>
+
+ * NewMonoXSD.cs: Accept files with absolute paths.
+
2004-05-07 Atsushi Enomoto <atsushi@ximian.com>
* NewMonoXSD.cs : Previous change broke default C# code generation.
\r
foreach (string arg in args)\r
{\r
- if (!arg.StartsWith ("--") && !arg.StartsWith ("/")) {\r
+ if (!arg.StartsWith ("--") && !arg.StartsWith ("/") ||\r
+ (arg.StartsWith ("/") && arg.IndexOfAny (Path.InvalidPathChars) == -1)\r
+ ) \r
+ {\r
if (arg.EndsWith (".dll") || arg.EndsWith (".exe"))\r
{\r
if (!readingFiles) throw new Exception (incorrectOrder);\r
inference = true;\r
continue;\r
}\r
- else //if (!arg.StartsWith ("/") && !arg.StartsWith ("-"))\r
+ else if (!arg.StartsWith ("/"))\r
{\r
if (!readingFiles) Error (incorrectOrder);\r
unknownFiles.Add (arg);\r