MCPcopy Create free account
hub / github.com/KDE/kdevelop / executeProcess

Function executeProcess

plugins/cmake/cmakeutils.cpp:551–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551QString executeProcess(const QString& execName, const QStringList& args)
552{
553 Q_ASSERT(!execName.isEmpty());
554 qCDebug(CMAKE) << "Executing:" << execName << "::" << args;
555
556 QProcess p;
557 QTemporaryDir tmp(QStringLiteral("kdevcmakemanager"));
558 p.setWorkingDirectory( tmp.path() );
559 p.start(execName, args, QIODevice::ReadOnly);
560
561 if(!p.waitForFinished())
562 {
563 qCDebug(CMAKE) << "failed to execute:" << execName << args << p.exitStatus() << p.readAllStandardError();
564 }
565
566 QByteArray b = p.readAllStandardOutput();
567 QString t = QString::fromUtf8(b.trimmed());
568 return t;
569}
570
571QStringList supportedGenerators()
572{

Callers 2

initCommandsFunction · 0.85

Calls 4

isEmptyMethod · 0.45
setWorkingDirectoryMethod · 0.45
pathMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected