Author: lluis
Date: 2006-12-17 12:39:42 -0500 (Sun, 17 Dec 2006)
New Revision: 69617
Modified:
trunk/monodevelop/Extras/MonoDevelop.Autotools/ChangeLog
trunk/monodevelop/Extras/MonoDevelop.Autotools/SimpleProjectMakefileHandler.cs
trunk/monodevelop/Extras/MonoDevelop.Autotools/SolutionDeployer.cs
Log:
* SimpleProjectMakefileHandler.cs, SolutionDeployer.cs: Use the
FileService for copying and deleting files.
Modified: trunk/monodevelop/Extras/MonoDevelop.Autotools/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/MonoDevelop.Autotools/ChangeLog 2006-12-17
17:39:11 UTC (rev 69616)
+++ trunk/monodevelop/Extras/MonoDevelop.Autotools/ChangeLog 2006-12-17
17:39:42 UTC (rev 69617)
@@ -1,3 +1,8 @@
+2006-12-17 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * SimpleProjectMakefileHandler.cs, SolutionDeployer.cs: Use the
+ FileService for copying and deleting files.
+
2006-11-24 Scott Ellington <[EMAIL PROTECTED]>
* SolutionDeployer.cs:
Modified:
trunk/monodevelop/Extras/MonoDevelop.Autotools/SimpleProjectMakefileHandler.cs
===================================================================
---
trunk/monodevelop/Extras/MonoDevelop.Autotools/SimpleProjectMakefileHandler.cs
2006-12-17 17:39:11 UTC (rev 69616)
+++
trunk/monodevelop/Extras/MonoDevelop.Autotools/SimpleProjectMakefileHandler.cs
2006-12-17 17:39:42 UTC (rev 69617)
@@ -158,7 +158,7 @@
string rdir =
Path.Combine (Path.GetDirectoryName (project.FileName), resourcedir);
if (
!Directory.Exists ( rdir ) ) Directory.CreateDirectory ( rdir );
string newPath
= Path.Combine (rdir, Path.GetFileName ( projectFile.FilePath ));
- File.Copy (
projectFile.FilePath, newPath, true ) ;
+
Runtime.FileService.CopyFile ( projectFile.FilePath, newPath ) ;
pfpath =
(PlatformID.Unix == Environment.OSVersion.Platform) ?
project.GetRelativeChildPath (newPath) : project.GetRelativeChildPath
(newPath).Replace("\\","/");
res_files.AppendFormat ( "\\\n\t{0} ", pfpath );
}
Modified: trunk/monodevelop/Extras/MonoDevelop.Autotools/SolutionDeployer.cs
===================================================================
--- trunk/monodevelop/Extras/MonoDevelop.Autotools/SolutionDeployer.cs
2006-12-17 17:39:11 UTC (rev 69616)
+++ trunk/monodevelop/Extras/MonoDevelop.Autotools/SolutionDeployer.cs
2006-12-17 17:39:42 UTC (rev 69617)
@@ -176,7 +176,7 @@
string filename = output.Substring ( begin + 1,
(targz - begin) + 5 );
- File.Copy ( baseDir + "/" + filename, targetDir
+ "/" + filename, true );
+ Runtime.FileService.CopyFile ( baseDir + "/" +
filename, targetDir + "/" + filename );
monitor.Step ( 1 );
}
catch ( Exception e )
@@ -194,14 +194,14 @@
void DeleteGeneratedFiles ( AutotoolsContext context )
{
foreach ( string file in context.GetAutoConfFiles () )
- if ( File.Exists ( file ) ) File.Delete ( file
);
+ if ( File.Exists ( file ) )
Runtime.FileService.DeleteFile ( file );
string[] other_files = new string [] { "autogen.sh",
"configure.ac", "Makefile.include" };
foreach ( string file in other_files )
{
string path = solution_dir + "/" + file;
- if ( File.Exists ( path ) ) File.Delete ( path
);
+ if ( File.Exists ( path ) )
Runtime.FileService.DeleteFile ( path );
}
}
@@ -218,9 +218,9 @@
if ( !Directory.Exists ( libdir ) )
Directory.CreateDirectory ( libdir );
string newPath = Path.Combine (libdir,
dll_name);
- File.Copy ( dll, newPath , true );
+ Runtime.FileService.CopyFile ( dll, newPath );
- newPath =
Runtime.FileUtilityService.AbsoluteToRelativePath ( solution_dir, newPath );
+ newPath =
Runtime.FileService.AbsoluteToRelativePath ( solution_dir, newPath );
if (PlatformID.Unix !=
Environment.OSVersion.Platform)
newPath = newPath.Replace ("\\","/");
sb.Append (' ');
@@ -312,7 +312,7 @@
string tmpmf = null;
foreach (string makefile in context.GetAutoConfFiles ()
)
{
- tmpmf =
Runtime.FileUtilityService.AbsoluteToRelativePath ( solution_dir, makefile );
+ tmpmf =
Runtime.FileService.AbsoluteToRelativePath ( solution_dir, makefile );
if (PlatformID.Unix !=
Environment.OSVersion.Platform)
tmpmf = tmpmf.Replace("\\","/");
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches