ProjectExplorer: Start to consolidate AbstractProcessStep setup

Add some convenience functions to the base class to avoid repetition
in the derived classes.

Will be used immediately it in some derived classes.

Change-Id: I8fd6aa4f8351720cdc8f63f7fa5f506e32a8143b
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2020-08-13 12:20:41 +02:00
parent 53abd750bf
commit 70b226144f
4 changed files with 50 additions and 5 deletions

View File

@@ -257,11 +257,11 @@ bool AndroidBuildApkStep::init()
}
ProjectExplorer::ProcessParameters *pp = processParameters();
setupProcessParameters(pp, this, arguments, command);
Android::setupProcessParameters(pp, this, arguments, command);
// Generate arguments with keystore password concealed
ProjectExplorer::ProcessParameters pp2;
setupProcessParameters(&pp2, this, argumentsPasswordConcealed, command);
Android::setupProcessParameters(&pp2, this, argumentsPasswordConcealed, command);
m_command = pp2.effectiveCommand().toString();
m_argumentsPasswordConcealed = pp2.prettyArguments();