Add a outputparser for os specific errors

The only os specific issue handled at this time is windows not wanting
to overwrite binaries that are still running. Make that message trigger
a build issue and provide a hint how to handle it.

Task-number: QTCREATORBUG-9100
Change-Id: Id0b270202b67b0b7d555392cb35b0e2ebcbc8fad
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Tobias Hunger
2013-08-21 11:21:17 +02:00
parent 1367a7525c
commit 5a916fb695
5 changed files with 132 additions and 8 deletions

View File

@@ -31,6 +31,7 @@
#include "kitmanager.h"
#include "ioutputparser.h"
#include "osparser.h"
#include <QApplication>
#include <QFileInfo>
@@ -399,15 +400,10 @@ void Kit::addToEnvironment(Utils::Environment &env) const
IOutputParser *Kit::createOutputParser() const
{
IOutputParser *first = 0;
IOutputParser *first = new OsParser;
QList<KitInformation *> infoList = KitManager::kitInformation();
foreach (KitInformation *ki, infoList) {
IOutputParser *next = ki->createOutputParser(this);
if (!first)
first = next;
else
first->appendOutputParser(next);
}
foreach (KitInformation *ki, infoList)
first->appendOutputParser(ki->createOutputParser(this));
return first;
}