summaryrefslogtreecommitdiff
path: root/src/plugins/android/androidbuildapkstep.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-05-15 13:59:43 +0200
committerhjk <hjk@qt.io>2019-05-15 12:55:22 +0000
commit9433b8a7e78cfbe13a3dfe4ad489c4329a701b47 (patch)
tree3d2c2b60960a212cb8387165b7c92746e3caab29 /src/plugins/android/androidbuildapkstep.cpp
parentd1f9e466daf369969bc0dae8c14914ed79c3acb5 (diff)
downloadqt-creator-9433b8a7e78cfbe13a3dfe4ad489c4329a701b47.tar.gz
ProjectExplorer: Use Utils::FileName in ProcessParameters
For the command and the working directory. Change-Id: Ia69dc7100aeb57bb6e1b35f4dd4f3cf3763d8cda Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/android/androidbuildapkstep.cpp')
-rw-r--r--src/plugins/android/androidbuildapkstep.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/android/androidbuildapkstep.cpp b/src/plugins/android/androidbuildapkstep.cpp
index e09d90bf12..1af41da340 100644
--- a/src/plugins/android/androidbuildapkstep.cpp
+++ b/src/plugins/android/androidbuildapkstep.cpp
@@ -70,6 +70,7 @@
#include <memory>
using namespace ProjectExplorer;
+using namespace Utils;
using namespace Android::Internal;
namespace {
@@ -90,10 +91,10 @@ static void setupProcessParameters(ProcessParameters *pp,
const QString &command)
{
pp->setMacroExpander(bc->macroExpander());
- pp->setWorkingDirectory(bc->buildDirectory().toString());
+ pp->setWorkingDirectory(bc->buildDirectory());
Utils::Environment env = bc->environment();
pp->setEnvironment(env);
- pp->setCommand(command);
+ pp->setCommand(FileName::fromString(command));
pp->setArguments(Utils::QtcProcess::joinArgs(arguments));
pp->resolveAll();
}
@@ -279,7 +280,7 @@ bool AndroidBuildApkStep::init()
// Generate arguments with keystore password concealed
ProjectExplorer::ProcessParameters pp2;
setupProcessParameters(&pp2, bc, argumentsPasswordConcealed, command);
- m_command = pp2.effectiveCommand();
+ m_command = pp2.effectiveCommand().toString();
m_argumentsPasswordConcealed = pp2.prettyArguments();
return true;