.theide: Console app run in console now prints the exitcode

git-svn-id: svn://ultimatepp.org/upp/trunk@2514 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-06-28 12:15:34 +00:00
parent 56ccbedb93
commit deb048b831

View file

@ -78,6 +78,7 @@ void Ide::BuildAndExecute()
if(!runexternal)
cmdline << '\"' << h->GetHostPath(target) << "\" ";
cmdline << ToSystemCharset(runarg);
int exitcode;
switch(runmode) {
case RUN_WINDOW:
HideBottom();
@ -87,8 +88,8 @@ void Ide::BuildAndExecute()
ShowConsole();
PutConsole(String().Cat() << "Executing: " << cmdline);
console.Sync();
h->ExecuteWithInput(cmdline);
PutConsole("Finished in " + GetPrintTime(time));
exitcode = h->ExecuteWithInput(cmdline);
PutConsole("Finished in " + GetPrintTime(time) + ", exit code: " + AsString(exitcode));
break;
case RUN_FILE: {
HideBottom();