Author: lluis
Date: 2006-12-17 12:38:45 -0500 (Sun, 17 Dec 2006)
New Revision: 69615
Modified:
trunk/monodevelop/Extras/CSharpBinding/CSharpBindingCompilerManager.cs
trunk/monodevelop/Extras/CSharpBinding/ChangeLog
Log:
* CSharpBindingCompilerManager.cs: Track changes in FileService API.
Modified: trunk/monodevelop/Extras/CSharpBinding/CSharpBindingCompilerManager.cs
===================================================================
--- trunk/monodevelop/Extras/CSharpBinding/CSharpBindingCompilerManager.cs
2006-12-17 17:37:59 UTC (rev 69614)
+++ trunk/monodevelop/Extras/CSharpBinding/CSharpBindingCompilerManager.cs
2006-12-17 17:38:45 UTC (rev 69615)
@@ -25,8 +25,6 @@
/// </summary>
public class CSharpBindingCompilerManager
{
- FileUtilityService fileUtilityService =
(FileUtilityService)ServiceManager.GetService(typeof(FileUtilityService));
-
public bool CanCompile(string fileName)
{
return Path.GetExtension(fileName).ToUpper() == ".CS";
@@ -192,15 +190,15 @@
if (result.CompilerOutput.Trim () != "")
monitor.Log.WriteLine (result.CompilerOutput);
- File.Delete(responseFileName);
- File.Delete(output);
- File.Delete(error);
+ Runtime.FileService.DeleteFile (responseFileName);
+ Runtime.FileService.DeleteFile (output);
+ Runtime.FileService.DeleteFile (error);
return result;
}
string GetCompilerName (ClrVersion version)
{
- string runtimeDir =
fileUtilityService.GetDirectoryNameWithSeparator(System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory());
+ string runtimeDir =
Runtime.FileService.GetDirectoryNameWithSeparator(System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory());
// The following regex foo gets the index of the
// last match of lib/lib32/lib64 and uses
// the text before that as the 'prefix' in order
Modified: trunk/monodevelop/Extras/CSharpBinding/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/CSharpBinding/ChangeLog 2006-12-17 17:37:59 UTC
(rev 69614)
+++ trunk/monodevelop/Extras/CSharpBinding/ChangeLog 2006-12-17 17:38:45 UTC
(rev 69615)
@@ -1,3 +1,7 @@
+2006-12-17 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * CSharpBindingCompilerManager.cs: Track changes in FileService API.
+
2006-12-15 Ankit Jain <[EMAIL PROTECTED]>
* CSharpBindingCompilerManager.cs (Compile): Filename arg to resgen
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches