forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user