forked from qt-creator/qt-creator
Utils: Extract a CommandLine structure from a QtcProcess
We regularly pass around strings or filenames or pairs of strings or filenames and stringlist etc the in the end will be used as a kind of "command line", with quite a bit of ad-hoc user code and QtcProcess::addArg etc to set them up and manipulate them. Let's have a class for that concept. Change-Id: I288ab939d853b32c717135a65242c584c2beab50 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -663,7 +663,7 @@ void ExternalToolRunner::run()
|
||||
this, &ExternalToolRunner::readStandardError);
|
||||
if (!m_resolvedWorkingDirectory.isEmpty())
|
||||
m_process->setWorkingDirectory(m_resolvedWorkingDirectory);
|
||||
m_process->setCommand(m_resolvedExecutable.toString(), m_resolvedArguments);
|
||||
m_process->setCommand(CommandLine(m_resolvedExecutable, m_resolvedArguments));
|
||||
m_process->setEnvironment(m_resolvedEnvironment);
|
||||
MessageManager::write(tr("Starting external tool \"%1\" %2")
|
||||
.arg(m_resolvedExecutable.toUserOutput(), m_resolvedArguments),
|
||||
|
||||
Reference in New Issue
Block a user