forked from qt-creator/qt-creator
AbastractProcessStep; Check that creating the build directory worked
Task-number: QTCREATORBUG-13217 Change-Id: I26ac5db79c0e1b6556d085648f9ebc71efae015d Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com> Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -192,8 +192,18 @@ void AbstractProcessStep::run(QFutureInterface<bool> &fi)
|
||||
{
|
||||
m_futureInterface = &fi;
|
||||
QDir wd(m_param.effectiveWorkingDirectory());
|
||||
if (!wd.exists())
|
||||
wd.mkpath(wd.absolutePath());
|
||||
if (!wd.exists()) {
|
||||
if (!wd.mkpath(wd.absolutePath())) {
|
||||
emit addOutput(tr("Could not create directory \"%1\"")
|
||||
.arg(QDir::toNativeSeparators(wd.absolutePath())),
|
||||
BuildStep::ErrorMessageOutput);
|
||||
fi.reportResult(false);
|
||||
emit finished();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
QString effectiveCommand = m_param.effectiveCommand();
|
||||
if (!QFileInfo(effectiveCommand).exists()) {
|
||||
|
Reference in New Issue
Block a user