diff options
author | Daniel Teske <daniel.teske@digia.com> | 2014-10-22 12:29:41 +0200 |
---|---|---|
committer | Daniel Teske <daniel.teske@digia.com> | 2014-10-22 13:28:40 +0200 |
commit | dd93301b7337cccd16e87bb7fb13642a45e9bda9 (patch) | |
tree | f83ba7d3ef5ebd02b900f2d6be86678b28fb2c05 /src/plugins/projectexplorer/abstractprocessstep.cpp | |
parent | 1d414e8dbdd407db27e44fc49a7739662636fe9c (diff) |
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>
Diffstat (limited to 'src/plugins/projectexplorer/abstractprocessstep.cpp')
-rw-r--r-- | src/plugins/projectexplorer/abstractprocessstep.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/abstractprocessstep.cpp b/src/plugins/projectexplorer/abstractprocessstep.cpp index 0bb9ef1b0c..c1dd6ad92c 100644 --- a/src/plugins/projectexplorer/abstractprocessstep.cpp +++ b/src/plugins/projectexplorer/abstractprocessstep.cpp @@ -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()) { |