diff options
-rw-r--r-- | src/plugins/projectexplorer/processparameters.cpp | 8 | ||||
-rw-r--r-- | src/plugins/projectexplorer/processparameters.h | 7 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/processparameters.cpp b/src/plugins/projectexplorer/processparameters.cpp index 350aa7c90f..f535cc120e 100644 --- a/src/plugins/projectexplorer/processparameters.cpp +++ b/src/plugins/projectexplorer/processparameters.cpp @@ -54,6 +54,14 @@ ProcessParameters::ProcessParameters() : { } +void ProcessParameters::setCommandLine(const CommandLine &cmdLine) +{ + m_command = cmdLine.executable(); + m_arguments = cmdLine.arguments(); + m_effectiveCommand.clear(); + m_effectiveArguments.clear(); +} + /*! Sets the executable to run. */ diff --git a/src/plugins/projectexplorer/processparameters.h b/src/plugins/projectexplorer/processparameters.h index 3e08e6bb85..c87ede7d5b 100644 --- a/src/plugins/projectexplorer/processparameters.h +++ b/src/plugins/projectexplorer/processparameters.h @@ -30,7 +30,10 @@ #include <utils/environment.h> #include <utils/fileutils.h> -namespace Utils { class MacroExpander; } +namespace Utils { +class CommandLine; +class MacroExpander; +} // Utils namespace ProjectExplorer { @@ -40,6 +43,8 @@ class PROJECTEXPLORER_EXPORT ProcessParameters public: ProcessParameters(); + void setCommandLine(const Utils::CommandLine &cmdLine); + void setCommand(const Utils::FilePath &cmd); Utils::FilePath command() const { return m_command; } |