[Monodevelop-patches-list] r543 - in trunk/MonoDevelop/src: AddIns/BackendBindings/CSharpBinding Main/Base/Commands
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Jan 18 13:37:02 EST 2004
Author: pedroas
Date: 2004-01-18 13:37:01 -0500 (Sun, 18 Jan 2004)
New Revision: 543
Modified:
trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs
trunk/MonoDevelop/src/Main/Base/Commands/RunCommands.cs
Log:
Ugly hacks to allow executing the current project from the ide
Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs 2004-01-18 18:34:45 UTC (rev 542)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs 2004-01-18 18:37:01 UTC (rev 543)
@@ -67,12 +67,15 @@
break;
}
- if (parameters.CompileTarget != CompileTarget.WinExe && parameters.PauseConsoleOutput) {
- psi = new ProcessStartInfo(Environment.GetEnvironmentVariable("ComSpec"), "/c " + runtimeStarter + "\"" + directory + exe + "\" " + args + " & pause");
- } else {
+ // FIXME Pedro
+ runtimeStarter = "mono ";
+
+ //if (parameters.CompileTarget != CompileTarget.WinExe && parameters.PauseConsoleOutput) {
+ // psi = new ProcessStartInfo(Environment.GetEnvironmentVariable("ComSpec"), "/c " + runtimeStarter + "\"" + directory + exe + "\" " + args + " & pause");
+ //} else {
psi = new ProcessStartInfo(runtimeStarter + "\"" + directory + exe + "\"");
psi.Arguments = args;
- }
+ //}
}
try {
Modified: trunk/MonoDevelop/src/Main/Base/Commands/RunCommands.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Commands/RunCommands.cs 2004-01-18 18:34:45 UTC (rev 542)
+++ trunk/MonoDevelop/src/Main/Base/Commands/RunCommands.cs 2004-01-18 18:37:01 UTC (rev 543)
@@ -7,7 +7,7 @@
using System;
using System.IO;
-//using System.Threading;
+using System.Threading;
using System.Drawing;
using System.Drawing.Printing;
using System.Collections;
@@ -190,7 +190,8 @@
public class RunCommand : AbstractMenuCommand
{
- void RunThread()
+ //void RunThread()
+ bool RunThread()
{
lock (Compile.CompileLockObject) {
TaskService taskService = (TaskService)ICSharpCode.Core.Services.ServiceManager.Services.GetService(typeof(TaskService));
@@ -231,17 +232,19 @@
messageService.ShowError(e, "Error while running");
}
statusBarService.SetMessage("${res:MainWindow.StatusBar.ReadyMessage}");
+ return false;
}
}
public override void Run()
{
IProjectService projectService = (IProjectService)ICSharpCode.Core.Services.ServiceManager.Services.GetService(typeof(IProjectService));
-// if (projectService.CurrentOpenCombine != null) {
+ if (projectService.CurrentOpenCombine != null) {
+ RunThread(); // TODO FIXME PEDRO
//Thread t = new Thread(new ThreadStart(RunThread));
//t.IsBackground = true;
//t.Start();
-// }
+ }
}
}
More information about the Monodevelop-patches-list
mailing list