forked from qt-creator/qt-creator
Android: expose deployment warnings and errors to issues pane
This makes the deployment process more transparent and easy to follow warnings and/or errors. Change-Id: Ie6a7bde4dfb5748adff1be077299ecdceb0e3930 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include <projectexplorer/processparameters.h>
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <projectexplorer/target.h>
|
||||
#include <projectexplorer/taskhub.h>
|
||||
#include <projectexplorer/toolchain.h>
|
||||
|
||||
#include <qtsupport/baseqtversion.h>
|
||||
@@ -139,6 +140,7 @@ void AndroidPackageInstallationStep::doRun()
|
||||
emit addOutput(tr("Removing directory %1").arg(dir), OutputFormat::NormalMessage);
|
||||
if (!FileUtils::removeRecursively(androidDir, &error)) {
|
||||
emit addOutput(error, OutputFormat::Stderr);
|
||||
TaskHub::addTask(BuildSystemTask(Task::Error, error));
|
||||
emit finished(false);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user