[Monodevelop-patches-list] r554 - trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Jan 18 16:52:11 EST 2004
Author: benm
Date: 2004-01-18 16:52:11 -0500 (Sun, 18 Jan 2004)
New Revision: 554
Modified:
trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs
trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs
Log:
use gnome-terminal to rather than cmd.exe, with a hack to pause at the end; remove the reference to pedro's ~
Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs 2004-01-18 21:49:51 UTC (rev 553)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingCompilerManager.cs 2004-01-18 21:52:11 UTC (rev 554)
@@ -262,9 +262,6 @@
StreamReader t = File.OpenText(responseFileName);
- StreamWriter w = new StreamWriter("/home/pedro/mirame");
- w.Write(t.ReadToEnd());
- w.Close();
//Executor.ExecWaitWithCapture(outstr, tf, ref output, ref error);
DoCompilation(outstr, tf, ref output, ref error);
Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs 2004-01-18 21:49:51 UTC (rev 553)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/CSharpBindingExecutionManager.cs 2004-01-18 21:52:11 UTC (rev 554)
@@ -30,7 +30,7 @@
public void Execute(string filename)
{
string exe = Path.ChangeExtension(filename, ".exe");
- ProcessStartInfo psi = new ProcessStartInfo(Environment.GetEnvironmentVariable("ComSpec"), "/c " + "\"" + exe + "\"" + " & pause");
+ ProcessStartInfo psi = new ProcessStartInfo("mono", "--debug " + exe);
psi.WorkingDirectory = Path.GetDirectoryName(exe);
psi.UseShellExecute = false;
try {
@@ -54,9 +54,9 @@
ProcessStartInfo psi;
if (parameters.ExecuteScript != null && parameters.ExecuteScript.Length > 0) {
Console.WriteLine("EXECUTE SCRIPT!!!!!!");
- psi = new ProcessStartInfo("\"" + parameters.ExecuteScript + "\"");
+ psi = new ProcessStartInfo("\"" + parameters.ExecuteScript + "\"");
} else {
- string runtimeStarter = String.Empty;
+ string runtimeStarter = "mono ";
switch (parameters.NetRuntime) {
case NetRuntime.Mono:
@@ -67,20 +67,20 @@
break;
}
- // 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;
- //}
+ if (parameters.CompileTarget != CompileTarget.WinExe && parameters.PauseConsoleOutput) {
+ psi = new ProcessStartInfo("gnome-terminal",
+ string.Format (
+ @"-x bash -c ""{0} '{1}{2}' {3} ; echo; read -p 'press any key to continue...' -n1""",
+ runtimeStarter, directory, exe, args));
+ } else {
+ psi = new ProcessStartInfo(runtimeStarter, "\"" + directory + exe + "\" " + args);
+ }
}
try {
psi.WorkingDirectory = Path.GetDirectoryName(directory);
psi.UseShellExecute = false;
+ Console.WriteLine (psi.Arguments);
Process p = new Process();
p.StartInfo = psi;
More information about the Monodevelop-patches-list
mailing list