[Monodevelop-patches-list] r1706 - trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Tue Jun 8 00:51:05 EDT 2004


Author: jluke
Date: 2004-06-08 00:51:04 -0400 (Tue, 08 Jun 2004)
New Revision: 1706

Modified:
   trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ChangeLog
   trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ILAsmCompilerManager.cs
   trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ILAsmExecutionManager.cs
Log:
fix ILAsmBinding


Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ChangeLog	2004-06-07 23:33:31 UTC (rev 1705)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ChangeLog	2004-06-08 04:51:04 UTC (rev 1706)
@@ -1,3 +1,9 @@
+2004-06-08  John Luke  <jluke at cfl.rr.com>
+
+	* ILAsmCompilerManager.cs:
+	* ILAsmExecutionManager.cs: use (cmd, args) overload of ProcessStartInfo
+	constructor so I can compile and run hello world on Beta2
+
 2004-05-25  Todd Berman  <tberman at sevenl.net>
 
 	* ILAsmLanguageBinding.cs: sigchange for GenerateMakefile

Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ILAsmCompilerManager.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ILAsmCompilerManager.cs	2004-06-07 23:33:31 UTC (rev 1705)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ILAsmCompilerManager.cs	2004-06-08 04:51:04 UTC (rev 1706)
@@ -62,8 +62,7 @@
 			parameters.Append("/out:" + outputFile);
 			parameters.Append(" ");
 			parameters.Append(compilerparameters.CurrentCompilerOptions.GenerateOptions());
-			string compilerName = GetCompilerName();
-			string outstr = compilerName + " " + parameters.ToString();
+			string outstr = parameters.ToString();
 			
 			TempFileCollection tf = new TempFileCollection();
 			StreamReader output;
@@ -76,15 +75,13 @@
 
 		private void DoCompilation (string outstr, TempFileCollection tf, out StreamReader output, out StreamReader error)
 		{
-            string arguments = outstr;
-            string command = arguments;
-            ProcessStartInfo si = new ProcessStartInfo (command);
+            		ProcessStartInfo si = new ProcessStartInfo (GetCompilerName (), outstr);
 			si.RedirectStandardOutput = true;
-            si.RedirectStandardError = true;
+            		si.RedirectStandardError = true;
 			si.UseShellExecute = false;
 			Process p = new Process ();
-            p.StartInfo = si;
-            p.Start ();
+            		p.StartInfo = si;
+            		p.Start ();
 
 			IStatusBarService sbs = (IStatusBarService)ServiceManager.Services.GetService (typeof (IStatusBarService));
 			sbs.SetMessage ("Compiling...");
@@ -103,7 +100,7 @@
 			// and then return cr at end 
 			output = p.StandardOutput;
 			error = p.StandardError;
-            p.WaitForExit ();
+            		p.WaitForExit ();
         }
 		
 		public ICompilerResult CompileFile(string fileName, ILAsmCompilerParameters compilerparameters)

Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ILAsmExecutionManager.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ILAsmExecutionManager.cs	2004-06-07 23:33:31 UTC (rev 1705)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/ILAsmBinding/ILAsmExecutionManager.cs	2004-06-08 04:51:04 UTC (rev 1706)
@@ -45,8 +45,9 @@
 			FileUtilityService fileUtilityService = (FileUtilityService)ServiceManager.Services.GetService(typeof(FileUtilityService));
 			
 			string exe = Path.GetFullPath(Path.Combine(parameters.OutputDirectory, parameters.OutputAssembly) + ".exe");
-			string fullCommand = String.Format ("xterm -e \"mono {0};read -p 'press any key to continue...' -n1\"", exe);
-			ProcessStartInfo psi = new ProcessStartInfo(fullCommand);
+			string fullCommand = String.Format ("-e \"mono {0};read -p 'press any key to continue...' -n1\"", exe);
+			Console.WriteLine (fullCommand);
+			ProcessStartInfo psi = new ProcessStartInfo("xterm", fullCommand);
 			psi.WorkingDirectory = Path.GetDirectoryName (exe);
 			psi.UseShellExecute  = false;
 			Process p = Process.Start (psi);




More information about the Monodevelop-patches-list mailing list