Author: spouliot
Date: 2007-11-21 10:15:53 -0500 (Wed, 21 Nov 2007)
New Revision: 90084
Modified:
trunk/cecil/gendarme/console/ChangeLog
trunk/cecil/gendarme/console/ConsoleRunner.cs
Log:
2007-11-21 Sebastien Pouliot <[EMAIL PROTECTED]>
* ConsoleRunner.cs: Ensure patterns, like * and ?, works inside the
current directory. Return the full path in this case too.
Modified: trunk/cecil/gendarme/console/ChangeLog
===================================================================
--- trunk/cecil/gendarme/console/ChangeLog 2007-11-21 14:45:21 UTC (rev
90083)
+++ trunk/cecil/gendarme/console/ChangeLog 2007-11-21 15:15:53 UTC (rev
90084)
@@ -1,3 +1,8 @@
+2007-11-21 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * ConsoleRunner.cs: Ensure patterns, like * and ?, works inside the
+ current directory. Return the full path in this case too.
+
2007-10-08 Sebastien Pouliot <[EMAIL PROTECTED]>
* ConsoleRunner.cs: Avoid WriteStaticFieldFromInstanceMethodRule
Modified: trunk/cecil/gendarme/console/ConsoleRunner.cs
===================================================================
--- trunk/cecil/gendarme/console/ConsoleRunner.cs 2007-11-21 14:45:21 UTC
(rev 90083)
+++ trunk/cecil/gendarme/console/ConsoleRunner.cs 2007-11-21 15:15:53 UTC
(rev 90084)
@@ -89,9 +89,12 @@
}
}
} else if (name.IndexOfAny (new char[] { '*', '?' }) >= 0) {
- string[] files = Directory.GetFiles
(Path.GetDirectoryName (name), Path.GetFileName (name));
+ string dirname = Path.GetDirectoryName (name);
+ if (dirname.Length == 0)
+ dirname = "."; // assume current directory
+ string [] files = Directory.GetFiles (dirname,
Path.GetFileName (name));
foreach (string file in files) {
- assemblies.Add (file, null);
+ assemblies.Add (Path.GetFullPath (file), null);
}
} else {
assemblies.Add (Path.GetFullPath (name), null);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches